From 1683fab2d44561a6e94a109c0d9e585db96dd49c Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 23 May 2023 08:08:42 +0200 Subject: [PATCH] add temperatur reading and fix weblink --- lib/FHEM/APIs/Weather/wundergroundAPI.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/FHEM/APIs/Weather/wundergroundAPI.pm b/lib/FHEM/APIs/Weather/wundergroundAPI.pm index 1f66e12..32a23cd 100644 --- a/lib/FHEM/APIs/Weather/wundergroundAPI.pm +++ b/lib/FHEM/APIs/Weather/wundergroundAPI.pm @@ -542,6 +542,16 @@ sub _ProcessingRetrieveData { ) ) ), + 'temperature' => int( + sprintf( + "%.1f", + ( + $data->{temperatureMax}[$i] + ? $data->{temperatureMax}[$i] + : 0 + ) + ) + 0.5 + ), 'low_c' => int( sprintf( "%.1f", $data->{temperatureMin}[$i] ) + 0.5 -- 2.45.2