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();
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "1.106",
|
||||
"version": "1.107",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user