array zugriff über name nicht nummer, timer zeit auf 5 min

This commit is contained in:
2024-11-08 10:28:45 +01:00
parent 925ce04e7b
commit 9ece6934df
2 changed files with 4 additions and 4 deletions

View File

@@ -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)) {