This weather service has a GET and POST route.
The POST route is setup to recieve a POST from a HipChat room integration and responds with the Current Conditions as well as the Forecast.
You will need to get a Wunderground API Key
In the config folder add your Wunderground API key, HipChat Room ID, and token
to a new file called development.js
Run npm install
to install dependencies
Run node index.js
. This will start the service locally
Replace with your HipChat Room ID and execute this curl command:
curl -X "POST" "http://localhost:8080/conditions?minneapolis,mn" \
-H "Content-Type: application/json; charset=utf-8" \
-d "{\"item\":{\"room\":{\"id\":\"<HipChat Room ID>\"}}}"