From 1a0953f11bb2729aaa823da50e27626072923c46 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Mon, 11 Sep 2023 07:46:20 +0000 Subject: [PATCH] 76_SolarForecast: contrib 0.82.2 git-svn-id: https://svn.fhem.de/fhem/trunk@27947 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 4904a7136..c829341a8 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -10169,9 +10169,9 @@ sub calcValueImproves { $paref->{acu} = $acu; - _calcCaQcomplex ($paref); # Korrekturberechnung mit Bewölkung duchführen/speichern - _calcCaQsimple ($paref); # einfache Korrekturberechnung duchführen/speichern - _addHourAiInstance ($paref); # AI Instanz hinzufügen + _calcCaQcomplex ($paref); # Korrekturberechnung mit Bewölkung duchführen/speichern + _calcCaQsimple ($paref); # einfache Korrekturberechnung duchführen/speichern + _addHourAiRawdata ($paref); # AI Instanz hinzufügen delete $paref->{acu}; @@ -10344,7 +10344,7 @@ return; ################################################################ # AI Instanz für die abgeschlossene Stunde hinzufügen ################################################################ -sub _addHourAiInstance { +sub _addHourAiRawdata { my $paref = shift; my $hash = $paref->{hash}; my $name = $paref->{name}; @@ -10733,8 +10733,8 @@ sub aiGetResult { ## no critic "not used" return 'AI trained object is missed'; } - my $rad1h = NexthoursVal ($hash, $nhidx, "rad1h", undef); - return "no rad1h for hod: $hod" if(!$rad1h); + my $rad1h = NexthoursVal ($hash, $nhidx, "rad1h", 0); + return "no rad1h for hod: $hod" if($rad1h <= 0); my $wcc = NexthoursVal ($hash, $nhidx, "cloudcover", 0); my $wrp = NexthoursVal ($hash, $nhidx, "rainprob", 0);