no message
This commit is contained in:
@@ -151,9 +151,9 @@
|
|||||||
"type": "NumberSpinner",
|
"type": "NumberSpinner",
|
||||||
"name": "UpdateInterval",
|
"name": "UpdateInterval",
|
||||||
"caption": "Update Intervall",
|
"caption": "Update Intervall",
|
||||||
"suffix": " min",
|
"suffix": "S",
|
||||||
"minimum": 0,
|
"minimum": 1,
|
||||||
"digits": 0
|
"digits": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "CheckBox",
|
"type": "CheckBox",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class Bat_EV_SDL_V4 extends IPSModule
|
|||||||
$this->RegisterPropertyFloat("ReserveHoursEntladen", 0.5); // h
|
$this->RegisterPropertyFloat("ReserveHoursEntladen", 0.5); // h
|
||||||
$this->RegisterPropertyFloat("SDL_Start_Pos_Config", 50.0); // %
|
$this->RegisterPropertyFloat("SDL_Start_Pos_Config", 50.0); // %
|
||||||
$this->RegisterPropertyFloat("EV_Start_Pos_Config", 50.0); // %
|
$this->RegisterPropertyFloat("EV_Start_Pos_Config", 50.0); // %
|
||||||
$this->RegisterPropertyInteger("UpdateInterval", 5); // Minuten
|
$this->RegisterPropertyInteger("UpdateInterval", 2); // Sekunden
|
||||||
$this->RegisterPropertyBoolean("FilterAktiv", true);
|
$this->RegisterPropertyBoolean("FilterAktiv", true);
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
@@ -56,8 +56,11 @@ class Bat_EV_SDL_V4 extends IPSModule
|
|||||||
{
|
{
|
||||||
parent::ApplyChanges();
|
parent::ApplyChanges();
|
||||||
|
|
||||||
$intervalMin = (int)$this->ReadPropertyInteger("UpdateInterval");
|
$intervalSec = (int)$this->ReadPropertyInteger("UpdateInterval");
|
||||||
$this->SetTimerInterval("UpdateTimer", ($intervalMin > 0) ? $intervalMin * 60 * 1000 : 0);
|
$this->SetTimerInterval(
|
||||||
|
"UpdateTimer",
|
||||||
|
($intervalSec > 0) ? $intervalSec * 1000 : 0
|
||||||
|
);
|
||||||
|
|
||||||
$this->BuildBatteryPlan(true);
|
$this->BuildBatteryPlan(true);
|
||||||
$this->InitVirtualAccountsIfNeeded();
|
$this->InitVirtualAccountsIfNeeded();
|
||||||
|
|||||||
Reference in New Issue
Block a user