From 92e63bc486ed0a3ed666c2307a15293af428ade2 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Fri, 22 Jan 2021 10:06:56 +0000 Subject: [PATCH] 76_Solarforcast: contrib 0.3.0 git-svn-id: https://svn.fhem.de/fhem/trunk@23583 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 50d310ca3..b05eba3be 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -2317,8 +2317,8 @@ sub calcFromHistory { $pvfc += $pvhh->{$dayfa}{$hour}{pvfc} // 0; } - my $pvavg = $pvrl / $anzavg; - my $fcavg = $pvfc / $anzavg; + my $pvavg = sprintf "%.2f", $pvrl / $anzavg; + my $fcavg = sprintf "%.2f", $pvfc / $anzavg; Log3 ($name, 4, "$name - PV History -> average hour ($hour) -> real: $pvavg, forecast: $fcavg");