Skip to content

Commit

Permalink
corrected day yield
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteSchm committed Apr 5, 2023
1 parent 459f9ff commit 801ad46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebApi_ws_live.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void WebApiWsLiveClass::generateJsonResponse(JsonVariant& root)
vedirectObj[F("enabled")] = Configuration.get().Vedirect_Enabled;
JsonObject totalVeObj = vedirectObj.createNestedObject("total");
addTotalField(totalVeObj, "Power", VeDirect.veFrame.PPV, "W", 1);
addTotalField(totalVeObj, "YieldDay", VeDirect.veFrame.H20, "Wh", 0);
addTotalField(totalVeObj, "YieldDay", VeDirect.veFrame.H20 * 1000, "Wh", 0);
addTotalField(totalVeObj, "YieldTotal", VeDirect.veFrame.H19, "kWh", 2);

JsonObject huaweiObj = root.createNestedObject("huawei");
Expand Down

0 comments on commit 801ad46

Please sign in to comment.