neuer Flak

This commit is contained in:
belevo\mh
2024-11-04 14:59:57 +01:00
parent a1342ddb4a
commit 7ddb8936d4
2 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,8 @@ class Belevo_Server_Kommunikation extends IPSModule
$this->RegisterPropertyFloat("G_AT_5M_0",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","192.168.20.140:5000/influx?nr=");
$this->RegisterPropertyString("Anlagenummer",0);
$this->RegisterPropertyBoolean("InfluxJaNein", false);
@@ -53,7 +54,7 @@ class Belevo_Server_Kommunikation extends IPSModule
$InfluxJaNein = $this->ReadPropertyBoolean("InfluxJaNein");
if ($InfluxJaNein) {
// Timer auf 5 Minuten setzen
$this->SetTimerInterval("Timer_Influx", 10000);//Alle 10 Sekunden
$this->SetTimerInterval("Timer_Influx", 5000);//Alle 10 Sekunden
IPS_LogMessage("Belevo_Server_Kommunikation", "Influx Ja");
} else {
// Timer stoppen
@@ -108,9 +109,8 @@ $netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug"));
// Werte in ein Array packen
$data = [
"Organisation"=> "Belevo AG",
"Bucket"=> "NodeRed",
"Measurement" => $this->ReadPropertyString("Anlagenummer"),
//"Measurement" => $this->ReadPropertyString("Anlagenummer"),
"Field" =>[
//"G_BT_5M_0" => $this->GetValue("G_BT_5M_0"),
//"G_SK_5M_3" => $this->GetValue("G_SK_5M_3"),

View File

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