no message
This commit is contained in:
@@ -96,9 +96,9 @@
|
||||
"type": "NumberSpinner",
|
||||
"name": "UpdateIntervalMs",
|
||||
"caption": "Neuberechnung alle",
|
||||
"suffix": "ms",
|
||||
"minimum": 100,
|
||||
"maximum": 86400000
|
||||
"suffix": "S",
|
||||
"minimum": 1,
|
||||
"maximum": 86400
|
||||
},
|
||||
{
|
||||
"type": "CheckBox",
|
||||
|
||||
@@ -9,7 +9,7 @@ class Bat_EV_SDL_V4 extends IPSModule
|
||||
$this->RegisterPropertyString("Batteries", "[]");
|
||||
$this->RegisterPropertyInteger("SDL_Leistung_Laden", 0);
|
||||
$this->RegisterPropertyInteger("SDL_Leistung_Entladen", 0);
|
||||
$this->RegisterPropertyInteger("UpdateIntervalMs", 1000);
|
||||
$this->RegisterPropertyInteger("UpdateIntervalMs", 2);
|
||||
$this->RegisterPropertyFloat("ReserveHours", 0.5);
|
||||
$this->RegisterPropertyBoolean("FilterAktiv", false);
|
||||
|
||||
@@ -46,8 +46,8 @@ class Bat_EV_SDL_V4 extends IPSModule
|
||||
{
|
||||
parent::ApplyChanges();
|
||||
|
||||
$intervalMs = (int)$this->ReadPropertyInteger("UpdateIntervalMs");
|
||||
$this->SetTimerInterval("UpdateTimer", ($intervalMs > 0) ? $intervalMs : 0);
|
||||
$intervalSec = (int)$this->ReadPropertyInteger("UpdateInterval");
|
||||
$this->SetTimerInterval("UpdateTimer", ($intervalSec > 0) ? $intervalSec * 1000 : 0);
|
||||
|
||||
$this->BuildStaticBatteryConfig();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user