diff options
| -rw-r--r-- | docs/superpowers/plans/2026-09-17-weather-widget.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/superpowers/plans/2026-09-17-weather-widget.md b/docs/superpowers/plans/2026-09-17-weather-widget.md index 14c7044..853e08c 100644 --- a/docs/superpowers/plans/2026-09-17-weather-widget.md +++ b/docs/superpowers/plans/2026-09-17-weather-widget.md @@ -68,7 +68,10 @@ local weather = require 'lib.weather' -- ranges come from the polybar script that ran against this API for years. -- Each assertion pairs the last id in a range with the first id of the next, -- which is where an off-by-one would hide. -local DAY, NIGHT = 1000, 2000 -- timestamps either side of the sun, set below +-- Sunrise 1500, sunset 1900, so DAY must sit INSIDE that window and NIGHT +-- outside it. Naming them without checking them against the window is how the +-- first draft of this test made every timestamp evaluate as night. +local DAY, NIGHT = 1700, 2000 local function icon(id, now) return weather.icon(id, now, 1500, 1900) -- sunrise 1500, sunset 1900 |
