Wetterdienst: Verhersage verlängert, Anzeige im Stundenplan.

This commit is contained in:
2026-08-23 21:31:15 +02:00
parent 1b32166ce0
commit e76884a58e
7 changed files with 390 additions and 5 deletions
+3 -1
View File
@@ -138,7 +138,9 @@ public sealed class DwdWeatherService(HttpClient http)
? series[i] : null;
var hours = new List<WeatherForecastHour>();
var earliest = DateTime.UtcNow.AddHours(-1);
for (var i = 0; i < times.Count && hours.Count < 72; i++)
// MOSMIX_L reicht bis +240 h. Die vollständige Spanne ist für die Unterrichtsplanung
// sinnvoll, weil das Wochenraster auch in die Folgewoche geblättert werden kann.
for (var i = 0; i < times.Count && hours.Count < 240; i++)
{
if (times[i] < earliest) continue;
hours.Add(new WeatherForecastHour