From dd3e05604e2072ca0c58d2dde8fb977a6f234fe2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 13 May 2024 09:40:39 +0200 Subject: [PATCH] weather: show symbols for the next 12 hours --- bin/weather | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/weather b/bin/weather index 135ae01..f3c539e 100755 --- a/bin/weather +++ b/bin/weather @@ -179,8 +179,9 @@ if __name__ == "__main__": "{}°C".format( round(weather[0]["data"]["instant"]["details"]["air_temperature"]) ), - # Forecast: use the symbol for the next 6 hours - format_icon(weather[0]["data"]["next_6_hours"]["summary"]["symbol_code"]), + # Forecast: use the symbol for the next 6 hours and the period after + format_icon(weather[0]["data"]["next_6_hours"]["summary"]["symbol_code"]) + + format_icon(weather[6]["data"]["next_6_hours"]["summary"]["symbol_code"]), # And the temperature range computed for the next 24 hours "{}—{}°C".format(round(mintemp), round(maxtemp)), ]