diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-03-29 17:49:13 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-03-29 17:49:13 +0100 |
commit | 1a895d506b48353d306f9ae96f0950be25663510 (patch) | |
tree | 54df8ee6b96c5dadbfa52626b4c873895e0c8acf /weather.py | |
parent | 946c4af7acb7401f63269b7b0e5d8e99781a08f6 (diff) | |
download | kawaii-term-1a895d506b48353d306f9ae96f0950be25663510.tar.gz |
Fixed typo in weather.py to work out of the box
Diffstat (limited to 'weather.py')
-rw-r--r-- | weather.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] ) ) |