MagicMirror icon indicating copy to clipboard operation
MagicMirror copied to clipboard

Calendar: Repeating events with time are not displayed

Open Psycho0verload opened this issue 3 years ago • 7 comments

Calendar: Repeating events with time are not displayed

Enviroment

  • Raspberry Pi 3
  • Raspbian GNU/Linux 11 (bullseye)
  • PM2 5.1.2
  • npm 8.3.1
  • node v16.14.0
  • MM 2.18.0
  • Calendar selfhostet Nextcloud

Problem:

  • ❌ A repeating event with a fixed time is not displayed in the calendar.

Working:

  • ✅ Repeat of the full day event is displayed
  • ✅ A non-repeating event with a fixed time is displayed
  • ✅ A non-repeating full day event is displayed

Configuration

{
    module: "calendar",
    header: "Tagesübersicht",
    classes: "daily-overview",
    position: "middle_center",
    config: {
        carouselId: "1",
        tableClass: "large daily-overview-table wachenaufgaben",
        fetchInterval: 600000, /* 600000 */
        maxTitleLength: 50,
        displaySymbol: true,
        showLocation: false,
        maxTitleLines: 1,
        maximumEntries: 9,
        maximumNumberOfDays: 1,
        calendars: [
            {
                url: 'https://mydomain.it/remote.php/dav/public-calendars/ZMGgBLGxxxxxDw?export',
                symbolClass: 'todo-symbol',
                titleClass: 'todo-title',
                timeClass: 'todotime',
                symbol: 'clipboard-list-check'
            },
            {
                url: 'https://mydomain.it/remote.php/dav/public-calendars/WW49cKGxxxxxq8?export',
                symbolClass: 'clean-symbol',
                titleClass: 'clean-title',
                timeClass: 'clean-time',
                symbol: 'vacuum',
            },
            {
                url: 'https://mydomain.it/remote.php/dav/public-calendars/eMQW6xxxxxbXq?export',
                symbolClass: 'info-symbol',
                titleClass: 'info-title',
                timeClass: 'info-time',
                symbol: 'circle-info',
                maximumNumberOfDays: 7,
            }
        ]
    }
},

Expected Results

It would be desirable to display repeating events with time as well as it works with all day events.

Actual Results

The event disappears completely as soon as it is no longer an all-day event.

Bug Hunt

https://forum.magicmirror.builders/topic/16372/calendar-repeating-events-with-time-are-not-displayed

Psycho0verload avatar Feb 17 '22 11:02 Psycho0verload

can you download the ics file, it's just a text file, and post a copy of the vevent that describes the problem?

sdetweil avatar Feb 17 '22 13:02 sdetweil

I am aware of this and I will look for the part for you.

✅ This is a part of a working all-day event:

BEGIN:VEVENT
TRANSP:TRANSPARENT
DTEND;VALUE=DATE:20220218
DTSTART;VALUE=DATE:20220217
UID:35D31850-D8E9-4492-9A5D-8E03A9F0C67B
DTSTAMP:20220216T165518Z
URL;VALUE=URI:
SEQUENCE:1
X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC
SUMMARY:Routinedesinfektion 21/85-1
LAST-MODIFIED:20220216T195543Z
CREATED:20220213T150226Z
RRULE:FREQ=WEEKLY;INTERVAL=1
BEGIN:VALARM
X-WR-ALARMUID:C072B374-4BDA-44A8-A9AE-D850196A2C07
UID:C072B374-4BDA-44A8-A9AE-D850196A2C07
TRIGGER;VALUE=DATE-TIME:19760401T005545Z
ACTION:NONE
END:VALARM
END:VEVENT

❌ part of a non full day event, which does not work and is not displayed completely

BEGIN:VEVENT
CREATED:20220217T151747Z
UID:C8F173C5-D2E4-41C9-A53C-F3B30A498241
RRULE:FREQ=WEEKLY;INTERVAL=1
DTEND;TZID=Europe/Berlin:20220217T190000
TRANSP:OPAQUE
X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC
SUMMARY:Testevent
LAST-MODIFIED:20220217T152139Z
DTSTAMP:20220217T151800Z
DTSTART;TZID=Europe/Berlin:20220217T090000
SEQUENCE:1
END:VEVENT
Bildschirmfoto 2022-02-17 um 16 25 34

Psycho0verload avatar Feb 17 '22 15:02 Psycho0verload

It also makes no difference whether I enter it in the web interface of nextcloud or in the calendar app from apple.

Psycho0verload avatar Feb 17 '22 15:02 Psycho0verload

@Psycho0verload the event is inside the relative window, so shown as tomorrow or Thursday

change relative and look at urgency

sdetweil avatar Mar 16 '22 12:03 sdetweil

@Psycho0verload were u able to resolve this?

sdetweil avatar Mar 27 '22 17:03 sdetweil

What do you mean? So at what point should I change something?

It is difficult to change something in the source code of the appointment itself, because the end user is not able to do that.

I have now tested the whole thing again with: timeFormat: absolute / relative / dateheaders

In any case the date is displayed correctly as long as it is not repeated.

I don't see any more value to set the option urgency, because in every display whether absolute, relative or dateheaders the error occurs.

Psycho0verload avatar Mar 28 '22 13:03 Psycho0verload

@Psycho0verload

looking back over this., with the failing cal entry above,

RRULE:FREQ=WEEKLY;INTERVAL=1
  DTEND;TZID=Europe/Berlin:20220217T190000  // indented to align date/time for discussion
DTSTART;TZID=Europe/Berlin:20220217T090000

it starts and ends on the same day, and requests weekly... so would only show one event.

actually two issues here

  1. this is NOT a full day event, as those have no time
  2. from your screen shot, MM was run at 16:15, which is after 09:00, when the event starts, we do not show events that started in the past

and there is a bug actually..

if the date (start and end) is in the future, you get events for a year from now.. oops.. it doesn't honor the end date

sdetweil avatar Jul 21 '22 20:07 sdetweil

seems not to be a bug, can this be closed @sdetweil ?

khassel avatar Oct 02 '22 22:10 khassel

yes, can close

sdetweil avatar Oct 03 '22 13:10 sdetweil

please close @Psycho0verload @MichMich

khassel avatar Oct 03 '22 17:10 khassel