Thank you for all your efforts with this project, it is an excellent project.
I think I have followed everything correctly and I now have the dispay showing the current rate.
However, it doesn't update.
When I SSH in and run the update python3 octoprice_main_inky.py it connects, downloads the current prices and updates the price.
I'm new to programming so really struggling to find the problem with why it won't update.
Cron is set as below:
@reboot sleep 10; cd /home/$USER/octopus-agile-pi-prices; /usr/bin/python3 octoprice_main_inky.py > /home/$USER/cron.log
/30 sleep 20; cd /home/$USER/octopus-agile-pi-prices; /usr/bin/python3 octoprice_main_inky.py > /home/$USER/cron.log
05 16 cd /home/$USER/octopus-agile-pi-prices; /usr/bin/python3 store_prices.py -r G -t FLEX-22-11-25 > /home/$USER/cron.log
Edit this file to introduce tasks to be run by cron.
#
Each task to run has to be defined through a single line
indicating with different fields when the task will be run
and what command to run for the task
#
To define the time you can provide concrete values for
minute (m), hour (h), day of month (dom), month (mon),
and day of week (dow) or use '*' in these fields (for 'any').
#
Notice that tasks will be started based on the cron's system
daemon's notion of time and timezones.
#
Output of the crontab jobs (including errors) is sent through
email to the user the crontab file belongs to (unless redirected).
#
For example, you can run a backup of all your user accounts
at 5 a.m every week with:
0 5 1 tar -zcf /var/backups/home.tgz /home/
#
For more information see the manual pages of crontab(5) and cron(8)
#
m h dom mon dow command
Any help on where to look next much appreciated.
Thanks
Thank you for all your efforts with this project, it is an excellent project.
I think I have followed everything correctly and I now have the dispay showing the current rate. However, it doesn't update. When I SSH in and run the update python3 octoprice_main_inky.py it connects, downloads the current prices and updates the price.
I'm new to programming so really struggling to find the problem with why it won't update.
Cron is set as below:
@reboot sleep 10; cd /home/$USER/octopus-agile-pi-prices; /usr/bin/python3 octoprice_main_inky.py > /home/$USER/cron.log /30 sleep 20; cd /home/$USER/octopus-agile-pi-prices; /usr/bin/python3 octoprice_main_inky.py > /home/$USER/cron.log 05 16 cd /home/$USER/octopus-agile-pi-prices; /usr/bin/python3 store_prices.py -r G -t FLEX-22-11-25 > /home/$USER/cron.log
Edit this file to introduce tasks to be run by cron.
#
Each task to run has to be defined through a single line
indicating with different fields when the task will be run
and what command to run for the task
#
To define the time you can provide concrete values for
minute (m), hour (h), day of month (dom), month (mon),
and day of week (dow) or use '*' in these fields (for 'any').
#
Notice that tasks will be started based on the cron's system
daemon's notion of time and timezones.
#
Output of the crontab jobs (including errors) is sent through
email to the user the crontab file belongs to (unless redirected).
#
For example, you can run a backup of all your user accounts
at 5 a.m every week with:
0 5 1 tar -zcf /var/backups/home.tgz /home/
#
For more information see the manual pages of crontab(5) and cron(8)
#
m h dom mon dow command
Any help on where to look next much appreciated. Thanks