remove debug messages
This commit is contained in:
parent
eb0d8bffcf
commit
0e176974e1
@ -2060,12 +2060,9 @@ sub IsDay($$) {
|
|||||||
my $isday = ( ShuttersSunrise( $hash, $shuttersDev, 'unix' ) >
|
my $isday = ( ShuttersSunrise( $hash, $shuttersDev, 'unix' ) >
|
||||||
ShuttersSunset( $hash, $shuttersDev, 'unix' ) ? 1 : 0 );
|
ShuttersSunset( $hash, $shuttersDev, 'unix' ) ? 1 : 0 );
|
||||||
|
|
||||||
print 'IsDay: ' . $isday . "\n";
|
|
||||||
|
|
||||||
$respIsDay = ( ($shutters->getDown eq 'brightness' and $shutters->getBrightness > $shutters->getBrightnessMinVal and $isday) ? 1 : 0 );
|
$respIsDay = ( ($shutters->getDown eq 'brightness' and $shutters->getBrightness > $shutters->getBrightnessMinVal and $isday) ? 1 : 0 );
|
||||||
print 'IsDayAbends: ' . $respIsDay . "\n";
|
|
||||||
$respIsDay = ( (($shutters->getUp eq 'brightness' and $shutters->getBrightness > $shutters->getBrightnessMaxVal and not $isday) or $respIsDay) ? 1 : 0 );
|
$respIsDay = ( (($shutters->getUp eq 'brightness' and $shutters->getBrightness > $shutters->getBrightnessMaxVal and not $isday) or $respIsDay) ? 1 : 0 );
|
||||||
print 'IsDayMorgens: ' . $respIsDay . "\n";
|
|
||||||
|
|
||||||
return $respIsDay;
|
return $respIsDay;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user