Add live weather layer from MeteoSwiss stations #7
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/weather-layer"
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?
Live weather data from MeteoSwiss as a new layer on the combined map.
Changes
Schaad.OpenData.Weather(same pattern as Hydrology):MeteoSwissClientreads{abbr}/ogd-smn_{abbr}_t_now.csvfor the five SwissMetNet stations in Thurgau (GUT, STK, BIZ, TAE, HAI; configurable viaWeather:Stations) every 10 minutes, and the Latin-1 station listogd-smn_meta_stations.csvonce a day._t_recent.csv(~6 MB) is streamed once and only the last 7 days are kept; max once per hour per station.weather/thurgau/days/…, 60 days); a failing station does not stop the others./api/weather/meta,/stations(current values, 1 h/24 h rain, sunshine, 24 h min/max temperature, strongest gust),/stations/{abbr}/history?tage=7.appsettings.json, Dockerfile.docs/datasets/wetter.md, overview diagram and table indocs/datasets.md, CLAUDE.md.Testing
dotnet test: 113 passed (13 new: CSV parsing incl. Latin-1 metadata and UTC timestamps, storage, refresher incl. backfill and failing stations, analysis).npm run typecheckandnpm run buildpass.🤖 Generated with Claude Code
- New Schaad.OpenData.Weather project: MeteoSwissClient reads the 10-minute CSV of the five SwissMetNet stations in Thurgau every 10 minutes (station list once a day) and backfills the last 7 days from the yearly file when the cache has less than 6 days - History kept as JSON per day (60 days); a failing station does not stop the others - API: /api/weather/meta, /stations (current values, 1 h/24 h rain, 24 h min/max, strongest gust), /stations/{abbr}/history - Combined map: "Wetter (live)" layer with station badges (temperature, 24 h rain or wind), wind arrows, rain marker, station panel with hourly 7-day chart, overview and municipality context entries - Docs: docs/datasets/wetter.md, overview in docs/datasets.md, CLAUDE.md; Docker and appsettings wiring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>