From 1231d595c56d97618e7650ba1cdcc2abc5b89804 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Fri, 28 Oct 2022 09:40:53 +0000 Subject: [PATCH] 76_Solarforcast: contrib 0.71.2 git-svn-id: https://svn.fhem.de/fhem/trunk@26606 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 36 +++++++++++---------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 181e78fe8..bf41ba006 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -530,14 +530,14 @@ my %hqtxt = ( DE => qq{Stand:} }, wfmdcf => { EN => qq{Wait for more days with a consumption figure}, DE => qq{Warte auf weitere Tage mit einer Verbrauchszahl} }, - autoct => { EN => qq{automatic correction:}, - DE => qq{automatische Korrektur:} }, + autoct => { EN => qq{Autocorrection:}, + DE => qq{Autokorrektur:} }, plntck => { EN => qq{Plant Configurationcheck Information}, DE => qq{Informationen zur Anlagenkonfigurationsprüfung} }, - lbpcq => { EN => qq{correction quality current hour:}, - DE => qq{Korrekturqualität akt. Stunde:} }, + lbpcq => { EN => qq{Quality:}, + DE => qq{Qualität:} }, lblPvh => { EN => qq{next 4h:}, - DE => qq{nächste 4h:} }, + DE => qq{nächste 4h:} }, lblPRe => { EN => qq{remain today:}, DE => qq{Rest heute:} }, lblPTo => { EN => qq{tomorrow:}, @@ -575,6 +575,8 @@ my %htitles = ( DE => qq{Ein -> Verbraucher ausschalten} }, iens => { EN => qq{On -> no off-command defined!}, DE => qq{Ein -> kein off-Kommando definiert!} }, + natc => { EN => qq{automatic cycle:}, + DE => qq{automatischer Zyklus:} }, upd => { EN => qq{Click for update}, DE => qq{Klick für Update} }, on => { EN => qq{switched on}, @@ -2989,7 +2991,7 @@ sub centralTask { if($init_done == 1) { if(!$interval) { $hash->{MODE} = "Manual"; - readingsSingleUpdate($hash, "nextCycletime", "Manual", 1); + readingsSingleUpdate($hash, 'nextCycletime', 'Manual', 1); } else { my $new = gettimeofday()+$interval; @@ -2997,7 +2999,7 @@ sub centralTask { if(!IsDisabled($name)) { $hash->{MODE} = "Automatic - next Cycletime: ".FmtTime($new); - readingsSingleUpdate($hash, "nextCycletime", FmtTime($new), 1); + readingsSingleUpdate($hash, 'nextCycletime', FmtTime($new), 1); } } @@ -6505,8 +6507,8 @@ sub _graphicHeader { my $lupt = $hqtxt{lupt}{$lang}; my $autoct = $hqtxt{autoct}{$lang}; - my $lbpcq = encode("utf8", $hqtxt{lbpcq}{$lang}); - my $lblPv4h = encode("utf8", $hqtxt{lblPvh}{$lang}); + my $lbpcq = $hqtxt{lbpcq}{$lang}; + my $lblPv4h = $hqtxt{lblPvh}{$lang}; my $lblPvRe = $hqtxt{lblPRe}{$lang}; my $lblPvTo = $hqtxt{lblPTo}{$lang}; my $lblPvCu = $hqtxt{lblPCu}{$lang}; @@ -6585,8 +6587,9 @@ sub _graphicHeader { ## Update-Icon ################ + my $naup = ReadingsVal ($name, 'nextCycletime', ''); if ($upstate =~ /updated|successfully|switched/ix) { - $img = FW_makeImage('10px-kreis-gruen.png', $htitles{upd}{$lang}); + $img = FW_makeImage('10px-kreis-gruen.png', $htitles{upd}{$lang}.' ('.$htitles{natc}{$lang}.' '.$naup.')'); $upicon = "$img"; } elsif ($upstate =~ /running/ix) { @@ -6598,7 +6601,7 @@ sub _graphicHeader { $upicon = "$img"; } else { - $img = FW_makeImage('10px-kreis-rot.png', $htitles{upd}{$lang}); + $img = FW_makeImage('10px-kreis-rot.png', $htitles{upd}{$lang}.' ('.$htitles{natc}{$lang}.' '.$naup.')'); $upicon = "$img"; } @@ -6609,8 +6612,7 @@ sub _graphicHeader { $acicon = FW_makeImage('10px-kreis-gruen.png', $htitles{on}{$lang}); } elsif ($pcfa eq "off") { - $htitles{akorron}{$lang} =~ s//$name/xs; - #$acicon = "-"; + $htitles{akorron}{$lang} =~ s//$name/xs; $acicon = FW_makeImage('-', $htitles{akorron}{$lang}); } elsif ($pcfa =~ /standby/ix) { @@ -6651,9 +6653,9 @@ sub _graphicHeader { $header .= qq{ $api }; $header .= qq{}; $header .= qq{}; - $header .= qq{ }; - $header .= qq{ $autoct   $acicon }; - $header .= qq{ $lbpcq   $pcqicon }; + $header .= qq{ }; + $header .= qq{ $autoct   $acicon   $lbpcq   $pcqicon }; + $header .= qq{ }; $header .= qq{}; } @@ -9199,7 +9201,7 @@ sub checkPlantConfig { if (!$eocr) { $result->{'Common Settings'}{state} = $info; $result->{'Common Settings'}{result} .= qq{Attribute 'event-on-change-reading' is not set.
}; - $result->{'Common Settings'}{note} .= qq{Setting attribute 'event-on-change-reading' is recommended to improve the runtime performance.
}; + $result->{'Common Settings'}{note} .= qq{Setting attribute 'event-on-change-reading = .*' is recommended to improve the runtime performance and avoid the 'connection lost' message.
}; $result->{'Common Settings'}{info} = 1; }