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