Skip to content

Commit

Permalink
fix victron yield precision
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJaro committed Apr 9, 2024
1 parent 0ed09ae commit b0e86df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/WebApi_ws_vedirect_live.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ void WebApiWsVedirectLiveClass::populateJson(const JsonObject &root, const VeDir
input["IPV"]["d"] = 2;
input["YieldToday"]["v"] = mpptData.yieldToday_H20_Wh / 1000.0;
input["YieldToday"]["u"] = "kWh";
input["YieldToday"]["d"] = 3;
input["YieldToday"]["d"] = 2;
input["YieldYesterday"]["v"] = mpptData.yieldYesterday_H22_Wh / 1000.0;
input["YieldYesterday"]["u"] = "kWh";
input["YieldYesterday"]["d"] = 3;
input["YieldYesterday"]["d"] = 2;
input["YieldTotal"]["v"] = mpptData.yieldTotal_H19_Wh / 1000.0;
input["YieldTotal"]["u"] = "kWh";
input["YieldTotal"]["d"] = 3;
input["YieldTotal"]["d"] = 2;
input["MaximumPowerToday"]["v"] = mpptData.maxPowerToday_H21_W;
input["MaximumPowerToday"]["u"] = "W";
input["MaximumPowerToday"]["d"] = 0;
Expand Down

0 comments on commit b0e86df

Please sign in to comment.