Read the statement by Michael Teeuw here.
PIR-Sensor - put your mirror to sleep if not used
-
Hi,
i have some issue with the PIR Module. It worked for testing a couple of month but now under productive operation it doesn’t :(
The Screen is switched off and on correctly but after a unspecified time it doesn’t switch it on anymore, it stays black. Sometimes after an hour sometimes after a couple of minutes.
The PIR itself is working correctly as i discovered, i’m also getting it’s state under FHEM and there i can see the relaible functionality of it. I connected it to the GPIO 21.
As i can see on the screen it doesn’t get any video input anymore. Only rebooting the PI2 will fix it.
I’m not sure where to search :(
Some startup log entrie doesn’t show anything.
> magicmirror@2.0.0 start /home/pi/MagicMirror > electron js/electron.js Loading config ... Loading module helpers ... Initializing new module helper ... Initializing new module helper ... No helper found for module: alert. No helper found for module: clock. Initializing new module helper ... No helper found for module: compliments. No helper found for module: currentweather. No helper found for module: weatherforecast. Initializing new module helper ... All module helpers loaded. Starting server op port 8080 ... Server started ... Connecting socket for: MMM-FHEM Connecting socket for: MMM-PIR-Sensor Connecting socket for: calendar Starting node helper for: calendar Connecting socket for: newsfeed Starting module: newsfeed Sockets connected & modules started ... Launching application.
-
Thanks for the module - this is fantastic!
I have a PIR sensor attached and it works as desired, but when the HDMI signal is cut to the TV, I get a “No Signal” message on the screen from the TV itself because the RPi isn’t sending signal anymore.
I’m wondering what the best solution would be. My head goes to hiding all modules instead of turning the monitor off so MM is still on but a completely black screen, or somehow send the RPi into a sleep state but keep the HDMI active.
Has anyone else tackled this issue?
-
@phrazelle The idea behind it is so that when the HDMI is disabled you would get the no signal. You then set up the TV/Monitor to go to sleep if no signal is found.
Check your TV manual for power saving settings. -
@McSorley Thanks for the response!
Unfortunately my TV doesn’t have a sleep mode option. It automatically displays the No Signal message and turns off after a few minutes of no signal. To make that more difficult, if the TV is turned back on with the remote, it loses the resolution settings and blows everything up until the RPi is rebooted.
I’m not sure how to address this, but I think it would be ideal in my circumstance to have this module, but triggered by the PIR sensor. Idk if I can finagle that, but I suppose I can give it a shot.
-
Do we still have this problem with the node version? (v5 works, 6 not)
-
@phrazelle hi! did you find a way to disable this message? i have the same annoying one :)
-
@bibi Yes! Here is the post I submitted around the new module. Remember that you still need the MMM-PIR-Sensor module by paviro installed for this to work.
-
@phrazelle interesting! thx a lot will check this :)
-
-
Nevermind, I’m back on the white page problem… It keeps saying “Error: Module version mismatch. Expected 50, got 51”
I tried either: npm rebuild --runtime=electron --target=1.4.0 --disturl=https://atom.io/download/atom-shell --build-from-source
and: npm rebuild --runtime=electron --target=1.4.5 --disturl=https://atom.io/download/atom-shell --abi=50but it doesn’t change…