fix: use IMGW Hybrid for current weather

This commit is contained in:
zv
2026-06-02 16:18:10 +02:00
parent 22b8969379
commit fe73bc23ef
13 changed files with 267 additions and 36 deletions

41
types/imgw-current.ts Normal file
View File

@@ -0,0 +1,41 @@
export interface RawImgwHybridWeatherRow {
Icon10?: unknown;
Wind_Dir?: unknown;
Temperature?: unknown;
Chill?: unknown;
Rain10m?: unknown;
Snow10m?: unknown;
Wind_Speed?: unknown;
MODEL?: unknown;
Date?: unknown;
Precipitation10m?: unknown;
Type?: unknown;
Humidity?: unknown;
Cloud?: unknown;
PressureMSL?: unknown;
}
export interface RawImgwHybridWeatherResponse {
data?: {
Valid?: unknown;
Data?: unknown;
};
}
export type CurrentWeatherCondition = "rain" | "snow" | "thunderstorm" | null;
export interface ImgwCurrentWeather {
measuredAt: string;
temperature: number | null;
feelsLike: number | null;
windSpeed: number | null;
windDirection: number | null;
humidity: number | null;
pressure: number | null;
precipitation10m: number | null;
rainfall10m: number | null;
snowfall10m: number | null;
cloudCover: number | null;
weatherCode: number | null;
condition: CurrentWeatherCondition;
}