mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
57_Calendar: new attribute quirks with ignoreDtStamp value.
git-svn-id: https://svn.fhem.de/fhem/trunk@17422 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
360e06f3b2
commit
9d8d065781
@ -1,5 +1,8 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- change: 57_Calendar: new attribute quirks with ignoreDtStamp value.
|
||||||
|
- change: 57_Calendar: cutoffOlderThan also removes recurring events when
|
||||||
|
the series has ended.
|
||||||
- change: 55_DWD_OpenData: KML based forecast, readings have changed,
|
- change: 55_DWD_OpenData: KML based forecast, readings have changed,
|
||||||
attr forecastProperties must be updated (forum #83097)
|
attr forecastProperties must be updated (forum #83097)
|
||||||
- bugfix: 12_HProtocolGateway: Filllevel conversion corrected
|
- bugfix: 12_HProtocolGateway: Filllevel conversion corrected
|
||||||
|
@ -1685,7 +1685,7 @@ sub Calendar_Initialize($) {
|
|||||||
$hash->{NotifyFn}= "Calendar_Notify";
|
$hash->{NotifyFn}= "Calendar_Notify";
|
||||||
$hash->{AttrList}= "update:sync,async,none removevcalendar:0,1 " .
|
$hash->{AttrList}= "update:sync,async,none removevcalendar:0,1 " .
|
||||||
"cutoffOlderThan hideOlderThan hideLaterThan onCreateEvent " .
|
"cutoffOlderThan hideOlderThan hideLaterThan onCreateEvent " .
|
||||||
"ignoreCancelled:0,1 " .
|
"ignoreCancelled:0,1 quirks " .
|
||||||
"SSLVerify:0,1 defaultFormat defaultTimeFormat " .
|
"SSLVerify:0,1 defaultFormat defaultTimeFormat " .
|
||||||
$readingFnAttributes;
|
$readingFnAttributes;
|
||||||
}
|
}
|
||||||
@ -2719,11 +2719,15 @@ sub Calendar_UpdateCalendar($$) {
|
|||||||
|
|
||||||
my ($hash, $ical)= @_;
|
my ($hash, $ical)= @_;
|
||||||
|
|
||||||
|
my $name= $hash->{NAME};
|
||||||
|
|
||||||
|
my @quirks= split(",", AttrVal($name, "quirks", ""));
|
||||||
|
my $nodtstamp= "ignoreDTSTAMP" ~~ @quirks;
|
||||||
|
|
||||||
# *******************************
|
# *******************************
|
||||||
# *** Step 1 Digest Parser Result
|
# *** Step 1 Digest Parser Result
|
||||||
# *******************************
|
# *******************************
|
||||||
|
|
||||||
my $name= $hash->{NAME};
|
|
||||||
my $error= $ical->{error};
|
my $error= $ical->{error};
|
||||||
my $state= $ical->{state};
|
my $state= $ical->{state};
|
||||||
|
|
||||||
@ -2811,6 +2815,7 @@ sub Calendar_UpdateCalendar($$) {
|
|||||||
$cutoff= $t- $cutoffT;
|
$cutoff= $t- $cutoffT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach my $v (grep { $_->{type} eq "VEVENT" } @{$root->{entries}}) {
|
foreach my $v (grep { $_->{type} eq "VEVENT" } @{$root->{entries}}) {
|
||||||
|
|
||||||
# totally skip outdated calendar entries
|
# totally skip outdated calendar entries
|
||||||
@ -2857,7 +2862,7 @@ sub Calendar_UpdateCalendar($$) {
|
|||||||
# and same SEQUENCE
|
# and same SEQUENCE
|
||||||
#
|
#
|
||||||
if($v0->sameValue($v, "LAST-MODIFIED") &&
|
if($v0->sameValue($v, "LAST-MODIFIED") &&
|
||||||
$v0->sameValue($v, "DTSTAMP")) {
|
($nodtstamp || $v0->sameValue($v, "DTSTAMP"))) {
|
||||||
#
|
#
|
||||||
# is not modified
|
# is not modified
|
||||||
#
|
#
|
||||||
@ -3531,6 +3536,15 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
although they are cancelled.
|
although they are cancelled.
|
||||||
</li><p>
|
</li><p>
|
||||||
|
|
||||||
|
<li><code>quirks <values></code><br>
|
||||||
|
Parameters to handle special situations. <code><values></code> is
|
||||||
|
a comma-separated list of the following keywords:
|
||||||
|
<ul>
|
||||||
|
<li><code>ignoreDtStamp</code>: if present, a modified DTSTAMP attribute of a calendar event
|
||||||
|
does not signify that the calendar event was modified.</li>
|
||||||
|
</ul>
|
||||||
|
</li><p>
|
||||||
|
|
||||||
|
|
||||||
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
|
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -3993,6 +4007,17 @@ sub CalendarEventsAsHtml($;$) {
|
|||||||
Serie zurückgegeben werden, die gelöscht sind.
|
Serie zurückgegeben werden, die gelöscht sind.
|
||||||
</li><p>
|
</li><p>
|
||||||
|
|
||||||
|
<li><code>quirks <values></code><br>
|
||||||
|
Parameter für spezielle Situationen. <code><values></code> ist
|
||||||
|
eine mit Kommas getrennte Liste der folgenden Schlüsselwörter:
|
||||||
|
<ul>
|
||||||
|
<li><code>ignoreDtStamp</code>: wenn gesetzt, dann zeigt
|
||||||
|
ein verändertes DTSTAMP Attribut eines Termins nicht an, dass
|
||||||
|
der Termin verändert wurde.</li>
|
||||||
|
</ul>
|
||||||
|
</li><p>
|
||||||
|
|
||||||
|
|
||||||
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
|
<li><a href="#readingFnAttributes">readingFnAttributes</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user