Assuming the script is located in ~/crontabs/
, this needs an edit in the crontab file:
HOUSE_POWER_CHECK_DEPLOYMENT_ID="<INSERT HERE THE DEPLOYMENT ID FROM GOOGLE APP SCRIPTS>"
*/10 * * * * ~/crontabs/house-power-check-heartbeat.sh
It's also helpful to have in the /etc/logrotate.conf
the following:
/home/<YOUR HOME>/crontabs/house-power-check-heartbeat.log {
daily
rotate 2
}