You can search for the weather in various locations by using zip codes
You can also search by using landmarks, or other places of interest (powered by the Google Maps api)
Or you can set a default location to just get the weather for your office.
- A Heroku account
- A Google Maps API key
- A forecast.io API key
- A slash command outgoing webhook token for your Slack team
- Clone this repo locally
- Create a new Heroku app and initialize the repo
- Push the repo to Heroku
- Navigate to the settings page of the Heroku app and add the following config variables:
OUTGOING_WEBHOOK_TOKEN
The token for your slash command integration in SlackGOOGLE_API_KEY
Your Google Maps API keyFORECAST_API_KEY
Your forecast.io API keyDEFAULT_LATLON
The default latitude and longitude for the bot (your home, your office, etc)
- Navigate to the integrations page for your Slack team. Create an slash command, use the URL for your heroku app, and copy the webhook token to your
OUTGOING_WEBHOOK_TOKEN
config variable. Give the command a name and a cool icon. That's it!