add emmet, buffer line to nvim, update vscode, del amfora & polybar weather script

This commit is contained in:
Smirnov Alexander 2021-05-30 19:25:02 +03:00
parent fcb370ba0b
commit a4532907b4
7 changed files with 81 additions and 150 deletions

View file

@ -1,15 +0,0 @@
import requests
import os
API_KEY = os.getenv("OWM_POLYBAR")
CITY = os.getenv("OWM_CITY")
try:
JSON = requests.get(
f"http://api.openweathermap.org/data/2.5/weather?q={CITY}&lang=EN&&units=metric&appid={API_KEY}"
).json()
print("", int(JSON["main"]["temp"]), "°С")
except Exception:
print(" err")