blob: 22a42cee16b1a903f80e00d6f6d76881ada087ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
DATASTORE_BASE="http://localhost:8080/api"
put_value_sensor_now() {
sensor=$1
value=$2
curl -s -X PUT \
--data-binary "${value}" \
"${DATASTORE_BASE}/value/${sensor}"
return $?
}
|