diff --git a/streaming b/streaming new file mode 100644 index 0000000..73f2b00 --- /dev/null +++ b/streaming @@ -0,0 +1,6 @@ +#!/bin/sh + +curl --no-buffer --digest -u installer:$(cat creds.inst.txt) http://$(read a b << EOF +$(cat creds.txt) +EOF +echo $a)/stream/meter 2>/dev/null | awk '$0 != "\r" { if ($1 == "data:") $1 = ""; print; fflush }' | ts-util > home.power.$(date +%Y%m%d%H%M).log