My Raspberry Pi 3 (running debain stretch) is connected to a relay board.
Two Python Scripts are turning it on/off. When I run the script manually it works, when I let crontab do it only "on" seems to work. I can not figure out what I did wrong.
I've read some posts and included a shebang, made the file writable,...
on.py
#!/usr/bin/python3
from gpiozero import OutputDevice
light = OutputDevice(2)
light.on()
off.py
#!/usr/bin/python3
from gpiozero import OutputDevice
light = OutputDevice(2)
light.off()
at "crontab -e
" i've written:
0 11 * * * /home/pi/Desktop/off.py