Displaying Weather on the Desktop with ConkyForecast

For a lightweight system monitor, Conky can display an awful lot of useful information. But besides the usual stuff like RAM usage, processor load, and wireless signal strength, you can use Conky to display something more interesting like the current weather conditions and a four-day forecast complete with snazzy weather icons. Usually, though, this would require a lot of manual tweaking, but the ConkyForecast package makes the process of turning Conky into a desktop weather station rather straightforward on any Ubuntu-based system.

First off, you have to install the Conky Forecast. To do this, open the sources.list file for editing using the gksudo gedit /etc/apt/sources.list command. Add then the following line at the end of the file:

 deb http://ppa.launchpad.net/m-buck/ubuntu intrepid main

Open the terminal and run the command below to install ConkyForecast:

 sudo apt-get update && sudo apt-get install conkyforecast

Next, you have to obtain a Partner ID and a License Key from the The Weather Channel which is required for accessing weather data. Once you have done that, use the command below to copy the .conkyForecast.config file to your home directory:

 cp /usr/share/conkyforecast/conkyForecast.config ~/.conkyForecast.config

Open then the copied file for editing using the nano ~/.conkyForecast.config command and enter the obtained Partner ID and License Key as follows:

 XOAP_PARTNER_ID = Your Partner ID XOAP_LICENCE_KEY = Your License Key

Next step is to find out the Location ID of the city you want. To do this, use the http://xoap.weather.com/search/search?where= url followed by the name of the city, for example:

 http://xoap.weather.com/search/search?where=BERLIN

Copy the Location ID (in this case, it’s GMXX0007), and open a sample Conky configuration file for editing:

 sudo nano /usr/share/conkyforecast/example/conkyrc

Replace the default Location ID with your own, save the file, and launch Conky by pointing it to the sample configuration file:

 conky -c /usr/share/conkyforecast/example/conkyrc &

You should see a Conky window with a nice-looking weather forecast.


3 Responses to “Displaying Weather on the Desktop with ConkyForecast”
  1. specialk Says:

    Well, thnx for the useful post. A couple of questions. How do you save the sample Conky configuration file. I use Terminator as the emulator and the OS is CrunchBang. When I get to this point, I am not sure how to save the sample file.

  2. What Are Desktop Weather Stations? Says:

    [...] Displaying Weather on the Desktop with ConkyForecast Usually, though, this would require a lot of manual tweaking, but the ConkyForecast package makes the process of turning Conky into a desktop weather station rather straightforward on any Ubuntu-based system.  Mail this post [...]

  3. How to add Conkyforecast to startup? - openSUSE Forums Says:

    [...] in the startup app but I have no idea what to put in for the forecast. I followed a guide in Linutop mag : Displaying Weather on the Desktop with ConkyForecast to set my conkyforecast and it can run it perfectly fine by manually running [...]

Leave a Reply

You must be logged in to post a comment.