weather-report-api/send-sample-report

14 lines
382 B
Plaintext
Raw Permalink Normal View History

2024-03-29 12:53:02 -07:00
#!/bin/bash
## This script will send a sample weather report to the TEST station
curl "http://localhost:${PORT:-3000}/v1/reports/TEST" \
-X POST -H 'Content-Type: application/json' \
-d '{
"temperature": 21,
"pressure": 1000,
"humidity": 45
}'
curl "http://localhost:${PORT:-3000}/v1/reports/TEST/history"
# curl "http://localhost:${PORT:-3000}/v1/reports/TEST"