This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Set cron jobs by sunset and sunrise time using sensor data from Home Assistant (HASS) | |
# Original work by Paul Philippov <[email protected]> - https://gist.github.com/themactep/06f951da3fc05693871cc15aa243dff5 | |
# Create separate entry in your crontab to run this script at midnight (or after DST clock changes) to update the times daily | |
# | |
# 2024.06.13.00 Initial version | |
# 2024.06.13.01 Using universal sun.sun entity from HASS, removed leading zero from printf (%02d) output to crontab | |
# |