Datasheet
{
"version":"1.0.0",
"datastreams":[
{"id":"YYYYY", "current_value":"T1"}
]
}
#!/bin/bash
while true;
do
temp=$(./tmp102.sh)
cat blank.json | sed 's/T1/'$temp'/g' > \
send.json
curl --request PUT \
--data-binary @send.json \
--header "X-ApiKey: ZZZZZ" \
http://api.cosm.com/v2/feeds/XXXXX
sleep 60
done
nohup ./update.sh > /dev/null &
killall update.sh