token hinzugefügt

This commit is contained in:
belevo\mh
2024-11-04 11:14:36 +01:00
parent 4425355fa5
commit aa3b75234e
2 changed files with 3 additions and 2 deletions

View File

@@ -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',