neuer Flak
This commit is contained in:
@@ -38,7 +38,8 @@ class Belevo_Server_Kommunikation extends IPSModule
|
|||||||
$this->RegisterPropertyFloat("G_AT_5M_0",0);
|
$this->RegisterPropertyFloat("G_AT_5M_0",0);
|
||||||
$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","192.168.20.140:5000/influx?nr=");
|
||||||
$this->RegisterPropertyString("Anlagenummer",0);
|
$this->RegisterPropertyString("Anlagenummer",0);
|
||||||
$this->RegisterPropertyBoolean("InfluxJaNein", false);
|
$this->RegisterPropertyBoolean("InfluxJaNein", false);
|
||||||
|
|
||||||
@@ -53,7 +54,7 @@ class Belevo_Server_Kommunikation extends IPSModule
|
|||||||
$InfluxJaNein = $this->ReadPropertyBoolean("InfluxJaNein");
|
$InfluxJaNein = $this->ReadPropertyBoolean("InfluxJaNein");
|
||||||
if ($InfluxJaNein) {
|
if ($InfluxJaNein) {
|
||||||
// Timer auf 5 Minuten setzen
|
// 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");
|
IPS_LogMessage("Belevo_Server_Kommunikation", "Influx Ja");
|
||||||
} else {
|
} else {
|
||||||
// Timer stoppen
|
// Timer stoppen
|
||||||
@@ -108,9 +109,8 @@ $netzbezug = GetValue($this->ReadPropertyInteger("Netzbezug"));
|
|||||||
|
|
||||||
// Werte in ein Array packen
|
// Werte in ein Array packen
|
||||||
$data = [
|
$data = [
|
||||||
"Organisation"=> "Belevo AG",
|
|
||||||
"Bucket"=> "NodeRed",
|
//"Measurement" => $this->ReadPropertyString("Anlagenummer"),
|
||||||
"Measurement" => $this->ReadPropertyString("Anlagenummer"),
|
|
||||||
"Field" =>[
|
"Field" =>[
|
||||||
//"G_BT_5M_0" => $this->GetValue("G_BT_5M_0"),
|
//"G_BT_5M_0" => $this->GetValue("G_BT_5M_0"),
|
||||||
//"G_SK_5M_3" => $this->GetValue("G_SK_5M_3"),
|
//"G_SK_5M_3" => $this->GetValue("G_SK_5M_3"),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.59",
|
"version": "0.60",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user