https://github.com/hubot-archive/hubot-darksky
A script to grab the forecast information from Dark Sky for Hubot
https://github.com/hubot-archive/hubot-darksky
coffeescript darksky forecast-information hubot hubot-darksky weather
Last synced: about 2 months ago
JSON representation
A script to grab the forecast information from Dark Sky for Hubot
- Host: GitHub
- URL: https://github.com/hubot-archive/hubot-darksky
- Owner: hubot-archive
- License: mit
- Created: 2014-08-31T19:18:44.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-02-07T06:18:28.000Z (over 5 years ago)
- Last Synced: 2025-03-28T18:21:25.544Z (2 months ago)
- Topics: coffeescript, darksky, forecast-information, hubot, hubot-darksky, weather
- Language: CoffeeScript
- Homepage: https://www.npmjs.org/package/hubot-darksky
- Size: 12.7 KB
- Stars: 26
- Watchers: 3
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hubot Dark Sky
A script to grab the forecast information from Dark Sky for Hubot
[](https://travis-ci.org/hubot-scripts/hubot-darksky)
## Installation
Run `npm install --save hubot-darksky`
Add **hubot-darksky** to your `external-scripts.json`:
```json
["hubot-darksky"]
```## Configuration
- `HUBOT_DARK_SKY_API_KEY` an api key from [darksky.net](https://darksky.net/dev)
- `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 (Powered by DarkSky https://darksky.net/poweredby/)
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](https://github.com/github/hubot-scripts/blob/master/src/scripts/darksky.coffee) by [kyleslattery](https://github.com/kyleslattery)