76_Solarforcast: contrib 0.1.0
git-svn-id: https://svn.fhem.de/fhem/trunk@23360 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -707,7 +707,7 @@ sub _transferInverterValues {
|
|||||||
|
|
||||||
my $tlim = "0|23"; # Stunde 23 -> bestimmte Aktionen
|
my $tlim = "0|23"; # Stunde 23 -> bestimmte Aktionen
|
||||||
|
|
||||||
if($chour =~ /$tlim/x) {
|
if($chour =~ /^($tlim)$/x) {
|
||||||
my @allrds = keys %{$myHash->{READINGS}};
|
my @allrds = keys %{$myHash->{READINGS}};
|
||||||
for my $key(@allrds) {
|
for my $key(@allrds) {
|
||||||
readingsDelete($myHash, $key) if($key =~ m/^Today_Hour\d{2}_PVreal$/x);
|
readingsDelete($myHash, $key) if($key =~ m/^Today_Hour\d{2}_PVreal$/x);
|
||||||
@@ -736,7 +736,7 @@ sub _transferInverterValues {
|
|||||||
|
|
||||||
my $ethishour = $etoday - $edaypast;
|
my $ethishour = $etoday - $edaypast;
|
||||||
|
|
||||||
push @$daref, "Today_Hour${chour}_PVreal:". $ethishour." Wh" if($chour !~ /$tlim/x); # nicht setzen wenn Stunde 23 des Tages
|
push @$daref, "Today_Hour${chour}_PVreal:". $ethishour." Wh" if($chour !~ /^($tlim)$/x); # nicht setzen wenn Stunde 23 des Tages
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user