From 9ece6934dfb0d88604e53c1d3e5349732081d167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Fri, 8 Nov 2024 10:28:45 +0100 Subject: [PATCH] =?UTF-8?q?array=20zugriff=20=C3=BCber=20name=20nicht=20nu?= =?UTF-8?q?mmer,=20timer=20zeit=20auf=205=20min?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Belevo_Server_Kommunikation/module.php | 6 +++--- library.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Belevo_Server_Kommunikation/module.php b/Belevo_Server_Kommunikation/module.php index d25a78d..f912697 100644 --- a/Belevo_Server_Kommunikation/module.php +++ b/Belevo_Server_Kommunikation/module.php @@ -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)) { diff --git a/library.json b/library.json index a448b80..69af20e 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.91", + "version": "0.92", "build": 0, "date": 0 } \ No newline at end of file