Browse Source

script to log line information (pf, voltage, current, var)

main
John-Mark Gurney 3 years ago
parent
commit
dc35194a6c
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      streaming

+ 6
- 0
streaming View File

@@ -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

Loading…
Cancel
Save