From aa3b75234e74b0e1b561462cad72fc99c35a8bb9 Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Mon, 4 Nov 2024 11:14:36 +0100 Subject: [PATCH] =?UTF-8?q?token=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Belevo_Server_Kommunikation/module.php | 3 ++- library.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Belevo_Server_Kommunikation/module.php b/Belevo_Server_Kommunikation/module.php index f39ee62..452a7b3 100644 --- a/Belevo_Server_Kommunikation/module.php +++ b/Belevo_Server_Kommunikation/module.php @@ -130,7 +130,7 @@ return $json; private function SendJsonToInfluxDB($url, $json) { - // $token = "Token iFNTONC5UvST8GT5itWqxiO6m4O1yHt5hus54J8eqotk5IZiq0Wjd0_Xi6dozmo32QR3esJqk6hJAvJ8X2SxtQ=="; + $token = "Token iFNTONC5UvST8GT5itWqxiO6m4O1yHt5hus54J8eqotk5IZiq0Wjd0_Xi6dozmo32QR3esJqk6hJAvJ8X2SxtQ=="; /* if (empty($token)) { IPS_LogMessage("Belevo_Server_Kommunikation", "InfluxDB-Token fehlt->SendJsonToInfluxDB"); @@ -166,6 +166,7 @@ return $json; $options = [ 'http' => [ 'header' => "Content-Type: application/json\r\n". + "Authorization: Bearer $token", "id: test\r\n", 'method' => 'POST', diff --git a/library.json b/library.json index 481ed5b..4c0455e 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.56", + "version": "0.57", "build": 0, "date": 0 } \ No newline at end of file