Saturday, September 11, 2010

org-google-weather follow up

Well, I've been mucking around with org-google-weather and have everything working on my computer now. It seems that Julien wrote his extensions with Linux in mind so I had to do a couple of minor tweaks to get it to work on my Mac. Most notably, the standard Emacs installation seems to not possess image.el. This is needed to display graphics for the weather forecasts. I did a google search and found iimage.el and installed it. Next, I had to go looking for the icons. Luckily I have a Linux machine handy so I copied the necessary weather icons to a folder on my Mac. Then I had to change the path specified in google-weather.el to point to where they were on my machine. Once that was done, I see cool little icons for the weather forecasts.

The next battle was to get the right units to show up. By default it was showing the temperature in Fahrenheit instead of Celsius. This is actually really easy to fix. In org file where I keep the calendar stuff, I just added "en-gb" after the location. For some reason, Google weather seems to think that Canada uses Fahrenheit. The resulting call in my todo.org file is

#+CATEGORY: Camrose Weather %%(org-google-weather "Camrose, AB" "en-gb")

This puts the weather forecast for each day into my calendar along with my todo list and appointments.

0 comments: