From b74cc17a097f452a50f71ed9eb939483d0540825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Mon, 18 Nov 2024 14:41:06 +0100 Subject: [PATCH] loggiong --- Manager/module.php | 2 ++ library.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Manager/module.php b/Manager/module.php index fad2153..12ea171 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -185,6 +185,7 @@ class Manager extends IPSModule $samePriorityUsers = $withZero; // Array für die verteilte Energie pro User erstellen $userEnergyProv = array_fill_keys(array_column($samePriorityUsers, 'InstanceID'), 0); // Initialisierung für jeden Benutzer auf 0 setzen + IPS_LogMessage("userEnergyProv", print_r($userEnergyProv, true)); // Alle Schritte der Benutzer in einem Array sammeln $allSteps = []; @@ -193,6 +194,7 @@ class Manager extends IPSModule $allSteps[] = ['user' => $user['InstanceID'], 'step' => $step]; } } + IPS_LogMessage("allSteps", print_r($allSteps, true)); // Sortiere die Schritte nach Größe usort($allSteps, function ($a, $b) { diff --git a/library.json b/library.json index 7edcb7b..d736018 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.148", + "version": "0.149", "build": 0, "date": 0 } \ No newline at end of file