New Art Project Cronjob - run every 20 minutes
*/20 * * * *
* * * * * myjob.sh >> /var/log/myjob.log 2>&1from gpiozero import LED
from time import sleep
# Replace 17 with the GPIO pin number connected to the relay
relay = LED(17)
# Turn the engine on
relay.on()
print("Engine is ON")
sleep(5) # Keeps the engine on for 5 seconds
# Turn the engine off
relay.off()
print("Engine is OFF")
SRD-12VDC-SL-C
https://a.co/d/0gLZXBqK
- https://cron.help/every-20-minutes
- How to log cron jobs?
- How to Create and Set Up a Cron Job in Linux
- Wiring to control 12V relay (SRD-12VDC-SL-C) manually
- Correct way to control 12V relay from a Raspberry Pi
- How do I go about using this Songle SRD-12VDC-SL-C?
- Wiring Diagram 1; Working Mode Description; Wiring Instructions - SONGLE SRD-12VDC-SL-C Manual
- How to test 12VDC Relay || SRD-12VDC-SLC
- Electronics single pole double throw switch demonstration circuit using SRD 05VDC SL C relay
- https://raspberrypi.stackexchange.com/questions/1617/how-do-i-supply-power-through-the-gpio
- https://techietory.com/electronics/exploring-gpio-pins-on-raspberry-pi-basics-of-general-purpose-input-output/
- https://gpiozero.readthedocs.io/en/latest/api_output.html#
- https://gpiozero.readthedocs.io/en/stable/source_values.html
- https://pypi.org/project/gpiozero/
- https://github.com/gpiozero/gpiozero
- https://www.raspberrypi.com/documentation/computers/raspberry-pi.html