From 68c3ff0a3de4a4a9714e43782922c8518220a110 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Sun, 30 Oct 2022 13:28:56 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.72.1 git-svn-id: https://svn.fhem.de/fhem/trunk@26624 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 9cc755fd4..b5c061cdb 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -130,7 +130,7 @@ BEGIN { # Versions History intern my %vNotesIntern = ( - "0.72.1" => "30.10.2022 fix 'connection lost ...' issue again ", + "0.72.1" => "30.10.2022 fix 'connection lost ...' issue again, global language check in checkPlantConfig ", "0.72.0" => "30.10.2022 rename some graphic attributes ", "0.71.4" => "29.10.2022 flowgraphic some changes (https://forum.fhem.de/index.php/topic,117864.msg1241836.html#msg1241836) ", "0.71.3" => "28.10.2022 new circular keys tdayDvtn, ydayDvtn for calculation PV forecast/generation in header ", @@ -9281,10 +9281,17 @@ 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 and avoid the 'connection lost' message.
}; + $result->{'Common Settings'}{note} .= qq{Setting attribute 'event-on-change-reading = .*' is recommended to improve the runtime performance.
}; $result->{'Common Settings'}{info} = 1; } + if ($lang ne 'DE') { + $result->{'Common Settings'}{state} = $info; + $result->{'Common Settings'}{result} .= qq{The global attribute 'language' is set to '$lang'.
}; + $result->{'Common Settings'}{note} .= qq{Setting attribute 'language = DE' is recommended. When set like this, most of the outputs are in German.
}; + $result->{'Common Settings'}{info} = 1; + } + ## allg. Settings bei Nutzung SolCast ####################################### if (isSolCastUsed ($hash)) { @@ -9341,7 +9348,7 @@ sub checkPlantConfig { $result->{'Common Settings'}{result} = $hqtxt{fullfd}{$lang}; $result->{'Common Settings'}{note} .= qq{checked parameter:
}; $result->{'Common Settings'}{note} .= qq{cloudFactorDamping, rainFactorDamping, optimizeSolCastAPIreqInterval
}; - $result->{'Common Settings'}{note} .= qq{pvCorrectionFactor_Auto, event-on-change-reading
}; + $result->{'Common Settings'}{note} .= qq{pvCorrectionFactor_Auto, event-on-change-reading, global language
}; } }