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 }; private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true };
public required Double MinSoc { get; set; } 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 CalibrationChargeType ForceCalibrationChargeState { get; set; }
public required DateTime DayAndTimeForRepetitiveCalibration { get; set; } public required DateTime DayAndTimeForRepetitiveCalibration { get; set; }
public required DateTime DayAndTimeForAdditionalCalibration { get; set; } public required DateTime DayAndTimeForAdditionalCalibration { get; set; }
@ -36,15 +37,17 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
#if DEBUG #if DEBUG
public static Config Default => new() public static Config Default => new()
{ {
MinSoc = 20, MinSoc = 20,
CurtailP = 0,
PvInstalledPower = 20,
ForceCalibrationChargeState = CalibrationChargeType.RepetitivelyEvery, ForceCalibrationChargeState = CalibrationChargeType.RepetitivelyEvery,
DayAndTimeForRepetitiveCalibration = DefaultDatetime, DayAndTimeForRepetitiveCalibration = DefaultDatetime,
DayAndTimeForAdditionalCalibration = DefaultDatetime, DayAndTimeForAdditionalCalibration = DefaultDatetime,
DisplayIndividualBatteries = false, DisplayIndividualBatteries = false,
PConstant = .5, PConstant = .5,
GridSetPoint = 0, GridSetPoint = 0,
BatterySelfDischargePower = 200, BatterySelfDischargePower = 200,
HoldSocZone = 1, // TODO: find better name, HoldSocZone = 1, // TODO: find better name,
IslandMode = new() IslandMode = new()
{ {
AcDc = new () AcDc = new ()
@ -130,7 +133,8 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
public static Config Default => new() public static Config Default => new()
{ {
MinSoc = 20, MinSoc = 20,
CurtailP = 100, CurtailP = 0,
PvInstalledPower = 20,
ForceCalibrationChargeState = CalibrationChargeType.RepetitivelyEvery, ForceCalibrationChargeState = CalibrationChargeType.RepetitivelyEvery,
DayAndTimeForRepetitiveCalibration = DefaultDatetime, DayAndTimeForRepetitiveCalibration = DefaultDatetime,
DayAndTimeForAdditionalCalibration = DefaultDatetime, DayAndTimeForAdditionalCalibration = DefaultDatetime,