Quote:
Originally Posted by ro-76
I just got my Kobo wifi working again after a repeat flash of the SD card. I tried to install this again and get an error when I run the weather app:
Kobo Wifi weather forecast started.
Getting weather information . . .
Traceback (most recent call last):
File "weather.py", line 363, in <module>
get_weather_data()
File "weather.py", line 53, in get_weather_data
weather_xml = urllib2.urlopen(weather_link)
File "/mnt/onboard/.python/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/mnt/onboard/.python/lib/python2.7/urllib2.py", line 394, in open
response = self._open(req, data)
File "/mnt/onboard/.python/lib/python2.7/urllib2.py", line 412, in _open
'_open', req)
File "/mnt/onboard/.python/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/mnt/onboard/.python/lib/python2.7/urllib2.py", line 1199, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/mnt/onboard/.python/lib/python2.7/urllib2.py", line 1174, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno -2] Name or service not known>
Does anyone have some advice on how to fix this?
Thx
|
The URL that was used for the weather seems to have changed.
The application uses
Code:
http://free.worldweatheronline.com/feed/weather.ashx?q=lat,long&format=xml&num_of_days=5&key=525804183f140652120211
This seems to have changed to
Code:
http://api.worldweatheronline.com/free/v2/weather.ashx?q=lat,long&format=xml&num_of_days=5&key=525804183f140652120211
however the existing API key seems to be invalid.
I've got a new key, however I sense the format of the data being returned has changed. When I get the script working I'll let you know