namespace Schaad.OpenData.Weather; public sealed class WeatherOptions { public const string SectionName = "Weather"; public static readonly IReadOnlyList DefaultStations = ["GUT", "STK", "BIZ", "TAE", "HAI"]; public string DataPath { get; set; } = "data"; public TimeSpan RefreshInterval { get; set; } = TimeSpan.FromMinutes(10); public int HistoryDays { get; set; } = 60; public string BaseUrl { get; set; } = "https://data.geo.admin.ch/ch.meteoschweiz.ogd-smn"; public string[] Stations { get; set; } = []; public IReadOnlyList EffectiveStations => (Stations.Length > 0 ? Stations : DefaultStations).Select(s => s.Trim().ToUpperInvariant()).ToList(); }