From 7490d7621a301c981b45c48b0eb58e5ef2de0680 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 21 Mar 2021 12:05:15 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.17.1 git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24035 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- contrib/DS_Starter/76_SolarForecast.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/DS_Starter/76_SolarForecast.pm b/contrib/DS_Starter/76_SolarForecast.pm index dddfba94e..0871cb21a 100644 --- a/contrib/DS_Starter/76_SolarForecast.pm +++ b/contrib/DS_Starter/76_SolarForecast.pm @@ -3187,7 +3187,7 @@ sub collectSummaries { for my $h (1..47) { next if(!$data{$type}{$name}{nexthours}{"NextHour".sprintf "%02d",$h}); - my $pvfc = $data{$type}{$name}{nexthours}{"NextHour".sprintf "%02d",$h}{pvforecast}; + my $pvfc = $data{$type}{$name}{nexthours}{"NextHour".sprintf "%02d",$h}{pvforecast} // 0; $next4HoursSum->{PV} += $pvfc if($h <= 3); $restOfDaySum->{PV} += $pvfc if($h <= $rdh);