|
|
@@ -1,6 +1,7 @@ |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
curl --no-buffer --digest -u installer:$(cat creds.inst.txt) http://$(read a b << EOF |
|
|
|
while sleep .1; do |
|
|
|
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 | python3.8 -c 'import time; import sys |
|
|
@@ -11,5 +12,9 @@ for i in inp: |
|
|
|
i = i.strip() |
|
|
|
if not i: |
|
|
|
continue |
|
|
|
i = i.split(maxsplit=1)[1] |
|
|
|
try: |
|
|
|
i = i.split(maxsplit=1)[1] |
|
|
|
except IndexError: |
|
|
|
continue |
|
|
|
print(time.time(), i)' > home.power.$(date +%Y%m%d%H%M).log |
|
|
|
done |