Pop quiz (because I'm trying to solve this problem):How would you schedule a job to run at sunrise? Or at sunset?The problem, of course, being that "sunrise" and "sunset" are moving targets. Different each day by a few minutes.How would you solve this?#FreeBSD #Linux #cron #popquiz #programming

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 1 week ago

@BastilleBSD since I run a Home Assistant server anyway, I use that to fire off an ssh command using the built-in sunrise/sunset triggers.

  • source