From 85b50b83b3593ba88166c8788b87f316d8ff078a Mon Sep 17 00:00:00 2001 From: "belevo\\mh" Date: Tue, 5 Nov 2024 11:32:18 +0100 Subject: [PATCH] konnte keine Syncom instanz gemacht werden --- Belevo_Server_Kommunikation/module.php | 10 +++++----- library.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Belevo_Server_Kommunikation/module.php b/Belevo_Server_Kommunikation/module.php index d330d83..4bd0df3 100644 --- a/Belevo_Server_Kommunikation/module.php +++ b/Belevo_Server_Kommunikation/module.php @@ -39,7 +39,7 @@ class Belevo_Server_Kommunikation extends IPSModule $this->RegisterPropertyInteger("Aussentemperatur", 0); */ //$this->RegisterPropertyString("BaseURL","https://brain.belevo.ch/status?nr="); - $this->RegisterPropertyString("BaseURL","http://192.168.20.140:5000/influx?nr="); + $this->RegisterPropertyString("BaseURL","http://192.168.20.140:5000/influx"); $this->RegisterPropertyString("Anlagenummer",0); $this->RegisterPropertyBoolean("InfluxJaNein", false); @@ -82,9 +82,9 @@ class Belevo_Server_Kommunikation extends IPSModule $anlagenummer = $this->ReadPropertyString("Anlagenummer"); - if (!empty($anlagenummer) && !empty($json)) { + if (!empty($json)) { // Kombiniere die URL mit der Anlagenummer - $fullURL = $baseURL . $anlagenummer; + $fullURL = $baseURL; IPS_LogMessage("Belevo_Server_Kommunikation", "URL: ".$fullURL); IPS_LogMessage("Belevo_Server_Kommunikation", "JSON: " . $json); $this->SendJsonToInfluxDB($fullURL, $json); @@ -107,9 +107,9 @@ $influxData = array( "Value" => array( "InfluxAllowed" => $InfluxJaNein // Setze InfluxAllowed auf true für den Test ), - //"Measurement" => $this->ReadPropertyString("Anlagenummer"), + "Parameter" => array( - "Influxadr" =>$an_nummer + "Influxadr" => $an_nummer ), "Tracker" => array( "E_PNB_5M_0" => $netzbezug diff --git a/library.json b/library.json index a2dc064..ab5541a 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.71", + "version": "0.72", "build": 0, "date": 0 } \ No newline at end of file