mirror of
https://github.com/niels-emmer/wall-cast.git
synced 2026-09-13 23:53:36 +02:00
[PR #2] [MERGED] fix(warnings): MeteoAlarm feed + rotator timer reset #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
github-mirrors/wall-cast#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/niels-emmer/wall-cast/pull/2
Author: @niels-emmer
Created: 3/21/2026
Status: ✅ Merged
Merged: 3/21/2026
Merged by: @niels-emmer
Base:
main← Head:fix/warnings-datasource-and-timer📝 Commits (1)
a4938c4fix(warnings): switch to MeteoAlarm feed + fix rotator timer reset📊 Changes
4 files changed (+135 additions, -106 deletions)
View changed files
📝
backend/app/routers/warnings.py(+101 -82)📝
docs/memory/INDEX.md(+3 -3)📝
docs/memory/records/decision-log.md(+7 -3)📝
frontend/src/widgets/rotate/RotatorWidget.tsx(+24 -18)📄 Description
Summary
Two bugs introduced with the warnings widget, both fixed here.
Wrong data source: The KNMI CDN XML returns 403 to server-side HTTP requests (browser-only). Switched to
feeds.meteoalarm.org/feeds/meteoalarm-legacy-atom-netherlands— the official public Atom/CAP 1.2 feed that KNMI feeds into. No API key needed. Parsescap:severity→ geel/oranje/rood,cap:areaDesc→ region,cap:event→ phenomenon, filters to currently-active entries only.Rotator timer reset:
skipSetwas inuseState, so it appeared in thesetIntervaleffect's dependency array. EachonSkip()call restarted the interval, giving the previous slot a fresh full rotation period (effectively 2× display time). MovedskipSettouseRefwith a separateskipVersioncounter for re-renders — interval now only recreates when slot count or interval changes.Test plan
git pull && docker compose up --build -don VPSGET /api/warnings— should now return active fog warnings for NL (currently active per knmi.nl)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.