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->RegisterPropertyInteger("Aussentemperatur", 0);
|
||||||
*/
|
*/
|
||||||
//$this->RegisterPropertyString("BaseURL","https://brain.belevo.ch/status?nr=");
|
//$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->RegisterPropertyString("Anlagenummer",0);
|
||||||
$this->RegisterPropertyBoolean("InfluxJaNein", false);
|
$this->RegisterPropertyBoolean("InfluxJaNein", false);
|
||||||
|
|
||||||
@@ -82,9 +82,9 @@ class Belevo_Server_Kommunikation extends IPSModule
|
|||||||
|
|
||||||
$anlagenummer = $this->ReadPropertyString("Anlagenummer");
|
$anlagenummer = $this->ReadPropertyString("Anlagenummer");
|
||||||
|
|
||||||
if (!empty($anlagenummer) && !empty($json)) {
|
if (!empty($json)) {
|
||||||
// Kombiniere die URL mit der Anlagenummer
|
// Kombiniere die URL mit der Anlagenummer
|
||||||
$fullURL = $baseURL . $anlagenummer;
|
$fullURL = $baseURL;
|
||||||
IPS_LogMessage("Belevo_Server_Kommunikation", "URL: ".$fullURL);
|
IPS_LogMessage("Belevo_Server_Kommunikation", "URL: ".$fullURL);
|
||||||
IPS_LogMessage("Belevo_Server_Kommunikation", "JSON: " . $json);
|
IPS_LogMessage("Belevo_Server_Kommunikation", "JSON: " . $json);
|
||||||
$this->SendJsonToInfluxDB($fullURL, $json);
|
$this->SendJsonToInfluxDB($fullURL, $json);
|
||||||
@@ -107,9 +107,9 @@ $influxData = array(
|
|||||||
"Value" => array(
|
"Value" => array(
|
||||||
"InfluxAllowed" => $InfluxJaNein // Setze InfluxAllowed auf true für den Test
|
"InfluxAllowed" => $InfluxJaNein // Setze InfluxAllowed auf true für den Test
|
||||||
),
|
),
|
||||||
//"Measurement" => $this->ReadPropertyString("Anlagenummer"),
|
|
||||||
"Parameter" => array(
|
"Parameter" => array(
|
||||||
"Influxadr" =>$an_nummer
|
"Influxadr" => $an_nummer
|
||||||
),
|
),
|
||||||
"Tracker" => array(
|
"Tracker" => array(
|
||||||
"E_PNB_5M_0" => $netzbezug
|
"E_PNB_5M_0" => $netzbezug
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.71",
|
"version": "0.72",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user