dave92082 / SolarEdge-Exporter

Prometheus exporter for SolarEdge inverters
MIT License
59 stars 25 forks source link

Polling Interval, Less than 5 Seconds Possible? #4

Closed MediumFidelity closed 5 years ago

MediumFidelity commented 5 years ago

More of a question than an issue, but what defines the 5 second polling interval? The OLED display on the inverter appears to update at ~2Hz. Curious if you tried after polling and ran into issues.

https://github.com/dave92082/SolarEdge-Exporter/blob/5e176ce9fdfe873baa61e6a01e82af3e05f3a97b/main.go#L118

dave92082 commented 5 years ago

The interval is located in the configuration file config.yaml. The Inverter will respond much faster and in my testing it was responding in about 10 milliseconds. The main reason I limited the duration to a multiple of seconds rather than milliseconds was that too many requests locked up the network stack on my inverter and it would not come back until I disconnected the Ethernet and re-connected.

MediumFidelity commented 5 years ago

I'll try for a 1000ms polling interval. You can never have too much data. ;-) Realistically, reading I_AC_Energy_WH every 5 seconds is good enough.