mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
76_SolarForecast.pm: contrib 0.17.1
git-svn-id: https://svn.fhem.de/fhem/trunk@24037 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6427699570
commit
c63b62f4c0
@ -1404,7 +1404,7 @@ sub _transferDWDForecastValues {
|
||||
my $num1 = $num-1;
|
||||
if($num1 >= 0) {
|
||||
$time_str = "NextHour".sprintf "%02d", $num1;
|
||||
$epoche = $t + (3600*$num); # ACHTUNG ! hier $num statt $num1 verwenden !
|
||||
$epoche = $t + (3600*$num1); # ACHTUNG ! hier $num statt $num1 verwenden !
|
||||
my $ta = TimeAdjust ($epoche);
|
||||
|
||||
push @$daref, "${time_str}_PVforecast:".$calcpv." Wh";
|
||||
@ -2118,14 +2118,14 @@ sub forecastGraphic {
|
||||
if ($offset) {
|
||||
$t{0} += $offset;
|
||||
$t{0} += 24 if ($t{0} < 0);
|
||||
my $t0 = sprintf('%02d', $t{0}+1); # Index liegt eins höher : 10:00 = Index '11'
|
||||
my $t0 = sprintf('%02d', $t{0}); # Index liegt eins höher : 10:00 = Index '11'
|
||||
$val1 = (exists($data{$hash->{TYPE}}{$name}{pvfc}{$t0})) ? $data{$hash->{TYPE}}{$name}{pvfc}{$t0} : 0;
|
||||
$val2 = (exists($data{$hash->{TYPE}}{$name}{pvreal}{$t0})) ? $data{$hash->{TYPE}}{$name}{pvreal}{$t0} : 0;
|
||||
$we{0} = (exists($data{$hash->{TYPE}}{$name}{weather}{$t0}{id})) ? $data{$hash->{TYPE}}{$name}{weather}{$t0}{id} : -1;
|
||||
#$is{0} = undef;
|
||||
}
|
||||
else {
|
||||
my $t0 = sprintf('%02d', $t{0});
|
||||
my $t0 = sprintf('%02d', $t{0}+1);
|
||||
$val1 = (exists($data{$hash->{TYPE}}{$name}{pvfc}{$t0})) ? $data{$hash->{TYPE}}{$name}{pvfc}{$t0} : 0;
|
||||
$val2 = (exists($data{$hash->{TYPE}}{$name}{pvreal}{$t0})) ? $data{$hash->{TYPE}}{$name}{pvreal}{$t0} : 0;
|
||||
# ToDo : klären ob ThisHour:weather_Id stimmt in Bezug zu ThisHour_Time
|
||||
|
Loading…
Reference in New Issue
Block a user