mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-01 15:44:52 +00:00
76_SolarForecast.pm: contrib 0.68.4
git-svn-id: https://svn.fhem.de/fhem/trunk@26465 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4f0573236e
commit
5e4a5d159b
@ -3586,7 +3586,6 @@ sub _calcMaxEstimateToday {
|
|||||||
|
|
||||||
my $maxest = ReadingsNum($name, 'Today_MaxPVforecast', 0);
|
my $maxest = ReadingsNum($name, 'Today_MaxPVforecast', 0);
|
||||||
my $maxtim = ReadingsVal($name, 'Today_MaxPVforecastTime', '-');
|
my $maxtim = ReadingsVal($name, 'Today_MaxPVforecastTime', '-');
|
||||||
my $doold = 1;
|
|
||||||
|
|
||||||
for my $idx (sort keys %{$data{$type}{$name}{nexthours}}) {
|
for my $idx (sort keys %{$data{$type}{$name}{nexthours}}) {
|
||||||
next if(!NexthoursVal ($hash, $idx, 'today', 0));
|
next if(!NexthoursVal ($hash, $idx, 'today', 0));
|
||||||
@ -3597,16 +3596,12 @@ sub _calcMaxEstimateToday {
|
|||||||
my $stt = NexthoursVal ($hash, $idx, 'starttime', '');
|
my $stt = NexthoursVal ($hash, $idx, 'starttime', '');
|
||||||
next if(!$stt);
|
next if(!$stt);
|
||||||
|
|
||||||
$doold = 0;
|
$maxest = $pvfc;
|
||||||
|
$maxtim = $stt;
|
||||||
push @$daref, "Today_MaxPVforecast<>". $pvfc." Wh";
|
|
||||||
push @$daref, "Today_MaxPVforecastTime<>". $stt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($doold) {
|
push @$daref, "Today_MaxPVforecast<>". $maxest." Wh";
|
||||||
push @$daref, "Today_MaxPVforecast<>". $maxest." Wh";
|
push @$daref, "Today_MaxPVforecastTime<>". $maxtim;
|
||||||
push @$daref, "Today_MaxPVforecastTime<>". $maxtim;
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user