Jul-19-2023, 05:17 PM
(This post was last modified: Jul-19-2023, 05:17 PM by deanhystad.)
To schedule with crontab you should get rid of the loop and the sleep. Let crontab schedule how often you update the channel.
From what I can find online, the way to run a python script using crontab is make he python file executable (chmod +x) and add a shebang to the python file. You already have the shebang.
Your crontab entry to run you script every 30 minutes would look like "/30 * * * * /home/mkzero/envirophat2.py"
From what I can find online, the way to run a python script using crontab is make he python file executable (chmod +x) and add a shebang to the python file. You already have the shebang.
Your crontab entry to run you script every 30 minutes would look like "/30 * * * * /home/mkzero/envirophat2.py"