introduce sgvdata, use it in api and storage

Clean up and comment a bunch of code.
This commit is contained in:
Ben West
2014-07-15 15:10:49 -07:00
parent b35853bcaa
commit b1ecbe3c91
4 changed files with 205 additions and 164 deletions
+3 -3
View File
@@ -12,11 +12,11 @@ UNIX=$(date +%s $OPTS)
(
cat <<EOF
{ "sgv": $SGV,
"device": "test",
{ "sgv": "$SGV",
"device": "xxx-test-device",
"direction": "$DIRECTION",
"dateString": "$ISO",
"date": "$UNIX"
"date": $UNIX
}
EOF
) | tr -d '\n'