From 1a81e812710c7de7b4f711915d7cc4e9ffc08e65 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Tue, 5 Nov 2024 13:05:50 +0100 Subject: [PATCH] Fehler eingrenzen --- Belevo_Server_Kommunikation/module.php | 4 ++-- library.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Belevo_Server_Kommunikation/module.php b/Belevo_Server_Kommunikation/module.php index 98f1a92..e18a776 100644 --- a/Belevo_Server_Kommunikation/module.php +++ b/Belevo_Server_Kommunikation/module.php @@ -118,7 +118,7 @@ $influxData = array( // Array in JSON konvertieren $json = json_encode($influxData); - +IPS_LogMessage("Belevo_Server_Kommunikation", "Erstelltes JSON: " . $json); // JSON zurückgeben oder weiterverarbeiten return $json; @@ -149,10 +149,10 @@ private function SendJsonToInfluxDB($url, $jsonData) { // cURL beenden curl_close($curl); - // Logging der Antwort und eventueller Fehler if ($error) { IPS_LogMessage("Belevo_Server_Kommunikation", "Fehler beim Senden an Influx: " . $error); } else { + IPS_LogMessage("Belevo_Server_Kommunikation", "HTTP-Status: " . $httpCode); IPS_LogMessage("Belevo_Server_Kommunikation", "Antwort von Influx: " . $result); } } diff --git a/library.json b/library.json index 841f623..5087c99 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.73", + "version": "0.74", "build": 0, "date": 0 } \ No newline at end of file