Read the statement by Michael Teeuw here.
MMM-PIR doesn´t turn off monitor since update MM 2.7
-
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.
-
@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
-
@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. -
@djay07 Hi, have you been able to solve the MMM-PIR problem? I am stuck with the same thing.
-
-
@FruityBebbles sorry, could you tell me more?? same what?
can’t tell how far back u are responding…
-
@shgmongohh just fyi… the npm audit fix will NOT fix everything… these are warnings anyhow… so, no problems
-
@djay07 @lxne @FruityBebbles ok, node_helper missing… heres how to fix
cd ~/MagicMirror git checkout modules/node_modules/node_helper/index.js
then restart your magic mirror however you do it… reboot, pm2, some script. npm start
-
I could make it work by moving the module in the config file to the very bottom.
-
@sdetweil sorry for the confusion. I see how I wasn’t making much sense…
I am so out of my realm when dealing with all of this computery stuff, despite being tech-savvy but I was having an issue with my PIR sensor not turning putting everything to sleep.
The module would simply put my Pi to sleep, but I would still have a “No signal” message show up on the screen (indicating no HDMI)…
Idk what I did, exactly but after combing through different queries and reading other’s questions on the subject, it seems to be working, now.
My PIR sensor does put everything to sleep and works like a charm.
You guys on the forum are so much nicer than 99.9% of the internet =)