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) {
|
||||
// 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");
|
||||
|
||||
|
||||
@@ -148,8 +148,8 @@ class Belevo_Server_Kommunikation extends IPSModule
|
||||
|
||||
$answer = $this->getWetter($anlagenummer, $this->ReadPropertyString("Gerätenummer"), $this->ReadPropertyString("Ortschaft"));
|
||||
|
||||
$this->SetValue("Temperatur", $answer[0]);
|
||||
$this->SetValue("Wolkenwarscheinlichkeit", $answer[1]);
|
||||
$this->SetValue("Temperatur", $answer['temp']);
|
||||
$this->SetValue("Wolkenwarscheinlichkeit", $answer['cloud']);
|
||||
|
||||
|
||||
if (!empty($json)) {
|
||||
|
||||
Reference in New Issue
Block a user