mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 09:35:40 +02:00
weather: show symbols for the next 12 hours
This commit is contained in:
parent
4f44050fe7
commit
dd3e05604e
1 changed files with 3 additions and 2 deletions
|
@ -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)),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue