evt fehler behoben
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user