From 53446529d2d8e148bc64b38d4bb0d264c5cfcd14 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Tue, 8 Jun 2010 19:22:09 +0200 Subject: [PATCH] adapted 1-wire logging script to new timestamp and controller definitions --- share/tools/log1wire.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/log1wire.sh b/share/tools/log1wire.sh index a965ed2..1912a0e 100755 --- a/share/tools/log1wire.sh +++ b/share/tools/log1wire.sh @@ -56,7 +56,7 @@ do IFS=";" COLUMNS=( $LINE ) UCID="${UCID_PREFIX}${COLUMNS[1]:0:4}-${COLUMNS[1]:5}" - curl ${CURL_OPTS} "${URL}?controller=channel&action=log&ucid=${UCID}&value=${COLUMNS[2]}×tamp=${COLUMNS[0]}${URL_PARAMS}" + curl ${CURL_OPTS} "${URL}?controller=data&action=add&ucid=${UCID}&value=${COLUMNS[2]}×tamp=$(( ${COLUMNS[0]} * 1000 ))${URL_PARAMS}" done # reset old ifs