Read the statement by Michael Teeuw here.
Cant use showEnd icloud cal
-
I have posted an updated fixcaldates2
this also resolves the showEndsOnlyWithDuration
and adds support for showEnd:true with full day events (non-repeating)
like vacation mon-fri, all dayjust
git pull
to update…
this is my fork, not the official pull request at this timeif you are just getting this for the 1st time. do
git clone https://github.com/sdetweil/MagicMirror.git newmm cd newmm git checkout fixcaldates2 npm run install-mm
-
Sam,
The option
showEndsOnlyWithDuration
is not described yet on https://docs.magicmirror.builders/modules/calendar.html.The interaction / dependancy with
showEnd
also needs to be documented.I do not know if documentation issues also can / should be done on https://github.com/MagicMirrorOrg/MagicMirror.
-
Sam,
Whilst testing your last changes, I sort of see a need for a new date format parameter.
For an event with duration, spanning multiple days.
E.g.spanningDayEventDateFormat
.[TestCal: TIMESPAN_HOLIDAY]
BEGIN:VEVENT DTSTART:20241125T110000Z DTEND:20241127T160000Z DTSTAMP:20241026T091719Z UID:1lk06o70p9bp21ln3pdfda4ng0@google.com CREATED:20241026T090035Z LAST-MODIFIED:20241026T090035Z SEQUENCE:0 STATUS:CONFIRMED SUMMARY:TestCal: TIMESPAN_HOLIDAY TRANSP:OPAQUE END:VEVENT
For events with duration. spanning one night, like an overnight flight, it is not really necessary, but not really bad either.
[TestCal: OVERNIGHT_FLIGH]
BEGIN:VEVENT DTSTART:20241202T190000Z DTEND:20241203T030000Z DTSTAMP:20241026T091719Z UID:0s4flhmaf7p6q5atemshns4upp@google.com CREATED:20241026T090148Z LAST-MODIFIED:20241026T090215Z SEQUENCE:0 STATUS:CONFIRMED SUMMARY:TestCal: OVERNIGHT_FLIGHT TRANSP:OPAQUE END:VEVENT
The reasoning behind it is following:
For a ‘normal’, single, event I am not really interested in the full end date format (dateEndFormat
).
That is why I normally usedateEndFormat: "HH:mm"
.
But for an event with duration, spanning multiple days, the settingdateEndFormat: "ddd MMM D - HH:mm"
makes more sense.dateFormat: “ddd MMM D - HH:mm”
dateEndFormat: “HH:mm”
fullDayEventDateFormat: “ddd MMM D”
[good for normal events, ‘bad’ for spanning events]:
dateFormat: “ddd MMM D - HH:mm”
dateEndFormat: “ddd MMM D - HH:mm”
fullDayEventDateFormat: “ddd MMM D”
[‘bad’ for normal events, good for spanning events]:
I hope I could explain it well enough.
And that it makes sense. :-)Best regards,
E.J.
-
@evroom there is a documentation repo
-
@sdetweil said in Cant use showEnd icloud cal:
@evroom there is a documentation repo
Found it:
https://github.com/MagicMirrorOrg/MagicMirror-Documentation/issues
-
@evroom said in Cant use showEnd icloud cal:
@sdetweil said in Cant use showEnd icloud cal:
@evroom there is a documentation repo
Found it:
https://github.com/MagicMirrorOrg/MagicMirror-Documentation/issues
Opened:
https://github.com/MagicMirrorOrg/MagicMirror-Documentation/issues/266 -
@evroom and thinking about it, i think i just messed up the implementation (Which was broken already)
showEnd:true
should show the end for all events fullday or not
showEndsOnlyWithDuration:true should NOT show the end for full day events but DO show end for others ( because of showEnd:true)
-
@evroom i replied there
-
@evroom I just posted an update to fix showEndsOnlyWithDuration
doc added
-
@sdetweil said in Cant use showEnd icloud cal:
@evroom I just posted an update to fix showEndsOnlyWithDuration
Okay, so to recap (me talking to myself :-)):
It basically applies to a fullday event that spans multiple days.
Because a single fullday event has an equal start and end date.
And a fullday reoccurring event is just X times a single fullday event.Google Calendar makes it a bit more difficult to understand the begin and end dates (hence the need to calculate and adjust) :
TestCal: SINGLE_FULLDAY_EVENT
Thursday, October 31BEGIN:VEVENT
DTSTART;VALUE=DATE:20241031
DTEND;VALUE=DATE:20241101TestCal: FULLDAY_EVENT_SPANS_3_DAYS
November 1 – 3, 2024DTSTART;VALUE=DATE:20241101
DTEND;VALUE=DATE:20241104Here a fullday event that spans multiple days:
BEGIN:VEVENT DTSTART;VALUE=DATE:20241101 DTEND;VALUE=DATE:20241104 DTSTAMP:20241026T152207Z UID:2srults5ctu7t3n4piick00gv8@google.com CREATED:20241026T152154Z LAST-MODIFIED:20241026T152154Z SEQUENCE:0 STATUS:CONFIRMED SUMMARY:TestCal: FULLDAY_EVENT_SPANS_3_DAYS TRANSP:TRANSPARENT END:VEVENT
‘prevent’ means: when set to false (default), you will see the end date.
When set to true, you will not see the end date.Test with latest updates (git pull on Sat 26 Oct 16:51:00 CEST 2024):
showEnd: true. showEndsOnlyWithDuration: false,
!
showEnd: true. showEndsOnlyWithDuration: true,
!