#!/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 $? }