konnte keine Syncom instanz gemacht werden

This commit is contained in:
belevo\mh
2024-11-05 11:32:18 +01:00
parent c8046d6186
commit 85b50b83b3
2 changed files with 6 additions and 6 deletions

View File

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

View File

@@ -6,7 +6,7 @@
"compatibility": {
"version": "7.1"
},
"version": "0.71",
"version": "0.72",
"build": 0,
"date": 0
}