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