Start script :
sudo python3 pir.py
Change: URL = " " with Your mp3 stream address.
Change: "time.sleep(600)" if you want a shorter or longer playing time.
Data cable PIR on Pin 4.
Automatic PIR internet mp3 stream player that is programmable to stop after a while. Ideal for use in places such as the toilet
Start script :
sudo python3 pir.py
Change: URL = " " with Your mp3 stream address.
Change: "time.sleep(600)" if you want a shorter or longer playing time.
Data cable PIR on Pin 4.
Comments
Please log in or sign up to comment.