The script hourlycrontab,sh is executed periodically by the cron to
1) execute the scheduler state
2) execute Lua script
3) check for internet connectivity by pinging its external address
if there is no internet conenxion available, the script reboot the raspberry after an attempt to restart network services. This will cause problem if the internet is cut for a couple of days: the raspberry will keep rebooting and the devices connected to it (like the pump) will continuously be switched on / off
Instead, the script should maintain a counter that prevents him from rebooting if its counter reached a certain value so the raspberry is kept alive and continuing to operate without internet connection
The script hourlycrontab,sh is executed periodically by the cron to 1) execute the scheduler state 2) execute Lua script 3) check for internet connectivity by pinging its external address if there is no internet conenxion available, the script reboot the raspberry after an attempt to restart network services. This will cause problem if the internet is cut for a couple of days: the raspberry will keep rebooting and the devices connected to it (like the pump) will continuously be switched on / off Instead, the script should maintain a counter that prevents him from rebooting if its counter reached a certain value so the raspberry is kept alive and continuing to operate without internet connection