2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

76_SolarForecast.pm: contrib 0.17.1

git-svn-id: https://svn.fhem.de/fhem/trunk@24035 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2021-03-21 12:05:15 +00:00
parent 5b9d8a4752
commit fb108c2936

View File

@ -3187,7 +3187,7 @@ sub collectSummaries {
for my $h (1..47) { for my $h (1..47) {
next if(!$data{$type}{$name}{nexthours}{"NextHour".sprintf "%02d",$h}); 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); $next4HoursSum->{PV} += $pvfc if($h <= 3);
$restOfDaySum->{PV} += $pvfc if($h <= $rdh); $restOfDaySum->{PV} += $pvfc if($h <= $rdh);