Add a new variable in the config file: PvInstalledPower

This commit is contained in:
atef 2024-08-02 13:26:43 +02:00
parent 501a0584c5
commit 739ae5842a
1 changed files with 12 additions and 8 deletions

View File

@ -16,7 +16,8 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true };
public required Double MinSoc { get; set; }
public required UInt16 CurtailP { get; set; }
public required UInt16 CurtailP { get; set; }// in Kw
public required UInt16 PvInstalledPower { get; set; }// in Kw
public required CalibrationChargeType ForceCalibrationChargeState { get; set; }
public required DateTime DayAndTimeForRepetitiveCalibration { get; set; }
public required DateTime DayAndTimeForAdditionalCalibration { get; set; }
@ -37,6 +38,8 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
public static Config Default => new()
{
MinSoc = 20,
CurtailP = 0,
PvInstalledPower = 20,
ForceCalibrationChargeState = CalibrationChargeType.RepetitivelyEvery,
DayAndTimeForRepetitiveCalibration = DefaultDatetime,
DayAndTimeForAdditionalCalibration = DefaultDatetime,
@ -130,7 +133,8 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
public static Config Default => new()
{
MinSoc = 20,
CurtailP = 100,
CurtailP = 0,
PvInstalledPower = 20,
ForceCalibrationChargeState = CalibrationChargeType.RepetitivelyEvery,
DayAndTimeForRepetitiveCalibration = DefaultDatetime,
DayAndTimeForAdditionalCalibration = DefaultDatetime,