fix: use IMGW Hybrid for current weather
This commit is contained in:
41
types/imgw-current.ts
Normal file
41
types/imgw-current.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user