evt fehler behoben

This commit is contained in:
belevo\mh
2024-11-11 14:29:00 +01:00
parent aa116282e7
commit da70affe82
2 changed files with 14 additions and 4 deletions

View File

@@ -148,9 +148,19 @@ class Belevo_Server_Kommunikation extends IPSModule
$answer = $this->getWetter($anlagenummer, $this->ReadPropertyString("Gerätenummer"), $this->ReadPropertyString("Ortschaft")); $answer = $this->getWetter($anlagenummer, $this->ReadPropertyString("Gerätenummer"), $this->ReadPropertyString("Ortschaft"));
$this->SetValue("Temperatur", $answer['temp']); //$this->SetValue("Temperatur", $answer['temp']);
$this->SetValue("Wolkenwarscheinlichkeit", $answer['cloud']); //$this->SetValue("Wolkenwarscheinlichkeit", $answer['cloud']);
if (isset($answer['temp'])) {
$this->SetValue("Temperatur", $answer['temp']);
} else {
IPS_LogMessage("Belevo_Server_Kommunikation", "Temperatur-Wert ist nicht vorhanden.");
}
if (isset($answer['cloud'])) {
$this->SetValue("Wolkenwarscheinlichkeit", $answer['cloud']);
} else {
IPS_LogMessage("Belevo_Server_Kommunikation", "Wolkenwarscheinlichkeit-Wert ist nicht vorhanden.");
}
if (!empty($json)) { if (!empty($json)) {
// Kombiniere die URL mit der Anlagenummer // Kombiniere die URL mit der Anlagenummer

View File

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