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:
DS_Starter
2020-12-16 08:11:12 +00:00
parent 5f2142bb13
commit 545c44b95d

View File

@@ -707,7 +707,7 @@ sub _transferInverterValues {
my $tlim = "0|23"; # Stunde 23 -> bestimmte Aktionen
if($chour =~ /$tlim/x) {
if($chour =~ /^($tlim)$/x) {
my @allrds = keys %{$myHash->{READINGS}};
for my $key(@allrds) {
readingsDelete($myHash, $key) if($key =~ m/^Today_Hour\d{2}_PVreal$/x);
@@ -736,7 +736,7 @@ sub _transferInverterValues {
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;
}