We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc90fb commit 09d5f26Copy full SHA for 09d5f26
jsk_fetch_robot/jsk_fetch_startup/scripts/time_signal.py
@@ -108,6 +108,8 @@ def _get_weather_forecast(self, lang='en'):
108
url = 'http://api.openweathermap.org/data/2.5/weather?q=tokyo&lang={}&units=metric&appid={}'.format(lang, self.appid) # NOQA
109
resp = json.loads(urllib2.urlopen(url).read())
110
weather = resp['weather'][0]['description']
111
+ # aques_talk replaces decimal point to "。" (e.g. 7.8度 -> 7。8ど)
112
+ # So we use integer for temperature, humidity and wind speed.
113
temp = int(resp['main']['temp'])
114
humidity = int(resp['main']['humidity'])
115
wind_speed = int(resp['wind']['speed'])
0 commit comments