76_Solarforcast: contrib 0.1.0

git-svn-id: https://svn.fhem.de/fhem/trunk@23362 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
DS_Starter
2020-12-16 09:33:20 +00:00
parent be5c9109f5
commit 78af08b8e3

View File

@@ -1782,8 +1782,8 @@ sub calcVariance {
my $myHash = $paref->{myHash}; my $myHash = $paref->{myHash};
my $myName = $paref->{myName}; my $myName = $paref->{myName};
my $dcauto = ReadingsVal ($myName, "pvCorrectionFactor_Auto", "off"); # nur bei "on" automatische Varainzkalkulation my $dcauto = ReadingsVal ($myName, "pvCorrectionFactor_Auto", "off"); # nur bei "on" automatische Varianzkalkulation
if($dcauto eq "off") { if($dcauto =~ /^off/x) {
Log3($myName, 4, "$myName - automatic Variance calculation is switched off."); Log3($myName, 4, "$myName - automatic Variance calculation is switched off.");
return; return;
} }
@@ -1796,6 +1796,7 @@ sub calcVariance {
if($t - $idts < 86400) { if($t - $idts < 86400) {
my $rmh = sprintf "%.1f", ((86400 - ($t - $idts)) / 3600); my $rmh = sprintf "%.1f", ((86400 - ($t - $idts)) / 3600);
Log3($myName, 4, "$myName - Variance calculation in standby. It starts in $rmh hours."); Log3($myName, 4, "$myName - Variance calculation in standby. It starts in $rmh hours.");
readingsSingleUpdate($myHash, "pvCorrectionFactor_Auto", "on (remains in standby for $rmh hours)", 0);
return; return;
} }