array zugriff über name nicht nummer, timer zeit auf 5 min
This commit is contained in:
@@ -37,7 +37,7 @@ class Belevo_Server_Kommunikation extends IPSModule
|
|||||||
|
|
||||||
if ($InfluxJaNein) {
|
if ($InfluxJaNein) {
|
||||||
// Timer auf 5 Minuten setzen
|
// Timer auf 5 Minuten setzen
|
||||||
$this->SetTimerInterval("Timer_Influx", 300); // Alle 5 Minuten -> 5*60*1000=300000
|
$this->SetTimerInterval("Timer_Influx", 300000); // Alle 5 Minuten -> 5*60*1000=300000
|
||||||
IPS_LogMessage("Belevo_Server_Kommunikation", "Influx Ja");
|
IPS_LogMessage("Belevo_Server_Kommunikation", "Influx Ja");
|
||||||
|
|
||||||
|
|
||||||
@@ -148,8 +148,8 @@ 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[0]);
|
$this->SetValue("Temperatur", $answer['temp']);
|
||||||
$this->SetValue("Wolkenwarscheinlichkeit", $answer[1]);
|
$this->SetValue("Wolkenwarscheinlichkeit", $answer['cloud']);
|
||||||
|
|
||||||
|
|
||||||
if (!empty($json)) {
|
if (!empty($json)) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "0.91",
|
"version": "0.92",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user