Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4901

Beginners • Re: How to process from sensor and send notification peridically?

$
0
0
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.

Statistics: Posted by neilgl — Thu Dec 26, 2024 11:08 pm



Viewing all articles
Browse latest Browse all 4901

Trending Articles