Read the statement by Michael Teeuw here.
MMM-PIR or MMM-PIR-Sensor issues...
-
Hi all, I’ve been building in the background for some time now but I’ve come across a problem trying to install a PIR.
My MM project all set up and running great, but I wanted to turn off the display with either of the above PIR modules and I’ve come across some issues.
When I add this code to my config.js after installing MMM-PIR-Sensor
{ module: 'MMM-PIR-Sensor', config: { sensorPin: 14, powerSaving: true, powerSavingDelay: 40, } }
My MM won’t load, I get a white screen which says;
“localhost refused to connect”
ERR_CONNECTION_REFUSED
I’ve followed the install exactly and can’t see what’s going wrong!
cheers onis
-
This post is deleted! -
Fixed it by running a script outside the modules using this method!
https://github.com/cowboysdude/Pir-Sensor
cheers
onis -
Hi Onis, I got the module running without a script. Did you add the user to the GPIO group and executed the command for turning the HDMI on/off?
-
@onis_uk what’s funny is that I cannot get it work any longer… since Buster came out and I upgraded it turns off but not back on…LOL
-
@cowboysdude someone had to add a parm to the command
Either way, i found another way which is using the command 'vcgencmd display_power 0 2' and 'vcgencmd display_power 1 2' where the 0 stands for Off and 1 stands for On and the 2 stands for my display ID.
-
@sdetweil Thank you!! Been looking all day… gonna try this right now!
-
@sdetweil My old Pir Sensor does not work at all on Buster.
-
@cowboysdude eh?
-
@sdetweil if u ssh in do the two commands work?