Skip to content

Instantly share code, notes, and snippets.

@awaxa
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awaxa/3164fe97702a88790e30 to your computer and use it in GitHub Desktop.
Save awaxa/3164fe97702a88790e30 to your computer and use it in GitHub Desktop.

Hubot Dark Sky

A script to grab the forecast information from Dark Sky for Hubot

Build Status

Installation

Run npm install --save hubot-darksky

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

["hubot-darksky"]

Configuration

  • HUBOT_DARK_SKY_API_KEY an api key from developer.forecast.io
  • HUBOT_DARK_SKY_DEFAULT_LOCATION if unset, weather commands without a location will be ignored
  • HUBOT_DARK_SKY_SEPARATOR a configurable line separator for responses. defaults to "\n"

Sample Interaction

user> hubot: weather portland
Hubot> Weather for Portland, OR, USA
Currently: Mostly Cloudy 19.9°C/68°F
Today: Partly cloudy until this evening.
Coming week: Drizzle on Sunday, with temperatures bottoming out at 21°C/70°F on Tuesday.

Sources

darksky.coffee from hubot-scripts by kyleslattery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment