changed background added stuff to weather.py

This commit is contained in:
opal
2024-06-04 12:44:25 -07:00
parent c8d671eaff
commit 758b1dca78
6 changed files with 4 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ def get_weather_icon(description):
"thunderstorm": "",
"snow": "",
"mist": "󰖑",
"haze": "󰖑"
}
return icons.get(description, "")
@@ -38,7 +39,7 @@ try:
weather_data = response.json()
weather_desc = weather_data["weather"][0]["description"]
# print(weather_desc)
#print(weather_desc)
temp_c = round(weather_data["main"]["temp"])
temp_f = round(celsius_to_fahrenheit(temp_c))
weather_icon = get_weather_icon(weather_desc)