Add live water layer from BAFU hydrology data #6
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/hydrology-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 water data from BAFU as a new layer on the combined map.
Changes
Schaad.OpenData.Hydrology(same pattern as the other datasets):LindasHydroClient: one SPARQL query tolindas.admin.ch/queryevery 10 minutes for nine stations (Bodensee Romanshorn, Untersee Berlingen, Thur Halden/Andelfingen/Jonschwil, Murg Frauenfeld/Wängi, Aach Salmsach, Sitter St. Gallen); configurable viaHydrology:StationIds.hydrology/thurgau/days/…, 60 days).HydrodatenPlotClient: fills missing history (first start, gaps > 45 min) from the 7-day plot JSON of hydrodaten.admin.ch, at most hourly per station, 10-minute marks only; LINDAS values win. Undocumented endpoint: if it fails, only the backfill is skipped./api/hydrology/meta,/stations(current values, 24 h level change and discharge),/stations/{id}/history?tage=7.appsettings.json, Dockerfile.docs/datasets/gewaesser.md, overview diagram and table indocs/datasets.md, CLAUDE.md.Testing
dotnet test: 100 passed (20 new: LINDAS parsing, plot parsing, snapshot merge, storage, refresher incl. backfill rules, analysis).npm run typecheckandnpm run buildpass.🤖 Generated with Claude Code
- New Schaad.OpenData.Hydrology project: LindasHydroClient fetches the current level, discharge, water temperature and danger level of nine BAFU stations around Thurgau from LINDAS every 10 minutes - LINDAS has no history, so the server keeps readings per day (60 days) and fills gaps from the 7-day plot JSON of hydrodaten.admin.ch - API: /api/hydrology/meta, /stations, /stations/{id}/history - Combined map: "Gewässer (live)" layer with river circles (size by discharge, colour by danger level or water temperature), lake level badges, station panel with 7-day chart, overview and municipality context entries - Docs: docs/datasets/gewaesser.md, overview in docs/datasets.md, CLAUDE.md; Docker and appsettings wiring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>