mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
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:
parent
8c750fecb8
commit
4ee5a1905a
@ -1454,6 +1454,7 @@ sub _transferInverterValues {
|
|||||||
$paref->{ethishour} = $ethishour;
|
$paref->{ethishour} = $ethishour;
|
||||||
$paref->{nhour} = $nhour;
|
$paref->{nhour} = $nhour;
|
||||||
setPVhistory ($paref);
|
setPVhistory ($paref);
|
||||||
|
delete $paref->{nhour};
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -2700,8 +2701,8 @@ sub setPVhistory {
|
|||||||
my $type = $hash->{TYPE};
|
my $type = $hash->{TYPE};
|
||||||
my $day = strftime "%d", localtime($t); # aktueller Tag
|
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}{$nhour}{pvrl} = $ethishour if($nhour); # realer Energieertrag
|
||||||
$data{$type}{$name}{pvhist}{$day}{$chour}{pvfc} = $calcpv if($chour && defined $calcpv); # prognostizierter 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");
|
Log3 ($name, 5, "$name - set PV History hour $chour -> real: $ethishour, forecast: $calcpv");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user