logging
This commit is contained in:
@@ -33,10 +33,13 @@ class Manager extends IPSModule
|
||||
case "DistributeEnergy":
|
||||
if($this->ReadPropertyBoolean("HauptmanagerAktiv")==true ){
|
||||
$data = json_decode(GetValue($this->ReadPropertyInteger("DatenZuruck")), true);
|
||||
IPS_LogMessage("Manager", $data);
|
||||
IPS_LogMessage("Manager", $data["timestamp"]);
|
||||
|
||||
if (isset($data["timestamp"])) {
|
||||
$timestamp = $data["timestamp"];
|
||||
$currentTime = time();
|
||||
IPS_LogMessage("Manager", ($currentTime - $timestamp));
|
||||
|
||||
if (($currentTime - $timestamp) < 30) {
|
||||
$this->DistributeEnergy_Extern();
|
||||
|
||||
Reference in New Issue
Block a user