Read the statement by Michael Teeuw here.
Pir sensor
-
@tanvir586 what is not working?
lite is the one that was updated most recently
-
@sdetweil I put the countdown for 1 min. but when the countdown start it goes to 54 then it go back to 1 min again.
my config is
{
module: “MMM-PIR-Sensor-Lite”,
position: “top_right”,
config: {
sensorPin: 2, // GPIO pin
}
}and the .js is
defaults: {
sensorPin: 0, // GPIO pin
commandType: ‘xrandr’, // Type of command used
title: “Automatic Standby”,
rotation: ‘normal’,
deactivateDelay: 1 * 60 * 1000, // 15 minutes
updateInterval: 1000, // 1 second
animationSpeed: 1000, // 1 second
showCountDown: true,
showDetection: true,
hoursLabel: ‘h’,
minutesLabel: ‘m’,
secondsLabel: ‘s’,
}, -
@tanvir586 said in Pir sensor:
and the .js is
never edit the module js file
all config goes in config.js
I don’t know the module
does the PIR work outside MM?
-
@sdetweil it work like https://github.com/paviro/MMM-PIR-Sensor
mmm-pir-sensor is not working anymore that’s why I wanted to use the light one. but this one is not working looks like -
@tanvir586 no, my question was , if u test the PIR connection/setup outside of MM does it work
using a python script?
I undertstand how it is SUPPOSED to work , and have tested modules on one of my systems before, but don’t
use PIR daily -
@sdetweil Hi mate. Sorry I don’t know how to do that. I’m not a programming person. I’m copy past person actually 🤣
-
-
This is what I use to put my monitor to sleep using a PIR sensor. I have a 3D printed case for the sensor that hangs under the mirror itself. The sensor does not have anything to do with the magic mirror software at all, in fact it just puts the monitor to sleep when no one is in the area.
-
@pugsly right, just trying to help w the debug. lots of things can go wrong, so, it’s best to start at the beginning before getting MM involved.
-
@pugsly I’ll give it a try tomorrow. Thanks