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 startcommand in the~MagicMirrordirectory - if you use
pm2program. you can see log withpm2 logcommand
note: if you MM is launched by
pm2don’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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login