no message
This commit is contained in:
@@ -94,9 +94,9 @@
|
|||||||
"type": "NumberSpinner",
|
"type": "NumberSpinner",
|
||||||
"name": "UpdateInterval",
|
"name": "UpdateInterval",
|
||||||
"caption": "Neuberechnung alle",
|
"caption": "Neuberechnung alle",
|
||||||
"suffix": "Minuten",
|
"suffix": "Sekunden",
|
||||||
"minimum": 0,
|
"minimum": 0,
|
||||||
"maximum": 1440
|
"maximum": 86400
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ class Bat_EV_SDL_V2 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);
|
||||||
|
|
||||||
// Cache neu bauen (force)
|
// Cache neu bauen (force)
|
||||||
$this->BuildBatteryCache(true);
|
$this->BuildBatteryCache(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user