2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

57_SSCal: contrib 1.12.0

git-svn-id: https://svn.fhem.de/fhem/trunk@21221 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2020-02-18 08:48:21 +00:00
parent 431db1890b
commit d0c61af004

View File

@ -48,7 +48,7 @@ eval "use FHEM::Meta;1" or my $modMetaAbsent = 1;
# Versions History intern
my %SSCal_vNotesIntern = (
"1.12.0" => "15.02.2020 create At-devices from calendar entries if FHEM-commands or Perl-routines detected in \"Summary\" ",
"1.12.0" => "15.02.2020 create At-devices from calendar entries if FHEM-commands or Perl-routines detected in \"Summary\", minor fixes ",
"1.11.0" => "14.02.2020 new function SSCal_doCompositeEvents to create Composite Events for special notify use in FHEM ",
"1.10.0" => "13.02.2020 new key cellStyle for attribute tableSpecs, avoid FHEM crash when are design failures in tableSpecs ",
"1.9.0" => "11.02.2020 new reading Weekday with localization, more field selection for overview table ",
@ -1607,7 +1607,7 @@ sub SSCal_extractEventlist ($) {
if ($p1 eq "FREQ") {
$freq = $p2;
} elsif ($p1 eq "COUNT") { # Event endet automatisch nach x Wiederholungen
$count = $p2-1;
$count = $p2;
} elsif ($p1 eq "INTERVAL") { # Wiederholungsintervall
$interval = $p2;
} elsif ($p1 eq "UNTIL") { # festes Intervallende angegeben
@ -1633,6 +1633,8 @@ sub SSCal_extractEventlist ($) {
Log3($name, 4, "$name - Recurring params - FREQ: $freq, COUNT: $count, INTERVAL: $interval, BYMONTHDAY: $bymonthday, BYDAY: $byday, UNTIL: $until");
$count--; # Korrektur Anzahl Wiederholungen, COUNT ist Gesamtzahl der Ausführungen !
if ($freq eq "YEARLY") { # jährliche Wiederholung
for ($ci=-1; $ci<($count*$interval); $ci+=$interval) {
$byear += ($ci>=0?1:0);