From 2bd1a4d16be722243d32fa18481ae9c622148265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 30 Apr 2025 11:03:20 +0200 Subject: [PATCH] no message --- HauptManager/module.php | 6 +++--- Manager/module.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HauptManager/module.php b/HauptManager/module.php index c9e907c..ebbc8af 100644 --- a/HauptManager/module.php +++ b/HauptManager/module.php @@ -53,7 +53,7 @@ class HauptManager extends IPSModule $decodedUser = json_decode(GetValue($user["User_Up"]), true); - if (isset($decodedUser["timestamp"]) && (($currentTime - $decodedUser["timestamp"])) < 30) { + if (isset($decodedUser["Timestamp"]) && (($currentTime - $decodedUser["Timestamp"])) < 30) { foreach ($decodedUser["User"] as $subuser) { $subuser['Writeback'] = $user["User_Down"]; @@ -64,7 +64,7 @@ class HauptManager extends IPSModule $Netzbezug += $decodedUser["Netzbezug"]; }else{ - RequestAction($user["User_Down"],'{"timestamp":'.time().',"Is_Peak_Shaving":'.true.',"User":[]}'); + RequestAction($user["User_Down"],'{"Timestamp":'.time().',"Is_Peak_Shaving":'.true.',"User":[]}'); } } @@ -426,7 +426,7 @@ class HauptManager extends IPSModule // Schritt 2: Foreach-Schleife pro Writeback-Array foreach ($writebackArrays as $writeback => $users) { $resultArray = [ - 'timestamp' => time(), + 'Timestamp' => time(), 'Is_Peak_Shaving' => $Is_Peak_Shaving, 'User' => [] ]; diff --git a/Manager/module.php b/Manager/module.php index 85926f9..be24152 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -38,10 +38,10 @@ class Manager extends IPSModule $data = json_decode(GetValue($this->ReadPropertyInteger("DatenZuruck")), true); IPS_LogMessage("Manager", print_r($data)); - IPS_LogMessage("Manager", $data["timestamp"]); + IPS_LogMessage("Manager", $data["Timestamp"]); - if (isset($data["timestamp"])) { - $timestamp = $data["timestamp"]; + if (isset($data["Timestamp"])) { + $timestamp = $data["Timestamp"]; $currentTime = time(); IPS_LogMessage("Manager", ($currentTime - $timestamp)); IPS_LogMessage("Manager", "im here ist so halb gut");