jbouwh / omnikdatalogger

Datalogger for Omnik solar power inverters with DSMR integration and output to Home Assistant, PVOUTPUT, InfluxDB and MQTT
https://jbsoft.nl/site/omnik-datalogger/
GNU General Public License v3.0
10 stars 3 forks source link

Add http fallback method to tcpclient #26

Closed jbouwh closed 2 years ago

jbouwh commented 2 years ago

This PR adds a fallback mode to tcpclient based on: https://github.com/sincze/Domoticz-Omnik-Local-Web-Plugin If tcpclient fails to connect over port 8899 during initialization it will try to get the last status from http://{inverter_address}:80/js/status.js. This fallback data source only supplies the following attributes: