0.0
No commit activity in last 3 years
No release in over 3 years
Forecast is a Cinch plugin for getting the weather forecast
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

~> 2.0.5
 Project Readme

Cinch::Forecast Gem Version Dependency Status Code Climate

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Bitdeli Badge