Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoupled live view intervals #716

Merged

Conversation

schlimmchen
Copy link
Member

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.

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 call 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.
@schlimmchen schlimmchen merged commit 50635ee into hoylabs:development Mar 5, 2024
8 checks passed
@schlimmchen schlimmchen deleted the decoupled-live-view-intervals branch March 5, 2024 10:31
Copy link

github-actions bot commented Apr 5, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant