From 1d0cede27b42c8af9d5003fdc4859ad77c6b9cef Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Sat, 10 Apr 2021 08:37:52 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.34.0 git-svn-id: https://svn.fhem.de/fhem/trunk@24206 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 250f46439..72635922a 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -3530,9 +3530,9 @@ sub calcFromHistory { return; } - my $chwcc = HistoryVal ($hash, $day, $hour, "wcc", ""); # Wolkenbedeckung heute Stunde $hour + my $chwcc = HistoryVal ($hash, $day, $hour, "wcc", undef); # Wolkenbedeckung heute Stunde $hour - if(!$chwcc) { + if(!defined $chwcc) { Log3 ($name, 4, "$name - Day $day has no cloudiness value set for hour $hour, no past averages can be calculated."); return; } @@ -3545,9 +3545,9 @@ sub calcFromHistory { my ($pvrl,$pvfc) = (0,0); for my $dayfa (@efa) { - my $histwcc = HistoryVal ($hash, $dayfa, $hour, "wcc", ""); # historische Wolkenbedeckung + my $histwcc = HistoryVal ($hash, $dayfa, $hour, "wcc", undef); # historische Wolkenbedeckung - if(!$histwcc) { + if(!defined $histwcc) { Log3 ($name, 4, "$name - PV History -> Day $dayfa has no cloudiness value set for hour $hour, this history dataset is ignored."); next; }