改进METAR当日状态判断与展示

This commit is contained in:
2569718930@qq.com
2026-04-21 19:13:33 +08:00
parent 3901a9e967
commit 582ded8cfb
6 changed files with 230 additions and 84 deletions
+12
View File
@@ -64,6 +64,7 @@ export interface CurrentConditions {
station_name?: string | null;
obs_time: string | null;
obs_age_min: number | null;
observation_status?: "live" | "missing" | "stale" | string | null;
wind_speed_kt: number | null;
wind_dir: number | null;
humidity: number | null;
@@ -100,6 +101,9 @@ export interface AirportCurrentConditions {
is_airport_station?: boolean;
is_official?: boolean;
is_settlement_anchor?: boolean;
stale_for_today?: boolean;
last_observation_local_date?: string | null;
current_local_date?: string | null;
}
export interface NearbyStation {
@@ -466,6 +470,14 @@ export interface CityDetail {
time?: string;
temp?: number | null;
}>;
metar_status?: {
available_for_today?: boolean;
stale_for_today?: boolean;
last_observation_time?: string | null;
last_observation_local_date?: string | null;
current_local_date?: string | null;
last_temp?: number | null;
};
settlement_today_obs?: Array<{
time?: string;
temp?: number | null;