0.0
No commit activity in last 3 years
No release in over 3 years
Lita plugin for Forecast.io
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 0.7.0
>= 2.0.0.rc1
~> 10.2
~> 3.0
~> 0.23.0
~> 0.8.2

Runtime

~> 0.1.0
~> 2.0.0
>= 1.1.9, ~> 1.1
~> 3.0
>= 3.0.0
 Project Readme

lita-forecast

Build Status MIT License RubyGems :: RMuh Gem Version Coveralls Coverage Code Climate Gemnasium

Forecast.io plugin for Lita

LICENSE

lita-forecast is released under the MIT license. The full license is provided in the LICENSE file.

CONTRIBUTING

See CONTRIBUTION.md for information on contributing back to this project.

INSTALLATION

Simply add lita-forecast to the Gemfile for your Lita instance.

gem 'lita-forecast'

CONFIGURATION

There is only one required configuration option for this plugin, and that's your Forecast.io API key Forecast.io Developer Site

config.handlers.forecast.api_key = '<API_KEY>'

COMMANDS

  • wx <alias/location> - get the weather forecast for a location in US units.
  • wc <alias/location> - get the weather forecast for a location in CA units.
  • ws <location> - returns the lat. and long. for your search string so that you can add a weather alias
  • wl - list known weather aliases
  • wadd <alias> <lat> <long> [<description>] - add an alias to your bot
  • wrm alias - remove an alias added to your bot

USAGE

>> Lita wx San Francisco, CA
San Francisco, CA:

Now: 55.5F (feels like 55.5F) Mostly Cloudy; Winds WSW 8.6mph; Humidity 66%; Dew Pt 44.2F; Pressure 1019.2mb; Cloud cover 82%.
Next hour: Mostly cloudy for the hour. Next 24h: Rain throughout the day.

Summary: Light rain today through Thursday, with temperatures bottoming out at 52°F on Tuesday.
Today: Mostly cloudy throughout the day. High 57F, Low 51F. 90% chance of rain. Winds W 7mph.
Tomorrow: Rain throughout the day. High 55F, Low 51F. 100% chance of rain. Winds SSW 9mph.

>> Lita wc San Francisco, CA
San Francisco, CA:

Now: 13.1C (feels like 13.1C) Mostly Cloudy; Winds WSW 12.6kmph; Humidity 65%; Dew Pt 6.7C; Pressure 1019.2mb; Cloud cover 82%.
Next hour: Mostly cloudy for the hour. Next 24h: Rain throughout the day.

Summary: Light rain today through Thursday, with temperatures bottoming out at 11°C on Tuesday.
Today: Mostly cloudy throughout the day. High 14C, Low 10C. 90% chance of rain. Winds W 11kmph.
Tomorrow: Rain throughout the day. High 13C, Low 10C. 100% chance of rain. Winds SSW 15kmph.

>> Lita wl
There are no weather aliases

>> Lita ws 501 2nd St, 94107
San Francisco, CA: 37.7830503, -122.3933962 :: !wadd <alias> 37.7830503 -122.3933962 <description/city name>

>> Lita wadd sf 37.7749295 -122.4194155 PagerDuty San Francisco
sf added to the cache at [37.7749295, -122.4194155]

>> Lita wx sf
PagerDuty San Francisco:

Now: 55.6F (feels like 55.6F) Mostly Cloudy; Winds WSW 7.8mph; Humidity 65%; Dew Pt 44.0F; Pressure 1019.2mb; Cloud cover 82%.
Next hour: Mostly cloudy for the hour. Next 24h: Rain throughout the day.

Summary: Light rain today through Thursday, with temperatures bottoming out at 52°F on Tuesday.
Today: Mostly cloudy throughout the day. High 57F, Low 51F. 90% chance of rain. Winds W 7mph.
Tomorrow: Rain throughout the day. High 55F, Low 51F. 100% chance of rain. Winds SSW 9mph.

>> Lita wl
Known weather aliases: sf

>> Lita wrm sf
Alias removed!