hubot-forecastio
A Hubot Script that looks up weather forcast data from forcast.io with geocoding courtesy of Google Maps
Last updated 5 years ago by jsolis .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-forecastio 
SYNC missed versions from official npm registry.

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

It will default to Fahrenheit and miles per hour, or you can set the following optional variable for different units

export HUBOT_FORECAST_IO_UNITS=us

Acceptable values are:

  • us - [Default] Fahrenheit and miles per hour
  • ca - Celsius and kilometers per hour
  • uk - Celsius and miles per hour
  • si - Celsius and meters per second

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.

Current Tags

  • 1.1.2                                ...           latest (5 years ago)

5 Versions

  • 1.1.2                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (8)

Copyright 2014 - 2016 © taobao.org |