From 726022f84046f3f667429329e459a2ca7cb6a2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Tue, 4 Mar 2025 17:07:14 +0100 Subject: [PATCH] zeit raufgesetzt --- Manager/module.php | 3 ++- library.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Manager/module.php b/Manager/module.php index 46dabdc..65eae43 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -32,6 +32,7 @@ class Manager extends IPSModule switch ($Ident) { case "DistributeEnergy": if($this->ReadPropertyBoolean("HauptmanagerAktiv")==true ){ + $data = json_decode(GetValue($this->ReadPropertyInteger("DatenZuruck")), true); IPS_LogMessage("Manager", print_r($data)); IPS_LogMessage("Manager", $data["timestamp"]); @@ -41,7 +42,7 @@ class Manager extends IPSModule $currentTime = time(); IPS_LogMessage("Manager", ($currentTime - $timestamp)); - if (($currentTime - $timestamp) < 30) { + if (($currentTime - $timestamp) < 3600) { $this->DistributeEnergy_Extern(); } } else { diff --git a/library.json b/library.json index 6ef4008..ecc904b 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "1.217", + "version": "1.218", "build": 0, "date": 0 } \ No newline at end of file