2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 01:46:08 +00:00

76_SolarForecast.pm: contrib 0.19.0

git-svn-id: https://svn.fhem.de/fhem/trunk@24059 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2021-03-22 21:32:51 +00:00
parent 1eb42e94d4
commit 58ae7166cc

View File

@ -1403,10 +1403,10 @@ sub _transferDWDForecastValues {
my $calcpv = calcPVforecast ($name, $v, $num, $t, $fh, $fd); # Vorhersage gewichtet kalkulieren my $calcpv = calcPVforecast ($name, $v, $num, $t, $fh, $fd); # Vorhersage gewichtet kalkulieren
my $num1 = $num-1; #my $num1 = $num-1;
if($num1 >= 0) { if($num >= 0) {
$time_str = "NextHour".sprintf "%02d", $num1; $time_str = "NextHour".sprintf "%02d", $num;
$epoche = $t + (3600*$num1); $epoche = $t + (3600*$num);
my $ta = TimeAdjust ($epoche); my $ta = TimeAdjust ($epoche);
push @$daref, "${time_str}_PVforecast:".$calcpv." Wh"; push @$daref, "${time_str}_PVforecast:".$calcpv." Wh";