View Single Post
Old 05-11-2015, 08:34 PM   #144
jjmcousineau
Junior Member
jjmcousineau began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2014
Device: Kindle Paperwhite, Kobo WiFi
Hello,

I just found this article, and I realise its quite old now but hopefully someone can help. I am getting a URL error, I am imaging that the weather service in the original is no longer around or something. Or maybe I am reading this wrong.

Either way here is the error and I would appreciate any help.

Code:
[root@(none) koboWeather]# /mnt/onboard/.python/weather.sh
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>
jjmcousineau is offline   Reply With Quote