You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Default calendar module: Yearly event is displayed monthly #3047
as i already wrote in my pull request the default calendar module displays my yearly birthday events every month.
I attached a ics file (needed to rename it to .txt to be able to upload) with one of the events that causes the problem.
The original ics is a google calendar.
It happened with the current development version (without my changes of the pull request).
{
module: "calendar",
position: "top_center",
config: {
timeFormat: "absolute",
fade: false,
nextDaysRelative: true,
displaySymbol: false,
dateFormat: "dddd MMM Do",
fullDayEventDateFormat: "dddd MMM Do",
maxTitleLength: 50,
//maximumNumberOfDays: 14,
calendars: [
{
url: "http://localhost:8080/modules/jahrestage.ics",
name: "Jahrestage", // <-- specify calendar name
broadcastPastEvents: true, // <-- need to broadcast past events
//maximumEntries: 7, // <-- assign enough number to prevent truncating new events by old events.
symbol: [], // <-- when you want to display simbol. If you don't want, just set as `symbol:[],`
}
]
},
},
I removed some personal data of the ics file (did not want to share google id and birthday with name of family and friends to the public).
I tried running the ics file with debug.js and the effect is the same with the modified and unmodfied version.
i created the entry with the pre installed calendar app on my Samsung phone.
I deleted the entry and re-created it. The result looks like the following:
I looked at the RRULE documentation, too and do have the same opinion as you. FREQ=YEARLY should be enough. I do not know if it is the app or if it is google that adds the bloat.
Edit:
What is very interesting is that entries i created earlier (all with the same phone) look different:
But the Samsung app showed "repeat until forever" even before i saved it again.
I think there was a bug in the Samsung Calendar app as i created some of the entries.
To me it looks like the RRule library has a problem if BYMONTHDAY is set without BYMONTH. But the lib could ignore this information as the interval is set to YEARLY.
But in short i do not think this is a problem of MagicMirror. Maybe it would be better if i create a issue in the rrule library project.
Activity
Tom-Hirschberger commentedon Feb 22, 2023
I removed some personal data of the ics file (did not want to share google id and birthday with name of family and friends to the public).
I tried running the ics file with
debug.jsand the effect is the same with the modified and unmodfied version.khassel commentedon Mar 1, 2023
I compared the provided ics with one of my birthday events and found that
RRULE:FREQ=YEARLY;WKST=MO;BYMONTHDAY=22seems to be problematic. My event contains only
RRULE:FREQ=YEARLYThe param
BYMONTHDAYseems to be the problem, I found some documentation for RRULE here.Looking in the examples section I found
Every Friday the 13th, 4 occurrences. >>> list(rrule(YEARLY, count=4, byweekday=FR, bymonthday=13, ... dtstart=parse("19970902T090000"))) [datetime.datetime(1998, 2, 13, 9, 0), datetime.datetime(1998, 3, 13, 9, 0), datetime.datetime(1998, 11, 13, 9, 0), datetime.datetime(1999, 8, 13, 9, 0)]so for me your RRULE looks working as designed. Question is why BYMONTHDAY and WKST are set in your google calendar?
Tom-Hirschberger commentedon Mar 1, 2023
Hi,
i created the entry with the pre installed calendar app on my Samsung phone.
I deleted the entry and re-created it. The result looks like the following:
Now everything looks normal if i run
debug.js.I looked at the RRULE documentation, too and do have the same opinion as you.
FREQ=YEARLYshould be enough. I do not know if it is the app or if it is google that adds the bloat.Edit:
What is very interesting is that entries i created earlier (all with the same phone) look different:
2nd Edit: The last entry of "Martin Huber" is not displayed in the debug.js
Tom-Hirschberger commentedon Mar 1, 2023
I edited the entry of "Martin Huber" with the phone and only saved (nothing changed still yearly) now it looks like:
khassel commentedon Mar 1, 2023
his next birthday would be 14.08.2023 but
untilis set to 13.08.2023 so this seems correct.Tom-Hirschberger commentedon Mar 1, 2023
But the Samsung app showed "repeat until forever" even before i saved it again.
I think there was a bug in the Samsung Calendar app as i created some of the entries.
Tom-Hirschberger commentedon Mar 1, 2023
To me it looks like the RRule library has a problem if
BYMONTHDAYis set withoutBYMONTH. But the lib could ignore this information as the interval is set to YEARLY.But in short i do not think this is a problem of MagicMirror. Maybe it would be better if i create a issue in the rrule library project.
Tom-Hirschberger commentedon Mar 1, 2023
Checked all my entries in the calendar. Only two entries had the problematic format. I changed them and saved the new and now everything looks fine.
khassel commentedon Apr 7, 2023
so can we close this issue @Tom-Hirschberger ?
Tom-Hirschberger commentedon Apr 7, 2023
Oh, sorry. Yes for sure.
I can close it, too.
nkl-kst commentedon Jan 30, 2025
Found this issue in the rrule lib: jkbrzt/rrule#275 Just in case someone wants to dig even deeper 🙂
sdetweil commentedon Jan 30, 2025
@nkl-kst thx. i already work on node-ical, and not going to work on rrule problems exposed by bad cal app
has anyone retried this w v2.30 as i made significant change to the input into rrule.between()
fix(calendar): keep yearly events in DTSTART's month when BYMONTH is …