Skip to content

zoiec/lita-your-weather

Repository files navigation

lita-your-weather

lita-your-weather provides the ability to ask for the current weather conditions or for a 7 day forecast. This gem uses the www.apixu.com api to get the current weather and a 7 day weather forecast.

Installation

Add lita-your-weather to your Lita instance's Gemfile:

gem 'lita-your-weather'

$ bundle install

Configuration

Obtain an API Key from www.apixu.com Add the following to your lita_config.rb :

config.handlers.your_weather.default_location = 'City, State, Country'
config.handlers.your_weather.api_key = 'www.apixu.com Api Key'

Usage

Commands include:

$ lita weather

$ lita weather c

$ lita weather c <location>

$ lita weather f

$ lita weather f <location>

$ lita weather i <location>

$ lita weather i <location>