Read the statement by Michael Teeuw here.
PIR-Sensor - put your mirror to sleep if not used
-
As you can see it says it misses the module “wiring-pi” in the error part.
Try running
npm install wiring-pi
Let me know if that solves the issue.
-
Even rolling back to node js V5 still results in a white screen. I realize people are saying that it’s a config issue but I’ve tried every combination there is and no go. I read the instructions and followed every letter and still no go.
I was using the monitor_on.sh and monitor_off.sh files from a different one but I cannot seem to get the pir.py file to work…
The problem with being new to all of this is that there is so much mis-information out there that you can literally spend hours doing the wrong things…
I was going to use the @reboot method to run the pir.py but have no way of knowing if it’s even loading because either I have a bad sensor or it’s just not working… it does show up in the crontab but not working…
On another note honestly I try not getting frustrated because this is fun for me to try and figure out…
BUT suggestions on how to get the pir.py to run on boot up?
Huge Thanks for ALL the hard work from everyone!! PS I’ve attached a copy of the pir.py and all files for anyone to take a look at and/or use…
This is the last thing I need to do to make this all work correctly and I can hang it :)0_1465667815133_PIR.zip
Thanks again!!!
-
@cowboysdude OHHHHHHHHHH and how the heck do you really make the screen blank stop? I’ve tried EVERY method I could find online but the screen still blanks… :(
-
I´m getting the same “blank” - white screen as soon as i try to use this module.
@cowboysdude do you have a solution yet? -
-
@cowboysdude
I got it. I installed the latest node. (6.2.1) Pull MMM-PIR from the git Repository und did all the steps Paviro explains on the module page.
And suddenly no more the white screen and the “USER_PRESENCE” notification is send every 5-6 sec.@paviro
could implement a parameter to set the duration for a monitor shutdown as no USER_PRESENCE is detected? -
A stupid question, where “USER_PRESENCE” notification must appear? in ‘PM2 logs mm’ ??
If so, It doesn’t appear in my logs, which means I don’t have the module correctly installed right?
But if i check on ‘GPIO readall’ I can see how the IN is activated and also the OUT relay when it detects presence
-
@desq I’m not using the mmm-PIR I’m using something else… BUT I do know from reading that it wasn’t working with node V6… you had to roll back to V5.
I still had trouble with v5 so I went with something else…
-
@cowboysdude mh… I really would like to stick with paviros module.
“USER_PRESENCE” (PIR Sensor) seems to work, but my Relay does not change it´s state.
@paviro can you confirm, that your PIR module doesn´t work with node 6.22?If so I must switch to that python-script-hell.
-
@desq sorry no idea :D haven’t touched it in a while since I am pretty busy at the moment (finished school, now moving to a new city at the other side of the country). Could be possible that my dependencies work with v6 now but I still need to update it and change some stuff once I have the time :)
What exactly do you mean by duration? A delay? My PIR-Sensor can do that in hardware thats why I haven’t implemented it.