• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Bugsounet and MMM-Pir

Scheduled Pinned Locked Moved General Discussion
68 Posts 10 Posters 14.0k Views 11 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil @lif
    last edited by Mar 24, 2025, 4:06 PM

    @lif module rules

    module name (exact case) = folder name in modules folder
    MUST contain at minimum a file name that matches(exact case) of the modulename.js

    AND inside that file it MUST contain a module.register(name…)
    where name MUST match (exact case) the module name

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • R Offline
      rkorell @lif
      last edited by rkorell Mar 24, 2025, 4:12 PM Mar 24, 2025, 4:11 PM

      @lif said in Bugsounet and MMM-Pir:

      It’s correct, there isn’t a MMM-Pir.js file in the MMM-Pir directory

      If you had cloned this repository from @coernel - the MMM-pir.js is missing.
      This must be an error.

      Nevertheless: I’ve played around with the original version from bugsounet and figured out that editing his “origin” MM-Pir.js was really hard because he has deleted all linefeeds.
      Seeking around I found an editable clone of the *.js files (including node_helper) in the src folder of the repository.
      This is true for the new clone from coernel …
      give it a try :-)

      Regards,
      Ralf

      S R 2 Replies Last reply Mar 24, 2025, 4:14 PM Reply Quote 0
      • S Offline
        sdetweil @rkorell
        last edited by Mar 24, 2025, 4:14 PM

        @rkorell said in Bugsounet and MMM-Pir:

        Nevertheless: I’ve played around with the original version from bugsounet and figured out that editing his “origin” MM-Pir.js was really hard because he has deleted all linefeeds.

        called minified

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Mar 24, 2025, 4:15 PM Reply Quote 1
        • R Offline
          rkorell @sdetweil
          last edited by Mar 24, 2025, 4:15 PM

          @sdetweil said in Bugsounet and MMM-Pir:

          called minified

          :-) never seen this before…
          Called minified - for good reasons …

          S 1 Reply Last reply Mar 24, 2025, 4:17 PM Reply Quote 0
          • S Offline
            sdetweil @rkorell
            last edited by Mar 24, 2025, 4:17 PM

            @rkorell said in Bugsounet and MMM-Pir:

            Called minified - for good reasons …

            On a production web site with 1000000’s of file loads, minified can reduce response times…

            otherwise it is a hiding technique, which can(has) hidden hacker attacks on client systems…(loading files, sending credentials…)
            hard to examine code

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Mar 24, 2025, 4:21 PM Reply Quote 0
            • R Offline
              rkorell @sdetweil
              last edited by rkorell Mar 24, 2025, 4:22 PM Mar 24, 2025, 4:21 PM

              @sdetweil said in Bugsounet and MMM-Pir:

              hard to examine code

              Yes, I guess this was bugsounet’s intention - irritating beginners :-)

              The code has 247 lines so you avoid 247 CR’s - not THAT much more efficient, I think - but on 100eds of 1000nds of files - may be …

              Ralf

              S 1 Reply Last reply Mar 24, 2025, 4:22 PM Reply Quote 0
              • S Offline
                sdetweil @rkorell
                last edited by Mar 24, 2025, 4:22 PM

                @rkorell he did not do it for performance

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Mar 24, 2025, 4:22 PM Reply Quote 1
                • R Offline
                  rkorell @sdetweil
                  last edited by Mar 24, 2025, 4:22 PM

                  @sdetweil I agree :-)

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rkorell @rkorell
                    last edited by rkorell Mar 24, 2025, 5:46 PM Mar 24, 2025, 5:45 PM

                    @rkorell said in Bugsounet and MMM-Pir:

                    in the src folder of the repository

                    @lif , @coernel :
                    there are several files missing in coernels upload.
                    I’ve just checked source code in MMM-Pir.js …

                          "/modules/MMM-Pir/components/screenDisplayer.js",
                          "/modules/MMM-Pir/components/screenTouch.js",
                          "/modules/MMM-Pir/node_modules/long-press-event/dist/long-press-event.min.js",
                          "/modules/MMM-Pir/node_modules/progressbar.js/dist/progressbar.min.js",
                          "/modules/MMM-Pir/components/motion.js",
                          "/modules/MMM-Pir/components/motionLib.js"
                    

                    The complete folder MMM-Pir/node_modules is missing.
                    The folder MMM-Pir/components/ contains only the python script for PIR communication, none of the above *.js files.

                    At least the /components/*.js files are present in the components folder of MMM-Pir/src …

                    But this seems to be a frickling job to get this done.
                    I guess a complete upload of an original MMM-Pir installation would be the better way.

                    What do you think?

                    Regards,
                    Ralf

                    S 1 Reply Last reply Mar 24, 2025, 5:48 PM Reply Quote 0
                    • S Offline
                      sdetweil @rkorell
                      last edited by Mar 24, 2025, 5:48 PM

                      @rkorell because they are in node_modules they were dependencies , not part of the actual module…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      R 1 Reply Last reply Mar 24, 2025, 6:16 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 3 / 7
                      3 / 7
                      • First post
                        30/68
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy