This script fires my relays, but I don't know how to change duration and need it to fire daily to run pump and ozonator for an iso float tank. I'm currently only using GPIO 9 and 10
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
# init list with pin numbers
pinList = [10, 9]
# loop through pins and set mode and state to 'low'
for i in pinList:
GPIO.setup(i, GPIO.OUT)
GPIO.output(i, GPIO.HIGH)
# time to sleep between operations in the main loop
SleepTimeL = 2
# main loop
try:
GPIO.output(10, GPIO.LOW)
print ("OZONE")
time.sleep(SleepTimeL);
GPIO.output(9, GPIO.LOW)
print ("PUMP")
time.sleep(SleepTimeL);
GPIO.cleanup()
print ("Good bye!")
# End program cleanly with keyboard