Beispiel #1
0
 public static void SendConfiguration(StromPi3 ups)
 {
     if (ups != null)
     {
         StromPi3ConfigEditor.SendConfiguration(ups);
     }
 }
Beispiel #2
0
 public static void EditAlarmConfiguration()
 {
     InitializeClient();
     using (var ups = Strompi3Client)
     {
         StromPi3ConfigEditor.AlarmConfiguration(ups);
     }
 }
Beispiel #3
0
 public static void EditPowerSaveMode()
 {
     InitializeClient();
     using (var ups = Strompi3Client)
     {
         StromPi3ConfigEditor.PowerSaveMode(ups);
         Console.WriteLine($"Set Power-Save Mode to {ups.Settings.StartStopSettings.PowersaveEnable.ToNumber()}) = {ConverterHelper.EnabledDisabledConverter(ups.Settings.StartStopSettings.PowersaveEnable.ToNumber().ToString(), "PowerSaveMode")}");
     }
 }
Beispiel #4
0
 public static void EditPowerOnButton()
 {
     InitializeClient();
     using (var ups = Strompi3Client)
     {
         StromPi3ConfigEditor.PowerOnButton(ups);
         Console.WriteLine($"Power-ON-Button Enable = {ups.Settings.StartStopSettings.PowerOnButtonEnable}, Timer = {ups.Settings.StartStopSettings.PowerOnButtonSeconds} secs");
     }
 }
Beispiel #5
0
 public static void EditSerialless()
 {
     InitializeClient();
     using (var ups = Strompi3Client)
     {
         StromPi3ConfigEditor.Serialless(ups);
         Console.WriteLine($"Serial Less Enable = {ups.Settings.SerialLessEnable}");
     }
 }
Beispiel #6
0
 public static void EditShutdownMode()
 {
     InitializeClient();
     using (var ups = Strompi3Client)
     {
         StromPi3ConfigEditor.ShutdownMode(ups);
         Console.WriteLine($"Shutdown Timer Mode = {ups.Settings.ShutdownEnable}, Timer = {ups.Settings.ShutdownSeconds} secs");
     }
 }
Beispiel #7
0
 public static void EditInputPriorityMode()
 {
     InitializeClient();
     using (var ups = Strompi3Client)
     {
         StromPi3ConfigEditor.InputPriorityMode(ups);
         Console.WriteLine($"Set Power Priority to {(int)ups.Settings.PriorityMode}) = {ConverterHelper.GetEnumDescription(ups.Settings.PriorityMode)}");
     }
 }
Beispiel #8
0
        public static void AlarmConfiguration(StromPi3 ups)
        {
            if (ups.Settings.StartStopSettings.PoweroffTimeEnableMode)
            {
                // $" Alarm-Mode: Minute WakeUp-Timer-Alarm" + Environment.NewLine;
            }

            else
            {
                // Time, Date, Weekday - Alarm
                string s = $"Alarm-Mode: {ups.Settings.AlarmSettings.Mode}" + Environment.NewLine;
            }

            StromPi3ConfigEditor.AlarmPowerOff(ups);

            StromPi3ConfigEditor.AlarmWakeUp(ups);

            StromPi3ConfigEditor.AlarmInterval(ups);
        }
Beispiel #9
0
 public static StromPi3 EditCompleteConfiguration()
 {
     return(StromPi3ConfigEditor.CompleteConfiguration());
 }