Remove useless out
This commit is contained in:
parent
580a50f296
commit
b893d85525
3
dwmbar
3
dwmbar
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue