From 5f26622adf6be4cc3bd8b4f653fedcec064924e8 Mon Sep 17 00:00:00 2001 From: Empire Date: Fri, 22 Sep 2023 21:30:55 +0200 Subject: [PATCH] add temperature display --- client/bin/src/main.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/client/bin/src/main.rs b/client/bin/src/main.rs index 1fa2072..4692bb8 100644 --- a/client/bin/src/main.rs +++ b/client/bin/src/main.rs @@ -131,6 +131,7 @@ fn render_weather(display: &mut UdpDisplay ,data: &Option { + let mut temp:&f64 = &-1_f64; if !result.list.is_empty() { let mut max:f64 = 0_f64; let mut best = &result.list[0]; @@ -148,6 +149,9 @@ fn render_weather(display: &mut UdpDisplay ,data: &Option { let rain_v = x.three_hours; @@ -159,7 +163,6 @@ fn render_weather(display: &mut UdpDisplay ,data: &Option println!("No rain at {hour}:{minute}"), } - } @@ -168,7 +171,14 @@ fn render_weather(display: &mut UdpDisplay ,data: &Option