🔖 Update config

This commit is contained in:
Smirnov Olexandr 2020-10-31 22:52:51 +02:00
parent 99cc99c7d4
commit 394d56fa69
27 changed files with 478 additions and 398 deletions

View file

@ -8,7 +8,7 @@ CITY = "Horodnytsya,UA"
try:
JSON = requests.get(f"http://api.openweathermap.org/data/2.5/weather?q={CITY}&lang=EN&&units=metric&appid={API_KEY}").json()
except Exception as e:
print("No connection")
print("No connection")
try:
if JSON['weather'][0]['main'] == "Clear": print("", int(JSON["main"]["temp"]),"°С")