From ba76b3266c339ddef4cdfa819aa3d5dd82bbfabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Thu, 19 Dec 2024 13:17:39 +0100 Subject: [PATCH] logging --- Ladestation_Universal/module.php | 2 +- Manager/module.php | 3 +-- library.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Ladestation_Universal/module.php b/Ladestation_Universal/module.php index 2937c78..46c29ea 100644 --- a/Ladestation_Universal/module.php +++ b/Ladestation_Universal/module.php @@ -413,7 +413,7 @@ class Ladestation_Universal extends IPSModule curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, $this->ReadPropertyString("Username") . ":" . $this->ReadPropertyString("Password")); $response2 = curl_exec($ch); - IPS_LogMessage("Ladestation", "Antwort" . print_r($response2)); + IPS_LogMessage("Ladestation", "Antwort" . ($curl_getinfo($ch, CURLINFO_HTTP_CODE))); // Check for errors if (curl_errno($ch)) { diff --git a/Manager/module.php b/Manager/module.php index 360c54b..053d582 100644 --- a/Manager/module.php +++ b/Manager/module.php @@ -189,8 +189,7 @@ class Manager extends IPSModule $instanceID = $entry["InstanceID"]; $minPowerStep = min($entry["PowerSteps"]); - IPS_RequestAction($instanceID,"SetAktuelle_Leistung",$minPowerStep - ); + IPS_RequestAction($instanceID,"SetAktuelle_Leistung",$minPowerStep); $remainingPower -= $entry["Aktuelle_Leistung"]; } } diff --git a/library.json b/library.json index e27f549..bc20c88 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.210", + "version": "0.211", "build": 0, "date": 0 } \ No newline at end of file