Read the statement by Michael Teeuw here.
MMM-Pir or MMM-PIR-Sensor
-
@svenpisa that is why I wanted you to run the python script outside of MagicMirror to confirm the PIR sensor is working correctly, detecting presence
if it doesn’t work without MagicMirror it won’t work WITH MagicMirror either.
-
I don’t understand that. I have done it exactly according to the tutorial and via
sudo python motion_sensor.py
to test the Pir. I could not recognize a new line immediately after a movement, but a line is generated every 5 seconds.
Since the tutorial says that the sensor waits 5 seconds until it queries again, I would have thought that it would work since the 1 is specified.But now an entry is created directly every 5 seconds
I am open to all modules and settings to get the PIR up and running. If only I knew how to do it…
-
@svenpisa I don’t know exactly the problem…
the 5 second thing is in the code, not the PIR
it sounds like the pin number you are using is wrong, or the code is expecting no heat to be 0 and heat to be 1 ( pull up)
there are three different pin numbering orders and they are all different. sequential on the pi, and two others I can never remember.
until you get the python script showing motion/no motion, it cannot work under MagicMirror
-
Just for fun, I have now entered a different GPIO pin in sensor.py and started sudo python motion_sensor.py. Nothing happens here. So I have already selected the correct pin. But as you say, it’s probably the script.
How can I uninstall the motion sensor again? Simply delete the folder or is there a clean way?
I guess I’ll have to look for another solution, won’t I? -
@svenpisa yes, just delete the folder
-