From 276c19959dab980eaf3571873819179c34aa753e Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Mon, 1 May 2023 21:14:31 +0000 Subject: [PATCH] 76_SolarForecast: contrib 0.76.0 git-svn-id: https://svn.fhem.de/fhem/trunk@27506 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 5e2474b8f..ddd674aec 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -6346,8 +6346,15 @@ sub genStatisticReadings { my $name = $paref->{name}; my $daref = $paref->{daref}; my $t = $paref->{t}; # aktueller UNIX Timestamp - + + my @srd = sort keys (%hcsr); my @csr = split ',', AttrVal($name, 'ctrlStatisticReadings', ''); + + for my $item (@srd) { + next if($item ~~ @csr); + + deleteReadingspec ($hash, 'statistic_'.$item); + } return if(!@csr);