From c8046d61861882efa74c0554f66cdfc9f5ea75ae Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Tue, 5 Nov 2024 11:09:33 +0100 Subject: [PATCH] weitere syntaxfehler ... --- Belevo_Server_Kommunikation/module.php | 6 +++--- library.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Belevo_Server_Kommunikation/module.php b/Belevo_Server_Kommunikation/module.php index ebfa69a..d330d83 100644 --- a/Belevo_Server_Kommunikation/module.php +++ b/Belevo_Server_Kommunikation/module.php @@ -117,7 +117,7 @@ $influxData = array( ); // Array in JSON konvertieren -$json = json_encode($data); +$json = json_encode($influxData); // JSON zurückgeben oder weiterverarbeiten return $json; @@ -136,8 +136,8 @@ private function SendJsonToInfluxDB($url, $jsonData) { CURLOPT_POST => true, // POST-Methode verwenden CURLOPT_HTTPHEADER => [ 'Content-Type: application/json', // Header für JSON-Daten setzen - 'Accept: application/json' - 'id : test' + 'Accept: application/json', + 'id: test' ], CURLOPT_POSTFIELDS => $jsonData // JSON-Daten als POST-Feld senden ]); diff --git a/library.json b/library.json index df4f143..a2dc064 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.70", + "version": "0.71", "build": 0, "date": 0 } \ No newline at end of file