2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 09:55:38 +00:00

76_SolarForecast: contrib 0.82.2

git-svn-id: https://svn.fhem.de/fhem/trunk@27947 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2023-09-11 07:46:20 +00:00
parent c475603808
commit 9a026eefdc

View File

@ -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);