14 lines
382 B
Plaintext
14 lines
382 B
Plaintext
|
#!/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"
|