new version

This commit is contained in:
Marko Oldenburg 2018-10-31 09:58:23 +01:00
parent 9b088082ca
commit 891d400477

View File

@ -1365,7 +1365,8 @@ sub SunSetShuttersAfterTimerFn($) {
if ( $shutters->getModeDown eq $homemode
or $homemode eq 'none'
or $shutters->getModeDown eq 'always' ) {
or $shutters->getModeDown eq 'always' )
{
$shutters->setLastDrive('night close');
ShuttersCommandSet( $hash, $shuttersDev, $posValue );
}
@ -1642,14 +1643,14 @@ sub ShuttersSunrise($$$) {
and $ascDev->getSunriseTimeWeHoliday eq 'on' )
{
if ( not IsWeTomorrow() ) {
if ( IsWe()
if (
IsWe()
and int( gettimeofday() / 86400 ) == int(
(
computeAlignTime(
'24:00',
sunrise_abs(
$autoAstroMode,
0,
$autoAstroMode, 0,
$shutters->getTimeUpWeHoliday
)
) + 1