feat: prefer IMGW ALARO forecast data

This commit is contained in:
zv
2026-06-02 20:23:55 +02:00
parent ad4248efdf
commit b97a1cf1ea
11 changed files with 371 additions and 69 deletions

View File

@@ -22,6 +22,23 @@ export interface RawWeatherForecast {
daily?: RawForecastSeries;
}
export interface RawImgwForecastRow {
Date?: unknown;
Temperature?: unknown;
Chill?: unknown;
Precipitation?: unknown;
Icon?: unknown;
Wind_Speed?: unknown;
}
export interface RawImgwForecastResponse {
data?: {
Data?: unknown;
};
}
export type ForecastSource = "imgw-alaro" | "open-meteo";
export interface HourlyForecast {
time: string;
temperature: number | null;
@@ -30,6 +47,7 @@ export interface HourlyForecast {
precipitation: number | null;
weatherCode: number | null;
windSpeed: number | null;
source: ForecastSource;
}
export interface DailyForecast {
@@ -41,6 +59,7 @@ export interface DailyForecast {
weatherCode: number | null;
sunrise: string | null;
sunset: string | null;
sources: ForecastSource[];
}
export interface WeatherForecast {
@@ -49,4 +68,5 @@ export interface WeatherForecast {
timezone: string;
hourly: HourlyForecast[];
daily: DailyForecast[];
sources: ForecastSource[];
}