Update to WidescapeWeather Screenlet

I was looking for desktop widgets for Ubuntu and I came across screenlets.

I didn’t realize it was 8 years old and not maintained at all but I ended up spending some time fiddling around with it and fixing the WidescapeWeather widget.

The reason it wasn’t working was because weather.com changed the URLs for getting the most recent data and so a manually modified the Python script.

Original widget download location: https://www.gnome-look.org/content/show.php/Wide+weather?content=77168

After installing this with Screenlets Manager, edit the script

gedit ~/.screenlets/WidescapeWeather/WidescapeWeatherScreenlet.py

And modify:

data = urlopen('http://xoap.weather.com/weather/local/'+self.ZIP+'?cc=*&dayf=10&prod=xoap&par=1003666583&key=4128909340a9b2fc&unit='+unit + '&link=xoap').read()


data = urlopen('http://wxdata.weather.com/wxdata/weather/local/' + self.ZIP + '?cc=*&dayf=10&unit=' + unit).read()

The only tricky thing here is to make 100% sure that you keep the tabs on the modified line.  Python will be upset if the formatting is not correct.


Screenshot from 2016-07-16 17:22:47

And then after more Googling, I think I should have used Conky.  Oh well.