From 1a895d506b48353d306f9ae96f0950be25663510 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 29 Mar 2019 17:49:13 +0100 Subject: Fixed typo in weather.py to work out of the box --- weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather.py b/weather.py index 8a97a5b..2ec05fa 100644 --- a/weather.py +++ b/weather.py @@ -34,7 +34,7 @@ with open('{home}/kawaii-term/async/weather.txt'.format(home=home),'r') as f: print(last.split('___').pop() ) def async_update(): - raw = os.popen('curl -s "http://api.openweathermap.org/data/2.5/weather?q=Tokoy,jp&appid=1e240e732347c23472274dc188cd39d6"').read() + raw = os.popen('curl -s "http://api.openweathermap.org/data/2.5/weather?q=Tokyo,jp&appid=1e240e732347c23472274dc188cd39d6"').read() obj = json.loads( raw ) desc = obj['weather'][0]['description'] save = '___'.join( map(str,[int(time.time()), desc] ) ) -- cgit v1.2.3