Read the statement by Michael Teeuw here.
-
Hello,
1st off I’m a total noob at coding so please forgive me. I have been able to set up my mirror and get several modules up and running. However, I am having quite a bit of difficulty with the PIR-Sensor. I have it wired directly to the GPIO(pins 2, 6, 15). I installed the MMM-PIR-Sensor via paviros instruction. At first I got the white screen. Somehow that issue is gone. Now I can’t get the module to work. I know the PIR sensor is working, because I am able to run a python script to detect motion. The script just keeps in running though even when I walk away from the sensor. Maybe the sensor is faulty?Any help would be greatly appreciated.
Thanks in advance
-
Hey Dirk, i was having some issues and was using “/opt/vc/bin/tvservice -o” and “/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chat 2” to turn my screen on and off as that seems to be what everyone is using. This worked reliably since i started using the PIR sensor.
All of a sudden this started making my screen go white when it issued the monitor on command…and the screen would stay white for a few minutes and sometimes it would come back.
Using your “vcgencmd” commands in place of the previous in my monitor on/off scripts everything is back to working again.
I had a couple questions. Firstly i didnt understand what you mean by hdmi_blanking=1…what does this do/should i put this in my boot/config.txt?? And secondly what is the difference between the two ways of toggling the monitor?
(I did ask my question here: https://forum.magicmirror.builders/topic/1780/white-screen-after-screen-resumes-from-pir-or-sometimes-randomly-can-still-access-via-ssh-requires-restart-sometimes/4 incase but stumbled upon this after.)
-
-
Hi!
NOOB alert!!
I have added the module, updated the config.js file accordingly, but then, with nothing connected, the screen turns completely white?? (Opposite to what I expect to happen).
Could you kindly indicate what I might observe when it is running as expected? With a PIR connected, and without?
I have learnt how to run “npm start dev”; What should I look for in that console if it is functioning?
Or any other means of testing if it’s working, or where it is breaking?
Much obliged!!
-
-
@Bangee Thanks for the assistance. I tried that link along with a couple of other suggestions that I came across from the forums but nothing worked. I went and ordered a new PIR sensor as a last resort and bam worked once I plugged it in. This is a great module. Its really going to save me some money in energy costs and increase the life of my MagicMirror Monitor.
-
I don’t yet have my PIR sensor (soon!), but had a question.
When the mirror is unused, with the monitor off, it doesn’t make sense to do frequent updates on all of the modules. I could tune those way back, if I could force a refresh on all modules when the PIR triggers a monitor wake-up.Is there an easy way to trigger a refresh of some/all modules when the PIR module senses a wake-up event?
-
@FlatPepsi I have implemented this to a few of my own modules, and it is relatively simple to add, depending on which modules you want to adapt. However it will require some fiddling with the code of the modules.
-
@Jopyth OK, I’m game. Can you share how that would work?
I just saw a module to play a sound on events- maybe I could also add a cool sound when the monitor wakes/sleeps. Either a Disney-style magic sound, or a StarTrek computer sound…
-
@FlatPepsi I have made a helper function here. This basically works like a normal
setInterval
, except it stops, when noone is present, and immediately exectues when a someone comes back. The helper functions for this are here, you can probably just copy and paste them. And then you finally need to check incoming notifications like this.