Forecast is a Cinch plugin for getting the weather forecast.
Installation
$ gem install cinch-forecast
Setup
You will need a Wunderground API key. You can sign-up for a free one at Wunderground
Configuration
Set your key as an environment variable:
$ export WUNDERGROUND_KEY='your_api_key_here'
You could also save it in your ~/.bash_profile
Command
- !forecast [zipcode] - Fetches the weather forecast for zipcode.
Integration with Cinch
require 'cinch'
require 'cinch/plugins/forecast'
bot = Cinch::Bot.new do
configure do |c|
c.server = 'irc.freenode.net'
c.nick = 'Tavin_Pumarejo'
c.channels = ['#RubyOnADHD']
c.plugins.plugins = [Cinch::Plugins::Forecast]
end
end
bot.start
Enjoy!
Author
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request