do the justice

Random header image... Refresh for more!

Forecasting Ubiquity

August 28th, 2008 by bradlby

Recently the Ubiquity extension for Firefox has been making quite a splash. I usually find the extensions developed by Mozilla Labs to be a little obtuse, but admittedly many of them serve market semgents I am just not a part of. I thought Ubiquity was pretty impressive looking though, so I took it for a spin. After using it for a little while I tried to decide on some command I could come up with easily, but would still be useful. I realized that the weather command only covered the current conditions, but not the extended forecast. With that in mind I threw together a little command myself.

Forecast

Forecast grabs the extended forecast from wunderground in either Fahrenheit or Celsius and displays it in the Ubiquity notification area. I am by no means a Javascript master, so I’m sure there is still room for optimization, but things are still fairly snappy and the functionality is pretty much all there. I was surprised at how easy it was to develop, and all the stumbling blocks I ran into were related to my own Javacript abilities. I’m mulling over what to develop next, which is probably a good sign for the future if someone as inexperienced as me is still excited about making new commands.

If you end up using forecast, let me know about any issues you run into or any improvements you’d like to see. Also if you are making any new commands drop me a note and show me what you’ve come up with.

Tags:   · · 2 Comments

Leave A Comment

2 responses so far ↓

  • 1 Mishail Sep 1, 2008 at 7:09 am

    Hi,

    Thanxalot for the great command. One suggestion though. Is possible for forecast to automatically select units (F or C) based on location as it done in built-in weather command (see /ubiquity/chrome/content/builtincmds.js)

  • 2 bradlby Sep 1, 2008 at 9:13 am

    That’s a good point, I’ve updated the command now so that it automatically sets the temperature units based on your geolocation. You can still specify “in c” or “in f” if you are curious about the other measurement.

    Good suggestion!