basic weather added

This commit is contained in:
Neythen
2021-06-03 21:56:25 +01:00
parent a1dd720093
commit 7a0056abc4
10 changed files with 130 additions and 36 deletions

View File

@@ -224,7 +224,7 @@ def updateWeather(location, api_key):
url = "https://api.openweathermap.org/data/2.5/weather?q={}&units=metric&appid={}".format(location, api_key)
r = requests.get(url)
weather = r.json()
print(weather)
current_weather = {}
coords = weather['coord']