Delete the Socavg
This commit is contained in:
parent
180529bf40
commit
b0bd8fb3e2
|
@ -140,10 +140,6 @@ public static class Aggregator
|
||||||
case "/Battery/Soc" or "/MinSoc" or "/MaxSoc":
|
case "/Battery/Soc" or "/MinSoc" or "/MaxSoc":
|
||||||
batterySoc.Add(value);
|
batterySoc.Add(value);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "/AvgSoc":
|
|
||||||
batteryAvgSoc.Add(value);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "/PvOnDc/Dc/Power" or "/SumPvPower":
|
case "/PvOnDc/Dc/Power" or "/SumPvPower":
|
||||||
pvPowerAverage.Add(value);
|
pvPowerAverage.Add(value);
|
||||||
|
@ -199,7 +195,6 @@ public static class Aggregator
|
||||||
{
|
{
|
||||||
MaxSoc = batterySoc.Any() ? batterySoc.Max() : 0.0,
|
MaxSoc = batterySoc.Any() ? batterySoc.Max() : 0.0,
|
||||||
MinSoc = batterySoc.Any() ? batterySoc.Min() : 0.0,
|
MinSoc = batterySoc.Any() ? batterySoc.Min() : 0.0,
|
||||||
AvgSoc = batteryAvgSoc.Any() ? batteryAvgSoc.Average() : 0.0,
|
|
||||||
SumDischargingBatteryPower = batteryDischargePower.Any() ? batteryDischargePower.Sum() : 0.0,
|
SumDischargingBatteryPower = batteryDischargePower.Any() ? batteryDischargePower.Sum() : 0.0,
|
||||||
SumChargingBatteryPower = batteryChargePower.Any() ? batteryChargePower.Sum() : 0.0,
|
SumChargingBatteryPower = batteryChargePower.Any() ? batteryChargePower.Sum() : 0.0,
|
||||||
SumGridExportPower = gridPowerExport.Any() ? gridPowerExport.Sum() : 0.0,
|
SumGridExportPower = gridPowerExport.Any() ? gridPowerExport.Sum() : 0.0,
|
||||||
|
|
|
@ -14,7 +14,6 @@ public class AggregatedData
|
||||||
{
|
{
|
||||||
public required Double MinSoc { get; set; }
|
public required Double MinSoc { get; set; }
|
||||||
public required Double MaxSoc { get; set; }
|
public required Double MaxSoc { get; set; }
|
||||||
public required Double AvgSoc { get; set; }
|
|
||||||
public required Double SumPvPower { get; set; }
|
public required Double SumPvPower { get; set; }
|
||||||
public required Double SumDischargingBatteryPower { get; set; }
|
public required Double SumDischargingBatteryPower { get; set; }
|
||||||
public required Double SumChargingBatteryPower { get; set; }
|
public required Double SumChargingBatteryPower { get; set; }
|
||||||
|
|
Loading…
Reference in New Issue