Updated Weather gDesklets
Friday, April 20th, 2007If you use Linux, you’ll want to try out gDesklets. gDesklets is a framework written in Python for the GNOME desktop where interactive graphical widgets (similar to Dashboard on MacOS) provide easy access to weather forecasts, calendars, clocks, RSS feeds and more right on your desktop.
A typical installation of gDesklets comes with many widgets that are ready to use with minimal configuration. However some widgets don’t quite work as you’d expect.
I needed to be able to see current local weather conditions on my desktop. I tried the gDesklet weather widgets, none of which worked. Most of the problems were due to outdated regular expressions used to interface with Yahoo’s weather service. So I fixed them and, while I was at it, added some features too. If you see any bugs, send me a note at osscode(DOT)tn(AT)gmail(DOT)com
Code fixes include
- updated regular expressions to parse current Yahoo weather pages
- fixed code for fuzzy weather location matches
- added a checkbox in the configuration UI to allow the user to select either a city/country combination or a direct Yahoo weather URL
- added a breadcrumb style display for the weather location path
- fixed code for launching web browser (to view current location’s Yahoo weather page) when user clicks on graphical widget
- tested with gDesklets version 0.35.3
Download
What’s inside?
20070420-weather-gauge-gdesklets.tar.gz
|--> Displays
| `--> weather_gauge -- files used by Weather Gauge desklets
| |--> gfx -- background images used by desklet UI
| |--> weather-gauge-small.display -- Weather Gauge Small desklet UI definition file
| `--> weather-gauge-large.display -- Weather Gauge Large desklet UI definition file
`--> Sensors
`--> WeatherYahoo -- Yahoo weather service interface
|--> icons -- icons for weather conditions
|--> locale -- files used for localizing desklet
`--> __init__.py -- Python code for WeatherYahoo interface
Download: 20070420-weather-gauge-gdesklets.tar.gz
sha1sum: 7c248e5611df1061f5f1a1d2d908c2eaaa5a2bc8 20070420-weather-gauge-gdesklets.tar.gz
How to use weather desklets
- Install gDesklets (if you haven’t already)
cd /usr/share/gdesklets- Extract 20070420-weather-gauge-gdesklets.tar.gz
tar xzf 20070420-weather-gauge-gdesklets.tar.gz - Launch gDesklets Shell
- Look under the ‘Weather/Current Conditions’ category and select ‘Weather Gauge Small’ or ‘Weather Gauge Large’
