mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
🔖 Update config
This commit is contained in:
parent
99cc99c7d4
commit
394d56fa69
27 changed files with 478 additions and 398 deletions
|
|
@ -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"]),"°С")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue