Remove useless out

This commit is contained in:
BitHeaven 2024-05-31 20:35:45 +05:00
parent 580a50f296
commit b893d85525
1 changed files with 1 additions and 2 deletions

3
dwmbar
View File

@ -99,7 +99,6 @@ async def weather():
CITY='Tyumen'
while True:
print('w s')
i = requests.get(f"https://wttr.in/{CITY}?format=%c").text.strip() #.encode('utf-8')[0:3].decode('utf-8')
t = requests.get(f"https://wttr.in/{CITY}?format=%t").text.strip()
w = requests.get(f"https://wttr.in/{CITY}?format=j2").json()['current_condition'][0]['windspeedKmph'].strip()
@ -108,7 +107,7 @@ async def weather():
weather = f"^b{COLOR2}^^c{COLOR1}^ {w} km/h ^b{COLOR1}^^c{COLOR2}^ {i} ^c{COLOR1}^^b{COLOR2}^ {t} ^d^"
else:
weather = f"[{w} km/h | {i} | {t}]"
print('w e')
await asyncio.sleep(60 * 30)