From 92206d82f0a3e49bf07f98682671bdcccfeaac73 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 28 Oct 2026 14:44:31 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=98=A4=EB=8A=98=20=EB=82=A0=EC=94=A8?= =?UTF-8?q?=20=EC=B9=B8=EC=97=90=20=ED=92=8D=EC=86=8D(wind=5Fms)=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=E2=80=94=20=EB=82=A0=EC=94=A8=EA=B2=8C?= =?UTF-8?q?=EC=9E=84=20=EB=B0=94=EB=9E=8C=EC=97=90=20=EC=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/router/v1/weather/protocol.py | 1 + backend/router/v1/weather/weather.py | 1 + shared/api/client/types.gen.ts | 4 ++++ 3 files changed, 6 insertions(+) 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 */