diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 7106aaee3..20c33a793 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -4655,13 +4655,10 @@ sub _beamGraphic { if($show_diff eq 'top') { # Zusätzliche Zeile Ertrag - Verbrauch $ret .= ""; my $ii; - for my $i (0..($maxhours*2)-1) { # gleiche Bedingung wie oben - - if(AttrVal ($name, "debug", 0)) { # nur für Debugging - Log (1, qq{DEBUG> $name - show_night: $show_night, weather: $hfcg->{$i}{weather}, beam1: $hfcg->{$i}{beam1}, beam2: $hfcg->{$i}{beam2}}); - } - - next if (!$show_night && ($hfcg->{$i}{weather} > 99) && !$hfcg->{$i}{beam1} && !$hfcg->{$i}{beam2}); + for my $i (0..($maxhours*2)-1) { # gleiche Bedingung wie oben + next if (!$show_night && ($hfcg->{$i}{weather} > 99) + && !$hfcg->{$i}{beam1} + && !$hfcg->{$i}{beam2}); $ii++; # wieviele Stunden haben wir bisher angezeigt ? last if ($ii > $maxhours); # vorzeitiger Abbruch