See the excellent startup guide here https://forums.raspberrypi.com/viewtopic.php?t=314455
B) get your python script to check things in a loop (while…) every 5 minutes (say) if no PIR has been seen, send email.
Store the PIR reading (from GPIO) with a timestamp in a file or SQLite database.
No threads needed.
No locking needed.
No synchronisation needed.
B) get your python script to check things in a loop (while…) every 5 minutes (say) if no PIR has been seen, send email.
Store the PIR reading (from GPIO) with a timestamp in a file or SQLite database.
No threads needed.
No locking needed.
No synchronisation needed.
Statistics: Posted by neilgl — Thu Dec 26, 2024 11:08 pm