Files
wtr/types/imgw-current.ts
zv 2182297adc
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m54s
feat: add global weather support
2026-06-14 15:59:14 +02:00

46 lines
1.2 KiB
TypeScript

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 type ImgwCurrentWeatherCoverage = "full" | "hourly" | "precipitation-only" | "global-model";
export interface ImgwCurrentWeather extends WeatherSourceMetadata {
coverage: ImgwCurrentWeatherCoverage;
region: WeatherRegion;
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;
}
import type { WeatherRegion, WeatherSourceMetadata } from "@/types/weather-region";