Read the statement by Michael Teeuw here.
MMM-NewPIR only works if i plug/unplug the cable, but not without
-
Hello everyone,
My MagicMirror is working properly and now i am looking into the last detail, introducing a PIR Sensor for Motion Detection and safe energy on the Monitor if not needed.
Now i configured the Module like this:
{
module: ‘MMM-NewPIR’,
position: ‘top_left’,
config: {
useSensor: true,
sensorPin: 23,
reverseValue: false,
delay: 20* 60 * 1000,
turnOffDisplay: true,
ecoMode: false,
governor: “”,
text: “Auto Turn Off Screen:”,
counter: true,
rpi4: false,
debug: false
}
},The Time is running, after the entered time, the screen is getting turned off. That works properly. But the timer is actually only being reseted, when i unplug the cable on either the sensor or the raspberry pi.
I only have one Sensor, i cannot exchange the Sensor.
If i would enable debug to true, where would i find the output?
Thank you very much for your support!
Cheers,
roman -
hi, what is your rpi type ?
-
Hi there,
Thanks for your quick answer.
I do have a Raspberry Pi 3 Model B+
-
ok, if you enable debug mode
you have 2 solutions:
- manual start by
npm start
command in the~MagicMirror
directory - if you use
pm2
program. you can see log withpm2 log
command
note: if you MM is launched by
pm2
don’t forget to stop it (pm2 stop 0
) , if you launch MM in withnpm start
- manual start by
-
Hi there,
The Sensor now works like a charm. But actually i am not sure what i changed, but since i enabled (and now again disabled) the Debug, it recognices every movement like intended.
The Debug actually helped to see when it detects a movement, so that was indeed helpful.
Thank you very much for the quick support!
Best Regards,
Roman