Server Kommunikation

Alles Influxpunkte, bis auf Netzbezug, ausgeklammert
This commit is contained in:
belevo\mh
2024-10-15 11:40:36 +02:00
parent f65cb0a6c6
commit 91d6d037b2
2 changed files with 8 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ class Belevo_Server_Kommunikation extends IPSModule
//Netzbezug
$this->RegisterPropertyFloat("E_PNB_5M_0", 0);
$this->RegisterVariableFloat("Netzbezug", "Netzbezug", "",0);
//Boilerstatus
/*//Boilerstatus
$this->RegisterPropertyInteger("G_BS_5M_0", 0);
$this->RegisterVariableInteger("Boilerstatus", 0);
//Boilertemperatur
@@ -37,7 +37,7 @@ class Belevo_Server_Kommunikation extends IPSModule
//Aussentemperatur
$this->RegisterPropertyFloat("G_AT_5M_0",0);
$this->RegisterVariableInteger("Aussentemperatur", 0);
*/
$this->RegisterPropertyString("BaseURL","https://brain.belevo.ch/status?nr=");
$this->RegisterPropertyString("Anlagenummer",0);
$this->RegisterPropertyBoolean("InfluxJaNein", false);
@@ -91,7 +91,7 @@ class Belevo_Server_Kommunikation extends IPSModule
public function MakeJson() {
/*
$boilertemperatur = $this->GetValue("Boilertemperatur");
$this->SetValue("G_BT_5M_0", $boilertemperatur);
@@ -100,15 +100,15 @@ $this->SetValue("G_SK_5M_3", $kontaktTeillast);
$kontaktVolllast = $this->GetValue("Kontakt_Volllast");
$this->SetValue("G_SK_5M_4", $kontaktVolllast);
*/
$netzbezug = $this->GetValue("Netzbezug");
$this->SetValue("E_PNB_5M_0", $netzbezug);
// Werte in ein Array packen
$data = [
"G_BT_5M_0" => $this->GetValue("G_BT_5M_0"),
"G_SK_5M_3" => $this->GetValue("G_SK_5M_3"),
"G_SK_5M_4" => $this->GetValue("G_SK_5M_4"),
//"G_BT_5M_0" => $this->GetValue("G_BT_5M_0"),
//"G_SK_5M_3" => $this->GetValue("G_SK_5M_3"),
//"G_SK_5M_4" => $this->GetValue("G_SK_5M_4"),
"E_PNB_5M_0" => $this->GetValue("E_PNB_5M_0"),
];