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.
 
 

16 lines
429 B

  1. #!/bin/sh
  2. curl --no-buffer --digest -u installer:$(cat creds.inst.txt) http://$(read a b << EOF
  3. $(cat creds.txt)
  4. EOF
  5. echo $a)/stream/meter 2>/dev/null | python3.8 -c 'import time; import sys
  6. inp = sys.stdin
  7. inp.reconfigure(line_buffering=True)
  8. sys.stdout.reconfigure(line_buffering=True)
  9. for i in inp:
  10. i = i.strip()
  11. if not i:
  12. continue
  13. i = i.split(maxsplit=1)[1]
  14. print(time.time(), i)' > home.power.$(date +%Y%m%d%H%M).log