OpenDataVisualizer/Schaad.OpenData.Hydrology/HydrologyOptions.cs
Claudio Schaad 58e4079ced Add live water layer from BAFU hydrology data (#6)
- 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>
Co-authored-by: Claudio Schaad <c.schaad@pog.ch>
Co-committed-by: Claudio Schaad <c.schaad@pog.ch>
2026-11-18 19:41:23 +00:00

23 lines
789 B
C#

namespace Schaad.OpenData.Hydrology;
public sealed class HydrologyOptions
{
public const string SectionName = "Hydrology";
public static readonly IReadOnlyList<string> DefaultStationIds =
["2032", "2043", "2181", "2044", "2303", "2386", "2126", "2312", "2468"];
public string DataPath { get; set; } = "data";
public TimeSpan RefreshInterval { get; set; } = TimeSpan.FromMinutes(10);
public int HistoryDays { get; set; } = 60;
public string SparqlUrl { get; set; } = "https://lindas.admin.ch/query";
public string PlotsUrl { get; set; } = "https://www.hydrodaten.admin.ch/plots";
public string[] StationIds { get; set; } = [];
public IReadOnlyList<string> EffectiveStationIds => StationIds.Length > 0 ? StationIds : DefaultStationIds;
}