feat: add global weather support
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m54s

This commit is contained in:
zv
2026-06-14 15:53:34 +02:00
parent d572c9cc53
commit 2182297adc
45 changed files with 739 additions and 212 deletions

View File

@@ -23,10 +23,11 @@ export interface RawImgwHybridWeatherResponse {
}
export type CurrentWeatherCondition = "rain" | "snow" | "thunderstorm" | null;
export type ImgwCurrentWeatherCoverage = "full" | "hourly" | "precipitation-only";
export type ImgwCurrentWeatherCoverage = "full" | "hourly" | "precipitation-only" | "global-model";
export interface ImgwCurrentWeather {
export interface ImgwCurrentWeather extends WeatherSourceMetadata {
coverage: ImgwCurrentWeatherCoverage;
region: WeatherRegion;
measuredAt: string;
temperature: number | null;
feelsLike: number | null;
@@ -41,3 +42,4 @@ export interface ImgwCurrentWeather {
weatherCode: number | null;
condition: CurrentWeatherCondition;
}
import type { WeatherRegion, WeatherSourceMetadata } from "@/types/weather-region";