MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Default Calendar- fulldayevent recognition



  • Hi,
    I’m creating the iCalendar file via php from your company calendar. But magicmirror calendar module sometimes recognize the vevent as fullday, sometimes as normal event. But all event all fullday.

    Here is part of my ics:

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:PHP
    METHOD:PUBLISH
    CALSCALE:GREGORIANX-WR-CALNAME:CSS calendar
    X-WR-TIMEZONE:Europe/Prague
    BEGIN:VEVENT
    DTSTART;VALUE=DATE:20180427
    DTEND;VALUE=DATE:20180501
    DTSTAMP:20180426T143001Z
    DESCRIPTION:Absence
    SUMMARY:Dovolená: EKT
    UID:1174
    END:VEVENT
    BEGIN:VEVENT
    DTSTART;VALUE=DATE:20180427
    DTEND;VALUE=DATE:20180428
    DTSTAMP:20180426T143001Z
    DESCRIPTION:Absence
    SUMMARY:Dovolená: TRC F1
    UID:1190
    END:VEVENT
    

    But as you can see, it’s normal event in EKT, and fullday in TRC F1.
    Today is 26.4., both event start tomorrow (zítra).

    0_1524750665265_fd95d27a-7e43-4628-9093-b621f9563d40-image.png

    Config file:

    {
                            module: "calendar",
                            header: "Company project calendar",
                            position: "top_left",
                            config: {
                                    calendars: [
                                             {
                                                    symbol: "plane",
                                                    url: "event_calendar.ics"
                                            }
                                            ],
                                    maximumEntries: 15,
                                    fetchInterval: 1800000,
                                    timeFormat: 'absolute',
                                    fullDayEventDateFormat: 'ddd DD MMM',
                                    dateFormat: 'ddd DD MMM',
                                    urgency: 2
                            }
                    },
    

    Could somebody help me, where should be problem? Thank you!


  • Module Developer

    I had the same problem with my cities Garbage collection calendar

    First i checked their calendar with Validator

    I have solved the issue by giving whole day events a start time and an endtime

    DTSTART;VALUE=DATE:20180427T0000
    DTEND;VALUE=DATE:20180428T2359
    

    It is an issue in MagicMirror



  • @Charley said in Default Calendar- fulldayevent recognition:

    I had the same problem with my cities Garbage collection calendar

    First i checked their calendar with Validator

    I have solved the issue by giving whole day events a start time and an endtime

    DTSTART;VALUE=DATE:20180427T0000
    DTEND;VALUE=DATE:20180428T2359
    

    It is an issue in MagicMirror

    Thank you for your reply, but this doesn’t work. If I added the time into wholeday statement, magicmirror show’s Invalid date and in validator are errors too.

    0_1525074432129_ef11b503-a7e6-40da-8e06-d7056057156e-image.png

    0_1525074470269_36137230-8ca6-4a48-a4a4-42f10cfe8631-image.png

    I’ll try another solution.