From 82e86a3dd45ee2e88bc919c95123adb0dd2f7a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 28 Feb 2025 11:39:06 +0100 Subject: [PATCH] logging --- Manager/module.php | 3 +++ library.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Manager/module.php b/Manager/module.php index 38e4b39..8b52a3d 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -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(); diff --git a/library.json b/library.json index ce9b692..4a73faf 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.106", + "version": "1.107", "build": 0, "date": 0 } \ No newline at end of file