changing stuff
This commit is contained in:
@@ -21,6 +21,7 @@ def get_weather_icon(description):
|
||||
"overcast clouds": "☁️",
|
||||
"shower rain": "🌦️",
|
||||
"light rain": "🌧️",
|
||||
"light intensity drizzle": "🌧️",
|
||||
"moderate rain": "🌧️",
|
||||
"rain": "🌧️",
|
||||
"thunderstorm": "⛈️",
|
||||
@@ -42,7 +43,7 @@ try:
|
||||
#print(weather_data)
|
||||
|
||||
weather_desc = weather_data["weather"][0]["description"]
|
||||
#print(weather_desc)
|
||||
(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