2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

76_SolarForecast: contrib 0.82.2

git-svn-id: https://svn.fhem.de/fhem/trunk@27946 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2023-09-11 07:22:13 +00:00
parent 26bb20136c
commit 8cf08c7ef4

View File

@ -10636,7 +10636,9 @@ sub aiAddInstance { ## no critic "not used"
my $hod = AiRawdataVal ($hash, $idx, 'hod', undef);
next if(!defined $hod);
my $rad1h = AiRawdataVal ($hash, $idx, 'rad1h', 0);
my $rad1h = AiRawdataVal ($hash, $idx, 'rad1h', undef);
next if(!$rad1h);
my $temp = AiRawdataVal ($hash, $idx, 'temp', 20);
my $wcc = AiRawdataVal ($hash, $idx, 'wcc', 0);
my $wrp = AiRawdataVal ($hash, $idx, 'wrp', 0);
@ -10732,7 +10734,7 @@ sub aiGetResult { ## no critic "not used"
}
my $rad1h = NexthoursVal ($hash, $nhidx, "rad1h", undef);
return "no rad1h for hod: $hod" if(!defined $rad1h);
return "no rad1h for hod: $hod" if(!$rad1h);
my $wcc = NexthoursVal ($hash, $nhidx, "cloudcover", 0);
my $wrp = NexthoursVal ($hash, $nhidx, "rainprob", 0);