feat: prefer IMGW ALARO forecast data
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user