From c5c9bcedc702101bc1e55010edbebea337b0df98 Mon Sep 17 00:00:00 2001 From: DS_Starter Date: Tue, 4 Oct 2022 21:43:55 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.68.5 git-svn-id: https://svn.fhem.de/fhem/trunk@26483 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index 465a8bfe9..0b0f7b018 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -8409,13 +8409,23 @@ sub checkPlantConfig { for my $sn (sort keys %{$stch}) { my $sp = $sn." => ".$sub->($sn)."
"; - $result->{'String Configuration'}{result} .= $sn." => ".$sub->($sn)."
"; + $result->{'String Configuration'}{note} .= $sn." => ".$sub->($sn)."
"; if (!isSolCastUsed ($hash)) { # Strahlungsdevice DWD - $result->{'String Configuration'}{fault} = 1 if($sp !~ /dir.*?peak.*?tilt/x); # Test Vollständigkeit: z.B. Süddach => dir: S, peak: 5.13, tilt: 45 + if ($sp !~ /dir.*?peak.*?tilt/x) { + $result->{'String Configuration'}{fault} = 1; # Test Vollständigkeit: z.B. Süddach => dir: S, peak: 5.13, tilt: 45 + } + else { + $result->{'String Configuration'}{result} = 'fullfilled'; + } } else { # Strahlungsdevice SolCast-API - $result->{'String Configuration'}{fault} = 1 if($sp !~ /peak.*?pk/x); # Test Vollständigkeit + if($sp !~ /peak.*?pk/x) { + $result->{'String Configuration'}{fault} = 1; # Test Vollständigkeit + } + else { + $result->{'String Configuration'}{result} = 'fullfilled'; + } } }