konnte keine Syncom instanz gemacht werden
This commit is contained in:
@@ -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,7 +107,7 @@ $influxData = array(
|
||||
"Value" => array(
|
||||
"InfluxAllowed" => $InfluxJaNein // Setze InfluxAllowed auf true für den Test
|
||||
),
|
||||
//"Measurement" => $this->ReadPropertyString("Anlagenummer"),
|
||||
|
||||
"Parameter" => array(
|
||||
"Influxadr" => $an_nummer
|
||||
),
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"compatibility": {
|
||||
"version": "7.1"
|
||||
},
|
||||
"version": "0.71",
|
||||
"version": "0.72",
|
||||
"build": 0,
|
||||
"date": 0
|
||||
}
|
||||
Reference in New Issue
Block a user