mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 16:05:19 +00:00
76_SolarForecast.pm: contrib 0.68.5
git-svn-id: https://svn.fhem.de/fhem/trunk@26483 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4a1b9f5550
commit
2c117e16f6
@ -8409,13 +8409,23 @@ sub checkPlantConfig {
|
|||||||
|
|
||||||
for my $sn (sort keys %{$stch}) {
|
for my $sn (sort keys %{$stch}) {
|
||||||
my $sp = $sn." => ".$sub->($sn)."<br>";
|
my $sp = $sn." => ".$sub->($sn)."<br>";
|
||||||
$result->{'String Configuration'}{result} .= $sn." => ".$sub->($sn)."<br>";
|
$result->{'String Configuration'}{note} .= $sn." => ".$sub->($sn)."<br>";
|
||||||
|
|
||||||
if (!isSolCastUsed ($hash)) { # Strahlungsdevice DWD
|
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
|
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';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user