Stub — see Smart scheduler for user-facing summary.
15 15 * * * UTC → /api/cron/scheduler (plus manual run from Settings).
Steps (simplified):
- Load tomorrow’s Agile export rates for the user’s GSP
- Find best export window above
minExportRateP - Insert Force Charge periods for IO cheap window (start + overnight tail)
- Fill remaining periods with Self-use
- Push
tomorrowScheduleto FoxESS (full next calendar day) - Log run + estimates to Neon (
scheduler_log)
lib/domain/scheduler.ts, lib/providers/foxess-scheduler.ts.