hubot-slack-rainfall-alert
A rainfall alert script for hubot-slack
Description
Post alerts on slack 30 minutes before it starts/stops raining(currently this script only supports locations in Japan).
Installation
- Go to your hubot-slack directory and run
npm install hubot-slack-rainfall-alert --save
to add hubot-slack-rainfall-alert
to package.json
of your hubot-slack
- Add
hubot-slack-rainfall-alert
toexternal-scripts.json
of your hubot-slack
$ cat external-scripts.json[ ... , "hubot-slack-rainfall-alert", ...]
Configuration
Required API keys
- Yahoo API key for Map API/Rainfall API (https://e.developer.yahoo.co.jp/dashboard/)
- Google API key for ShortURL (https://console.developers.google.com/project)
Required parameters
Envs
export HUBOT_RAINFALL_ALERT_YAHOO_APP_ID=[Your yahoo app id here]export HUBOT_RAINFALL_ALERT_GOOGLE_API_KEY=[Your google api key here]export HUBOT_RAINFALL_ALERT_CHANNEL_ID=[Channel ID to post notifications ex: "C035AFECB" -> get id from https://api.slack.com/methods/channels.list/test ]export HUBOT_RAINFALL_ALERT_THRESH=[Notification threshold
Special thanks
This script uses Yahoo APIs/Google APIs.