• 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.

MMM-PIR doesn´t turn off monitor since update MM 2.7

Scheduled Pinned Locked Moved Unsolved Troubleshooting
25 Posts 9 Posters 8.8k Views 9 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.
  • F Offline
    Fonfon @sdetweil
    last edited by Apr 23, 2019, 9:52 PM

    @sdetweil said in MMM-PIR doesn´t turn off monitor since update MM 2.7:

    i believe that you will have to force recompile in the MMM-PIR folder… as the dependent epoll module doesn’t supply a version for this version of electron

    from MMM-PIR folder do

    npm install electron-rebuild
    

    then

    ./node_modules/.bin/electron-rebuild
    

    i do that but not in my MMM-PIR folder but in my MMM-PIR-Sensor folder

    S 1 Reply Last reply Apr 23, 2019, 10:37 PM Reply Quote 0
    • S Offline
      sdetweil @Fonfon
      last edited by Apr 23, 2019, 10:37 PM

      @Fonfon and all is good?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      F 1 Reply Last reply Apr 26, 2019, 10:34 AM Reply Quote 0
      • F Offline
        Fonfon @sdetweil
        last edited by Apr 26, 2019, 10:34 AM

        @sdetweil for me yes

        1 Reply Last reply Reply Quote 0
        • T Offline
          toucherts @shgmongohh
          last edited by toucherts May 5, 2019, 8:26 PM May 5, 2019, 11:50 AM

          @shgmongohh did you fix it ? TutuApp Adam4adam AppValley

          1 Reply Last reply Reply Quote 0
          • S Offline
            shgmongohh
            last edited by shgmongohh May 5, 2019, 4:20 PM May 5, 2019, 3:48 PM

            I get a failure message and I don´t know, how to fix it. npm audit fix doesnt work.

            pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm install electron-rebuild
            + electron-rebuild@1.8.4
            updated 1 package and audited 301 packages in 17.922s
            found 1 high severity vulnerability
              run `npm audit fix` to fix them, or `npm audit` for details
            
            
            pi@raspberrypi:~/MagicMirror/modules/MMM-PIR-Sensor $ npm audit
            
                                   === npm audit security report ===
            
            
                                             Manual Review
                         Some vulnerabilities require your attention to resolve
            
                      Visit https://go.npm.me/audit-guide for additional guidance
            
            
              High            Arbitrary File Overwrite
            
              Package         tar
            
              Patched in      >=4.4.2
            
              Dependency of   electron-rebuild [dev]
            
              Path            electron-rebuild > node-gyp > tar
            
              More info       https://nodesecurity.io/advisories/803
            
            found 1 high severity vulnerability in 301 scanned packages
              1 vulnerability requires manual review. See the full report for details.
            
            
            S 1 Reply Last reply Oct 4, 2019, 7:12 PM Reply Quote 0
            • D Offline
              djay07
              last edited by djay07 May 24, 2019, 7:20 AM May 24, 2019, 7:10 AM

              I did the recommended above, but it’s still just nothing happening. Any further ideas?

              I have a RCWL-0516 connected right now and a small python script which shows me it’s activity. but the module won’t shutdown the screen after minutes without motion (delay set to 10 secs).

              Edit:
              Maybe i should add:
              I tried this with MMM-PIR -> interface not starting, error:

              WARNING! Could not validate config file. Starting with default configuration. Please correct syntax errors at or above this line: ReferenceError: NodeHelper is not defined
                  at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_helper.js:11:18)
                  at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_helper.js:67:3)
                  at Module._compile (internal/modules/cjs/loader.js:711:30)
                  at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                  at Module.load (internal/modules/cjs/loader.js:620:32)
                  at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
                  at Function.Module._load (internal/modules/cjs/loader.js:551:3)
                  at Module.require (internal/modules/cjs/loader.js:658:17)
                  at require (internal/modules/cjs/helpers.js:20:18)
                  at loadModule (/home/pi/MagicMirror/js/app.js:127:17)
              App threw an error during load
              ReferenceError: NodeHelper is not defined
                  at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_helper.js:11:18)
                  at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR/node_helper.js:67:3)
                  at Module._compile (internal/modules/cjs/loader.js:711:30)
                  at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
                  at Module.load (internal/modules/cjs/loader.js:620:32)
                  at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
                  at Function.Module._load (internal/modules/cjs/loader.js:551:3)
                  at Module.require (internal/modules/cjs/loader.js:658:17)
                  at require (internal/modules/cjs/helpers.js:20:18)
                  at loadModule (/home/pi/MagicMirror/js/app.js:127:17)
              

              And MMM-PIR-Sensor is not reacting at all.

              S 1 Reply Last reply May 24, 2019, 1:58 PM Reply Quote 0
              • S Offline
                sdetweil @djay07
                last edited by May 24, 2019, 1:58 PM

                @djay07 after you did the git pull update, did you do npm install in the MagicMirror folder
                AND every module that has a package.json file???

                you must

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply May 27, 2019, 7:03 AM Reply Quote 0
                • D Offline
                  djay07 @sdetweil
                  last edited by May 27, 2019, 7:03 AM

                  @sdetweil
                  morning,
                  well i didn’t do it in every single subfolder where a package.json is placed, since i didn’t expect this to be necessary.

                  I did:

                  • git pull
                  • in the module folder “npm install”
                  • npm install electron-rebuild
                  • ./node_modules/.bin/electron-rebuild

                  the result is the above.
                  Currently i solved it with external scripts running in system.d, but if you tell me i need to run “npm install” in each folder with a package.json, i would give it a try, just to report back.

                  S 1 Reply Last reply Oct 4, 2019, 7:15 PM Reply Quote 0
                  • L Offline
                    lxne Project Sponsor
                    last edited by Aug 12, 2019, 8:13 AM

                    @djay07 Hi, have you been able to solve the MMM-PIR problem? I am stuck with the same thing.

                    F 1 Reply Last reply Oct 4, 2019, 7:06 PM Reply Quote 0
                    • F Offline
                      FruityBebbles @lxne
                      last edited by Oct 4, 2019, 7:06 PM

                      @lxne @djay07 Same…

                      S 1 Reply Last reply Oct 4, 2019, 7:07 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • First post
                        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