Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the update frequency of Victron MPPT charger data, the battery SoC, the huawei charger power, and the power meter differ from one another, and differ in particular from the inverter update frequency.
the OnBattery-specific data is now handled in a new method, outside the upstream code, which merely calls the new function(s). the new function will update the websocket independently from inverter updates. also, it adds the respective data if it actually changed since it was last updated through the websocket.
for the webapp to be able to recover in case of errors, all values are also written to the websocket with a fixed interval of 10 seconds.
in particular, this allows to observe power meter readings update while the inverters are being fetched. for me this makes a big difference as the power meter is reporting with 1Hz, while the inverter polling is much less frequent.