blob: 7cd74a04bd08c33fe6bd5592614a9c86991012cb (
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 -i -X PUT \
--data-binary "${value}" \
"${DATASTORE_BASE}/value/${sensor}"
return $?
}
|