mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
76_SolarForecast.pm: contrib 0.3.0
git-svn-id: https://svn.fhem.de/fhem/trunk@23604 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
764bc0f747
commit
f5d73a31e1
@ -2281,8 +2281,25 @@ sub calcPVforecast {
|
||||
if($kw eq "Wh") {
|
||||
$pv = int $pv;
|
||||
}
|
||||
|
||||
Log3($name, 5, "$name - calcPVforecast -> Hour: ".sprintf("%02d",$fh)." ,moduleTiltAngle factor: ".$htilt{"$ta"}.", Cloudfactor: $ccf, Rainfactor: $rcf, pvCorrectionFactor: $hc");
|
||||
|
||||
my $lh = { # Log-Hash zur Ausgabe
|
||||
"moduleTiltAngle factor" => $htilt{"$ta"},
|
||||
"Cloudfactor" => $ccf,
|
||||
"Rainfactor" => $rcf,
|
||||
"pvCorrectionFactor" => $hc,
|
||||
"moduleArea" => $ma,
|
||||
"moduleEfficiency" => $me/100,
|
||||
"inverterEfficiency" => $ie/100,
|
||||
"Radiation" => $rad,
|
||||
"Factor kJ to kWh" => $kJtokWh
|
||||
};
|
||||
|
||||
my $sq;
|
||||
for my $idx (sort keys %{$lh}) {
|
||||
$sq .= $idx." => ".$lh->{$idx}."\n";
|
||||
}
|
||||
|
||||
Log3($name, 5, "$name - PV forecast calc factors for hour ".sprintf("%02d",$fh)." ->\n$sq");
|
||||
|
||||
return $pv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user