diff --git a/backend/router/v1/weather/protocol.py b/backend/router/v1/weather/protocol.py index 9c230f8..48ebe84 100644 --- a/backend/router/v1/weather/protocol.py +++ b/backend/router/v1/weather/protocol.py @@ -14,6 +14,7 @@ class WeatherSlot(WebPacketProtocol): rain_type: Optional[RainType] = None rain_prob: Optional[int] = None humidity: Optional[int] = None + wind_ms: Optional[float] = None icon: str tone: SlotTone note: str diff --git a/backend/router/v1/weather/weather.py b/backend/router/v1/weather/weather.py index 5572a62..c5f8c9c 100644 --- a/backend/router/v1/weather/weather.py +++ b/backend/router/v1/weather/weather.py @@ -28,6 +28,7 @@ def _to_slot(s: Slot) -> WeatherSlot: if s.row is not None: data.temp_c, data.feels_c = float(s.row.temp_c), float(s.row.feels_c) data.sky, data.rain_type, data.rain_prob, data.humidity = Sky(s.row.sky), RainType(s.row.rain_type), s.row.rain_prob, s.row.humidity + data.wind_ms = float(s.row.wind_ms) if s.row.wind_ms is not None else None return data diff --git a/shared/api/client/types.gen.ts b/shared/api/client/types.gen.ts index 431c3dc..bc9400a 100644 --- a/shared/api/client/types.gen.ts +++ b/shared/api/client/types.gen.ts @@ -3855,6 +3855,10 @@ export type WeatherSlot = { * Humidity */ humidity?: number | null; + /** + * Wind Ms + */ + wind_ms?: number | null; /** * Icon */