Read the statement by Michael Teeuw here.
PIR-Sensor - put your mirror to sleep if not used
-
-
Sorry, no clue. :(
-
@paviro I had to downgrade to node 5.0.0, I confirmed its that version of node. After the downgrade I removed the PIR module and did a git clone and then npm install in the folder. Still the same thing, is there a specific version of node 5 I should be using or a specific version of npm?
I’m running it from
/home/pi/MagicMirror/modules/MMM-PIR-Sensor -
Could you try it with
node serveronly
? -
@joerod also do
npm install
on the mm folder or install the whole thing from scratch :) -
@paviro as a feedback: i used the latest MMM branch and yours and it is working fine with my PIR sensor on a rpi2. I didn’t had to downgrade anything to node 5 (and i also don’t know what it is :D ) Thanks for your work. It is so great that the mirror is starting if a presence is detected!!
-
@DirkS glad to hear! :)
-
Hey Everyone!
I am trying to use this module to turn off/on a tv and im having a bit of trouble on the physical end of things… I got the module working perfectly (tested it with PIR and hdmi on/off). Now I am trying to use a relay with the PIR sensor to have the TV screen itself turn on and off. I was planning on wiring this to the TV power button (so it is essentially the same as pressing the on/off button).I got the relay working… and I was about to take apart my tv when i thought…will even work for the on/off button? When it senses movement it will send the signal and then … turn off the tv I guess. As soon as the movement is undetected it stops sending the signal (or really pulse in this case)… just stopping wouldn’t turn the tv back on either. I guess it needs to send a pulse when it stops detecting movement, and then another one when it does again. Am I thinking about this wrong? Should I wire it to something else? Thanks in advance
-
@MechMatt On second thought, im having trouble with the relay as well… could you post a wiring diagram for the pi, relay, and tv? I’m not the best at electronics
-
To be honest the relay thing does not work that we’ll yet, still have to figure out some stuff related to how the Pi reacts when a monitor gets turned on after the boot process and not before.
As to your TV on/off button thing. The module simply puts s
3.3 volts
on the configured Pin if the relay should be on and sets it back to0 volts
if it should be off. You can also configure it the other way around. Since I do not now how your TV button is wired I have no idea wheather it would work with this module without modifying some parts.