diff --git a/Bat_EV_SDL _V2/form.json b/Bat_EV_SDL _V2/form.json index 119f2b9..05f435f 100644 --- a/Bat_EV_SDL _V2/form.json +++ b/Bat_EV_SDL _V2/form.json @@ -94,9 +94,9 @@ "type": "NumberSpinner", "name": "UpdateInterval", "caption": "Neuberechnung alle", - "suffix": "Minuten", + "suffix": "Sekunden", "minimum": 0, - "maximum": 1440 + "maximum": 86400 } ] } diff --git a/Bat_EV_SDL _V2/module.php b/Bat_EV_SDL _V2/module.php index d80e5ac..5b1518a 100644 --- a/Bat_EV_SDL _V2/module.php +++ b/Bat_EV_SDL _V2/module.php @@ -42,8 +42,8 @@ class Bat_EV_SDL_V2 extends IPSModule { parent::ApplyChanges(); - $intervalMin = (int)$this->ReadPropertyInteger("UpdateInterval"); - $this->SetTimerInterval("UpdateTimer", ($intervalMin > 0) ? $intervalMin * 60 * 1000 : 0); + $intervalSec = (int)$this->ReadPropertyInteger("UpdateInterval"); + $this->SetTimerInterval("UpdateTimer", ($intervalSec > 0) ? $intervalSec * 1000 : 0); // Cache neu bauen (force) $this->BuildBatteryCache(true);