OceanCron: per-site solar times updated daily

Issue #285 new
Alan Noble created an issue

Cron jobs utilizing solar times need to be computed daily using the location of their associated site.

The all-in-one-go approach is to have a “master cron job” that runs daily, say at midnight UTC, which updates all of the crons that contain solar times.

The incremental approach is to recompute each cron that contains a solar time incrementally, say immediately after the cron job as run.

The cron scheduler will need to differentiate crons jobs that utilize solar times from those that don’t.

PS NetReceiver implements a variation on the all-in-one-go approach.

Comments (1)

  1. Alan Noble reporter

    This might be more readily implemented if the solar time syntax (optionally) included location information. For example @sunrise(-34.92857,138.60006) would denote sunrise at latitude -34.92857, longitude 138.60006 (namely, Victoria Square).

    @kortschak , would appreciate your thoughts?

  2. Log in to comment