From 8419801e4799c9a06e8326f55e05ecd8e7745b87 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Mon, 30 Sep 2024 12:19:09 +0000 Subject: [PATCH] 76_SolarForecast: contrib 1.34.0 git-svn-id: https://svn.fhem.de/fhem/trunk@29178 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 78add80aa..048fa8cd6 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -3544,9 +3544,10 @@ sub ___areaFactorTrack { my $sx = cos ($sunalt * $pi180) * sin ($sunaz * $pi180); #-- Normale N = ($nx,$ny,$nz) Richtung Sonne S = ($sx,$sy,$sz) - my $daf = sprintf "%.2f", ($nx * $sx + $ny * $sy + $nz * $sz); + my $daf = $nx * $sx + $ny * $sy + $nz * $sz; $daf = max ($daf, 0); $daf += 1 if($daf); + $daf = sprintf "%.2f", $daf; ## Schätzung Anteil Direktstrahlung an Globalstrahlung ########################################################