Skip to content
New issue

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

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

Already on GitHub? # to your account

Feature: Add limiting factor to Webserver #874

Merged
merged 2 commits into from
Feb 13, 2025
Merged

Conversation

dalathegreat
Copy link
Owner

What

This PR implements an user requested feature, Webserver to show what is limiting power in/out of the battery.

Why

Feature requested by Discord users

How

We implement a few new variables to the datalayer

  • user_settings_limit_charge
  • user_settings_limit_discharge

Based on these, we show in the Webserver when the charge/discharge amperage values are limited by the battery itself (BMS), or by the user configurable settings (Manual)

image

We also show if the Inverter or the Battery is the limiting factor, at the Battery Charging/Discharging text, using the following variables

  • inverter_limits_discharge
  • inverter_limits_charge

image

image

content += " (Inverter limiting)</h4>";
} else {
//Note, this can also be settings limiting
content += " (Battery limiting)</h4>";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would an if/else here for settings_limiting not be a good idea?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes good idea. Added this check in e4ac6d7

Copy link
Collaborator

@mvgalen mvgalen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@mvgalen mvgalen merged commit 8ecea1c into main Feb 13, 2025
115 checks passed
@dalathegreat dalathegreat deleted the feature/limiting-factor branch February 25, 2025 09:37
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants