Use Case
The existing API does not provide for number of inverters; total and number reporting. As inverters might fail over time, being able to track the number reporting versus the total woud enable identifying potential bad inverters.
Solution
Add regexp for extraction from HTML as well as calcuate from JSON depending on version of API; for example the number of inverters from a LEGACY gateway is available:
curl -k -v -L 192.168.1.15/home| egrep -A2 "Number of Microinverters" | egrep -v '<tr>' | sed 's@.*<td>\([0-9]*\)</td>.*@\1@' | while read; do echo -n "${REPLY} "; done
Alternatives
NA
Use Case
The existing API does not provide for number of inverters; total and number reporting. As inverters might fail over time, being able to track the number reporting versus the total woud enable identifying potential bad inverters.
Solution
Add regexp for extraction from HTML as well as calcuate from JSON depending on version of API; for example the number of inverters from a LEGACY gateway is available:
Alternatives
NA