mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
# $Id added to get version information
git-svn-id: https://svn.fhem.de/fhem/trunk@3720 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2fae29cb9a
commit
48c199ef0f
@ -1,3 +1,4 @@
|
||||
# $Id
|
||||
##############################################################################
|
||||
#
|
||||
# 59_Twilight.pm
|
||||
|
@ -1,5 +1,4 @@
|
||||
|
||||
# $Id$
|
||||
# $Id
|
||||
##############################################################################
|
||||
#
|
||||
# 98_Heating_Control.pm
|
||||
|
@ -1,3 +1,4 @@
|
||||
# $Id
|
||||
##############################################################################
|
||||
#
|
||||
# 98_RandomTimer_Initialize.pm
|
||||
@ -135,7 +136,8 @@ sub RandomTimer_ExecRepeater($)
|
||||
|
||||
my $timeToStart = $now + 3600*($thour-$hour) + 60*($tmin-$min) + ($tsec-$sec);
|
||||
my $timeToStop = $now + 3600*($shour-$hour) + 60*($smin-$min) + ($ssec-$sec);
|
||||
$timeToStop += 24*3600 if ($timeToStart>=$timeToStop);
|
||||
$timeToStop += 24*3600 if ($timeToStart>=$timeToStop);
|
||||
$hash->{STATE} = strftime("%H:%M:%S",localtime($timeToStart));
|
||||
|
||||
my $timeToExec;
|
||||
my $function = "RandomTimer_ExecRepeater";
|
||||
@ -143,7 +145,6 @@ sub RandomTimer_ExecRepeater($)
|
||||
|
||||
my $midnight = $now + 24*3600 -(3600*$hour + 60*$min + $sec);
|
||||
$timeToExec = max ($timeToStop, $midnight) + 5*60;
|
||||
$hash->{STATE} = strftime("%H:%M:%S",localtime($timeToStart));
|
||||
delete $hash->{STARTTIME};
|
||||
|
||||
} else {
|
||||
@ -153,7 +154,6 @@ sub RandomTimer_ExecRepeater($)
|
||||
$timeToExec = $now + 1;
|
||||
$function = "RandomTimer_Exec";
|
||||
}
|
||||
$hash->{STATE} = strftime("%H:%M:%S",localtime($timeToExec));
|
||||
}
|
||||
|
||||
Log $logLevel, "[".$hash->{NAME}. "]"." Next timer ".strftime("%d.%m.%Y %H:%M:%S",localtime($timeToExec));
|
||||
|
Loading…
Reference in New Issue
Block a user