We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aebb0b commit 8efc975Copy full SHA for 8efc975
2 files changed
src/weather.rs
@@ -111,8 +111,8 @@ pub async fn set_weather(api: Api<'_>) {
111
let offset_hours = format!("+{offset_sec}:00");
112
113
api.set_weather_current(WeatherCurrent {
114
- temperature: api_data.current.temperature_2m,
115
- precipitation: api_data.current.precipitation,
+ temperature: api_data.current.temperature_2m as i32,
+ precipitation: api_data.current.precipitation as i32,
116
weather_type: code_to_type(api_data.current.weather_code),
117
});
118
ui/api.slint
@@ -36,8 +36,8 @@ export struct WeatherDaily {
36
}
37
38
export struct WeatherCurrent {
39
- temperature: float,
40
- precipitation: float,
+ temperature: int,
+ precipitation: int,
41
weather_type: WeatherType,
42
43
0 commit comments