aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-29 17:49:13 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-03-29 17:49:13 +0100
commit1a895d506b48353d306f9ae96f0950be25663510 (patch)
tree54df8ee6b96c5dadbfa52626b4c873895e0c8acf
parent946c4af7acb7401f63269b7b0e5d8e99781a08f6 (diff)
downloadkawaii-term-1a895d506b48353d306f9ae96f0950be25663510.tar.gz
Fixed typo in weather.py to work out of the box
-rw-r--r--weather.py2
1 files changed, 1 insertions, 1 deletions
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] ) )