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