weather: fall back from nws to wu
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 11 May 2011 17:53:37 +0000 (19:53 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 11 May 2011 17:53:37 +0000 (19:53 +0200)
commitd11e04603795fefc322ab90fc3f6abe4c1d10d8f
tree2caeee5157b596d98dd33f053e4e632f43e07958
parent7d2f6b2aa00632f55df231c72cec7661af8845f1
weather: fall back from nws to wu

If a user uses NWS as default service and asks for a location that the
our NWS implementation can't retrieve, fall back to the Weather
Underground service.

To simplify this management, rewrite the code to use the bot HTTP util
and its caching functionality.
data/rbot/plugins/weather.rb