changed background added stuff to weather.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user