fix IsDay then brightness
This commit is contained in:
parent
047e9cdf6f
commit
c4f04cc634
@ -2486,6 +2486,8 @@ sub IsDay($$) {
|
|||||||
ShuttersSunset( $hash, $shuttersDev, 'unix' ) ? 1 : 0 );
|
ShuttersSunset( $hash, $shuttersDev, 'unix' ) ? 1 : 0 );
|
||||||
my $respIsDay = $isday;
|
my $respIsDay = $isday;
|
||||||
|
|
||||||
|
printf 'IsDay ist: ' . $respIsDay . "\n";
|
||||||
|
|
||||||
$respIsDay = (
|
$respIsDay = (
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
@ -2493,9 +2495,11 @@ sub IsDay($$) {
|
|||||||
and $isday
|
and $isday
|
||||||
)
|
)
|
||||||
or $shutters->getSunset
|
or $shutters->getSunset
|
||||||
) ? 1 : 0
|
) ? 0 : 1
|
||||||
) if ( $shutters->getDown eq 'brightness' );
|
) if ( $shutters->getDown eq 'brightness' );
|
||||||
|
|
||||||
|
printf 'IsDay Sunset ist: ' . $respIsDay . "\n";
|
||||||
|
|
||||||
$respIsDay = (
|
$respIsDay = (
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
@ -2507,6 +2511,8 @@ sub IsDay($$) {
|
|||||||
) ? 1 : 0
|
) ? 1 : 0
|
||||||
) if ( $shutters->getUp eq 'brightness' );
|
) if ( $shutters->getUp eq 'brightness' );
|
||||||
|
|
||||||
|
printf 'IsDay Sunrise ist: ' . $respIsDay . "\n";
|
||||||
|
|
||||||
return $respIsDay;
|
return $respIsDay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user