A Node Express service that receives temperature signals via an API.
More details to come soon!
- Download repo
- npm install
- Set environment variables
DATABASE_URL
for PG connection string - Run service with
node server.js
- Currently runs on port 4000 by default
- Available routes:
- /ping - Check for a lifebeat from the service
- /temperature - Post temperature data to the service
Service can be tested by using a POST to <service-address>:<service-port>/temperatures
with
JSON payload:
{
"room": 75.875,
"weather": 77.460,
"time": "2019-05-19 20:49:39.906523"
}