mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
57_SSCal: new module for Synology Calendar App (API)
git-svn-id: https://svn.fhem.de/fhem/trunk@21307 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8afc43622f
commit
7b1a90aad6
@ -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.
|
||||
- new: 57_SSCal: new module for Synology Calendar App (API)
|
||||
- feature: Add new AttrTemplate file for speech recognition
|
||||
- change: 70_DENON_AVR: improved soundMode readings (thx Shadow3561)
|
||||
- bugfix: 21_HEOSMaster: fix rename passwordstore bug
|
||||
|
5109
fhem/FHEM/57_SSCal.pm
Normal file
5109
fhem/FHEM/57_SSCal.pm
Normal file
File diff suppressed because it is too large
Load Diff
@ -48,6 +48,7 @@ eval "use FHEM::Meta;1" or my $modMetaAbsent = 1;
|
||||
|
||||
# Versions History intern
|
||||
my %SSCal_vNotesIntern = (
|
||||
"2.0.0" => "28.02.2020 check in release ",
|
||||
"1.15.0" => "27.02.2020 fix recurrence WEEKLY by DAY, MONTHLY by MONTHDAY and BYDAY, create commandref ",
|
||||
"1.14.0" => "23.02.2020 new setter \"calUpdate\" consistent for both models, calEventList and calToDoList are obsolete ",
|
||||
"1.13.0" => "22.02.2020 manage recurring entries if one/more of a series entry is deleted or changed and their reminder times ",
|
||||
@ -1830,10 +1831,10 @@ sub SSCal_extractEventlist ($) {
|
||||
|
||||
($nbhh,$nbmm,$nbss) = split(":", $nbtime);
|
||||
|
||||
if ($rDayOfWeekNew <= $rDayOfWeek) { # Nr aktueller Wochentag <= Sollwochentag
|
||||
if ($rDayOfWeekNew <= $rDayOfWeek) { # Nr nächster Wochentag <= Planwochentag
|
||||
$rDaysToAddOrSub = $rDayOfWeek - $rDayOfWeekNew;
|
||||
} else {
|
||||
$rDaysToAddOrSub = 7 - $rDayOfWeekNew + $rDayOfWeek;
|
||||
$rDaysToAddOrSub = 7 - $rDayOfWeekNew + $rDayOfWeek + (7 * ($interval-1));
|
||||
}
|
||||
|
||||
$rNewTime = SSCal_plusNSeconds($rNewTime, 86400 * $rDaysToAddOrSub, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user