This Lita handler takes location-based queries and returns interesting data about the weather. Temperatures, rain chance and intensity, and wind speeds are all included. But wait, there's more! if you download now, you also get 8-ball style replies with
Add lita-onewheel-forecast-io to your Lita instance's Gemfile, from github since it's currently unpublished:
gem 'lita-onewheel-forecast-io', '~> 0.0'
Lita.configure do |config| config.handlers.onewheel_forecast_io.api_key = 'yourforecastiokey' config.handlers.onewheel_forecast_io.api_uri = 'https://api.forecast.io/forecast/' config.handlers.onewheel_forecast_io.colors = true end
Register at https://developer.forecast.io/ to receive an API key (1000 calls/day for free). Once you have your key go ahead and toss if into your config block. Set colors to bool option of your liking. Enjoy!
!rain, !snow and other fine things.
☀ ☀ 🔥 🔥 ☼ ☼ ☼