From cc41e547a3411724cd88a8a2c8e17ae2eab880e9 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sat, 27 Apr 2019 16:30:09 +0000 Subject: [PATCH] 98_WeekdayTimer: remove Twilight dependency git-svn-id: https://svn.fhem.de/fhem/trunk@19269 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/98_WeekdayTimer.pm | 6 +----- fhem/MAINTAINER.txt | 6 +++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index c7a77b074..47726780d 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 98_WeekdayTimer: remove 59_Twilight dependency - feature: 73_AutoShuttersControl: new major release 0.6, add wind support, chnage code and Attribut style - feature: 93_DbLog: V4.1.0 from contrib, write function rewritten, new attr diff --git a/fhem/FHEM/98_WeekdayTimer.pm b/fhem/FHEM/98_WeekdayTimer.pm index 33531178a..c18ef9e8c 100644 --- a/fhem/FHEM/98_WeekdayTimer.pm +++ b/fhem/FHEM/98_WeekdayTimer.pm @@ -37,11 +37,6 @@ $Data::Dumper::Sortkeys = 1; sub WeekdayTimer_Initialize($){ my ($hash) = @_; - if(!$modules{Twilight}{LOADED} && -f "$attr{global}{modpath}/FHEM/59_Twilight.pm") { - my $ret = CommandReload(undef, "59_Twilight"); - Log3 undef, 1, $ret if($ret); - } - # Consumer $hash->{SetFn} = "WeekdayTimer_Set"; $hash->{DefFn} = "WeekdayTimer_Define"; @@ -1196,6 +1191,7 @@ sub WeekdayTimer_SetAllParms() { # {WeekdayTimer_SetAllParms()} It is possible to define $we or !$we in daylist to easily allow weekend an holiday. $we !$we are coded as 7 8, when using a numeric daylist.

time:define the time to switch, format: HH:MM:[SS](HH in 24 hour format) or a Perlfunction like {sunrise_abs()}. Within the {} you can use the variable $date(epoch) to get the exact switchingtimes of the week. Example: {sunrise_abs_dat($date)}

parameter:the parameter to be set, using any text value like on, off, dim30%, eco or comfort - whatever your device understands.
+ NOTE: Use ":" to replace blanks in parameter and escape ":" in case you need it. So e.g. on-till:06\:00 will be a valid parameter.