Skip to content

Fixed solar battery calculation logic, breaking change! now supports battery export to grid#215

Open
TrystanLea wants to merge 48 commits intomasterfrom
mysolarpvbatteryfix
Open

Fixed solar battery calculation logic, breaking change! now supports battery export to grid#215
TrystanLea wants to merge 48 commits intomasterfrom
mysolarpvbatteryfix

Conversation

@TrystanLea
Copy link
Member

@TrystanLea TrystanLea commented Mar 13, 2026

Calculations are fixed in the detailed power view so far, still need to fix the historic daily kWh data view.

image

See also: https://community.openenergymonitor.org/t/my-solar-pv-battery-app/14113/152

// Grid import/export status
if (input.grid > 0) {
$(".balance-label").html("IMPORTING");
$(".balance").html("<span style='color:#d52e2e'><b>" + Math.round(input.grid) + " " + powerUnit + "</b></span>");
Copy link
Contributor

Choose a reason for hiding this comment

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

Space character in front of powerUnit is inconsistent with other power labels. Again on line 601.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants