From 0fbe1867bd33b17f8bc971dba5f234e84877a56e Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Wed, 21 Dec 2022 09:06:54 +0100 Subject: [PATCH] fix forecast number for weblink --- 59_Weather.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/59_Weather.pm b/59_Weather.pm index 5ae171a..e64fcf0 100755 --- a/59_Weather.pm +++ b/59_Weather.pm @@ -1105,7 +1105,7 @@ sub Weather_CheckOptions { $f =~ tr/dh/./cd if ( defined $f && $f ); $items =~ tr/0-9/./cd if ( defined($items) && $items ); - $items = AttrVal( $d, 'forecastLimit', 6 ) + $items = AttrVal( $d, 'forecastLimit', 5 ) if ( !$items ); my $forecastConfig = Weather_ForcastConfig($hash); @@ -1117,7 +1117,7 @@ sub Weather_CheckOptions { $f = 'h' if ( !$f || length($f) > 1 ); - return ( $f, $items ); + return ( $f, $items + 1 ); } #####################################