Script to run in cron to turn on and off a lamp based on sunrise and sunset data.
Sunrise data source: https://sunrise-sunset.org/api Sonoff firmware: https://github.com/Gruppio/Sonoff-Homekit
*/15 * * * * cd ~/smart_home/ && ./toggle_lamp.sh 2>&1
Script to run in cron to turn on and off a lamp based on sunrise and sunset data.
Sunrise data source: https://sunrise-sunset.org/api Sonoff firmware: https://github.com/Gruppio/Sonoff-Homekit
*/15 * * * * cd ~/smart_home/ && ./toggle_lamp.sh 2>&1