A module for interacting w/ the Enphase Enjoy solar controller. It currently has a simple program for logging data, such as production and per panel data.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/sh
-
- 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
- inp = sys.stdin
- inp.reconfigure(line_buffering=True)
- sys.stdout.reconfigure(line_buffering=True)
- for i in inp:
- i = i.strip()
- if not i:
- continue
- try:
- i = i.split(maxsplit=1)[1]
- except IndexError:
- continue
- print(time.time(), i)' > home.power.$(date +%Y%m%d%H%M).log
- done
|