Weather-reactive schemes #25

Open
opened 2026-07-07 17:38:25 +00:00 by claude-bot · 0 comments
Contributor

Goal

Modulate the active scheme based on live weather: a blue wash while raining, white twinkle while snowing, warm amber on a heat advisory, wind-driven effect speed, etc.

Why it's valuable

For outdoor holiday lighting this turns a static schedule into something that feels alive and responsive to conditions — a genuinely novel, high-delight capability. It reuses the scheduler and push loop; the new parts are a weather data source and a scheme-modifier layer.

Sketch

  • Pluggable weather provider (e.g. met.no / OpenWeather), env-gated with lat/long already configured for solar scheduling.
  • A modifier layer applied at push time: the resolved scheme is the base; weather adjusts brightness/effect/accent within bounds so it never overrides the event's identity.
  • Per-condition mapping configurable in settings; safe defaults shipped.
  • Cache + rate-limit provider calls; degrade gracefully to the base scheme on provider failure.

Acceptance criteria

  • Live weather adjusts the active scheme within configured bounds
  • Event identity is preserved (modifier, not replacement)
  • Provider env-gated, cached, and fails safe to the base scheme
  • Tests with a mocked provider across representative conditions

Design note

Consider building this as the first consumer of the rule-engine abstraction (#TBD inbound triggers) if that lands first — weather is one "event source" among many.

Proposed enhancement (brainstorm follow-up).

## Goal Modulate the active scheme based on live weather: a blue wash while raining, white twinkle while snowing, warm amber on a heat advisory, wind-driven effect speed, etc. ## Why it's valuable For outdoor holiday lighting this turns a static schedule into something that feels alive and responsive to conditions — a genuinely novel, high-delight capability. It reuses the scheduler and push loop; the new parts are a weather data source and a scheme-modifier layer. ## Sketch - Pluggable weather provider (e.g. met.no / OpenWeather), env-gated with lat/long already configured for solar scheduling. - A **modifier layer** applied at push time: the resolved scheme is the base; weather adjusts brightness/effect/accent within bounds so it never overrides the event's identity. - Per-condition mapping configurable in settings; safe defaults shipped. - Cache + rate-limit provider calls; degrade gracefully to the base scheme on provider failure. ## Acceptance criteria - [ ] Live weather adjusts the active scheme within configured bounds - [ ] Event identity is preserved (modifier, not replacement) - [ ] Provider env-gated, cached, and fails safe to the base scheme - [ ] Tests with a mocked provider across representative conditions ## Design note Consider building this as the first consumer of the rule-engine abstraction (#TBD inbound triggers) if that lands first — weather is one "event source" among many. Proposed enhancement (brainstorm follow-up).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rbrooks/Iris-WLED#25
No description provided.