76_SolarForecast.pm: contrib 0.10.0

git-svn-id: https://svn.fhem.de/fhem/trunk@23953 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
DS_Starter
2021-03-13 18:08:13 +00:00
parent 1f4cdd6872
commit f2324ea1db

View File

@@ -1454,6 +1454,7 @@ sub _transferInverterValues {
$paref->{ethishour} = $ethishour;
$paref->{nhour} = $nhour;
setPVhistory ($paref);
delete $paref->{nhour};
}
return;
@@ -2700,8 +2701,8 @@ sub setPVhistory {
my $type = $hash->{TYPE};
my $day = strftime "%d", localtime($t); # aktueller Tag
$data{$type}{$name}{pvhist}{$day}{$nhour}{pvrl} = $ethishour if($nhour && defined $ethishour); # realer Energieertrag
$data{$type}{$name}{pvhist}{$day}{$chour}{pvfc} = $calcpv if($chour && defined $calcpv); # prognostizierter Energieertrag
$data{$type}{$name}{pvhist}{$day}{$nhour}{pvrl} = $ethishour if($nhour); # realer Energieertrag
$data{$type}{$name}{pvhist}{$day}{$chour}{pvfc} = $calcpv if($chour); # prognostizierter Energieertrag
Log3 ($name, 5, "$name - set PV History hour $chour -> real: $ethishour, forecast: $calcpv");