Skip to content

duvallg/hubot-forecastio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hubot: hubot-forecastio

A Hubot Script that looks up weather forcast data from forcast.io with geocoding courtesy of Google Maps

See src/forecastio.coffee for full documentation.

Data

NPM

Installation

Add hubot-forecastio to your package.json file:

"dependencies": {
  "hubot": ">= 2.5.1",
  "hubot-scripts": ">= 2.4.2",
  "hubot-forecastio": ">= 1.0.0"
}

Add hubot-forecastio to your external-scripts.json:

["hubot-forecastio"]

Run npm install

Configuration

Edit your bin/hubot file and add the environment variable FORECAST_IO_API_KEY

export HUBOT_FORECAST_IO_API_KEY=123abc456def

You can obtain a forecast.io API key from their developer page

The callback returns Celsius by default. For Fahrenheit, add the following:

export HUBOT_FORECAST_IO_UNITS=us

Sample Interaction

jsolis>> Hubot weather in Jackson Heights, NY
hubot>> In Jackson Heights, Queens, NY, USA, it is currently 20.77. Feels like 10.63. Partly cloudy for the hour. Mostly cloudy throughout the day.

About

A Hubot Script that looks up weather forcast data from forcast.io with geocoding courtesy of Google Maps

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 65.8%
  • JavaScript 23.4%
  • Shell 10.8%