Update the aggregator path for PV.

This commit is contained in:
atef 2025-11-12 15:52:01 +01:00
parent 9d3fe781a1
commit 8b4d40f85e
1 changed files with 2 additions and 2 deletions

View File

@ -137,9 +137,9 @@ public static class Aggregator
{
batterySoc.Add((double)jsonObject["Battery"]["Soc"]);
}
if (jsonObject["PvOnDc"] != null && jsonObject["PvOnDc"]["DcWh"] != null)
if (jsonObject["PvOnDc"] != null && jsonObject["PvOnDc"]["1"]["DcWh"] != null)
{
pvPowerSum.Add((double)jsonObject["PvOnDc"]["DcWh"]);
pvPowerSum.Add((double)jsonObject["PvOnDc"]["1"]["DcWh"]);
}
if (jsonObject["Battery"] != null && jsonObject["Battery"]["Power"] != null)
{