2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-30 18:12:28 +00:00

76_Solarforcast: contrib 0.49.5

git-svn-id: https://svn.fhem.de/fhem/trunk@24560 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2021-06-01 11:48:42 +00:00
parent cfe60a067c
commit cbba163be9

View File

@ -4730,11 +4730,13 @@ sub calcPVforecast {
$hq //= 0; $hq //= 0;
if (!defined $hc) { if (!defined $hc) {
$hcfound = "no"; $hcfound = "no";
$hc = 1.00; # keine Korrektur $hc = 1; # keine Korrektur
$hq = 0; $hq = 0;
} }
} }
$hc = sprintf "%.2f", $hc;
$data{$type}{$name}{nexthours}{"NextHour".sprintf("%02d",$num)}{pvcorrf} = $hc."/".$hq; $data{$type}{$name}{nexthours}{"NextHour".sprintf("%02d",$num)}{pvcorrf} = $hc."/".$hq;
if($fd == 0 && $fh1) { if($fd == 0 && $fh1) {
@ -4894,9 +4896,6 @@ sub calcVariance {
next; next;
} }
#my $oldfac = ReadingsNum ($name, "pvCorrectionFactor_".sprintf("%02d",$h), 1); # bisher definierter Korrekturfaktor
#$oldfac = 1 if(1*$oldfac == 0);
Log3 ($name, 5, "$name - Hour: ".sprintf("%02d",$h).", Today PVreal: $pvval, PVforecast: $fcval"); Log3 ($name, 5, "$name - Hour: ".sprintf("%02d",$h).", Today PVreal: $pvval, PVforecast: $fcval");
$paref->{hour} = $h; $paref->{hour} = $h;