Multiple days syntax not supported by plugin due to this code:.
Code: Select all
my @wdays = qw/sun mon tue wed thu fri sat/;
....
my (undef, $min, $hour, undef, undef, undef, $wday) = localtime;
....
next unless $config{$prefix} =~ /^(?:all|$wdays[$wday])$/i;
Use 2 different blocks:
Code: Select all
autoBreakTime wed {
startTime 01:00
stopTime 02:00
}
autoBreakTime tue {
startTime 01:00
stopTime 02:00
}
BUT if you change
this line in
breakTime.pl:
Code: Select all
next unless $config{$prefix} =~ /^(?:all|$wdays[$wday])$/i;
to
this line:
Code: Select all
next unless split /\s+/, $config{$prefix} =~ /all|$wdays[$wday]/i;
it will work like this:
Code: Select all
autoBreakTime wed tue {
startTime 01:00
stopTime 02:00
}