Read the statement by Michael Teeuw here.
Calendar Module not working with Google Calendar
-
/MagicMirror $ grep version package.json "version": "2.26.0",
-
@AnduriI bizarre.
can u turn on debug in config.js
add
,"DEBUG"
to the loglevel: list
then let’s use non pm2 to capture the info
pm2 stop all cd ~/MagicMirror npm start >somefile.txt 2>&1
wait til u think the error occurs
ctrl-qto top mm
then look at the somefile.txt
search for the isostring
you should see dates=
for each eventthe problem was the rule.between function which calculates the repeating events would return junk
I put in a filter to remove the junk.anyhow, then remove the DEBUG
thing from config.jsand you can use pm2 to restart mm til we figure it out
if u can, send the somefile.txt to me via email
my userid here at gmail -
@sdetweil wow I was not aware of all old events also being sent and parsed… from 5+ years ago. That’s a lot of entries… (more than 1500 only for my main calendar)
I sent the log via eMail to you. -
@AnduriI yes, the ics holds all that junk
-
@AnduriI are u willing to share one of the trouble cal urls so I can debug?
send in a private chat. not via mail. after use I will delete the data and the chat.
-
@AnduriI also try this
cd ~/MagicMirror npm install electron@28.1.1
-
@sdetweil, would you mind sharing how you set up a filter for the events? I have a suspicion that too many events are causing some items to now show up on calendar.
-
@redink there are no backend (at the ICS parser) filters
on the front end (browser display) there are the following config options that affect event display
maximumEntries,
maximumNumberOfDays,
hidePrivate,
hideOngoing and
hideDuplicatesthe default calendar module NEVER displays events before today. but it will broadcast them for other modules to use ( MMM-CalendarExt3* uses them)
sadly the parser does NOT indicate where today is in the stream of events parsed (the ICS has EVERYTHING in it). the only way to fix this is to make a breaking change, and send two lists, old and future
because of the single list , maximumEntries , CAN/DOES cause the event list to get clipped before any current events can be processed.
-
@sdetweil ok, that makes sense.
My issue is really strange where my two recurring weekly events only show up during the first two weeks of the month, and are ignored the rest of the time until the next month. I even tested installed thunderbird to open the ICS file to check that the issue isn’t with google calendar. Thunderbird displays the recurring events just fine.
It’s making me think if I should hack together some kind a pre-processor to only return events that are relevant to the view.
-
@redink yes, new rrule is having trouble…
lets go back to the prior parser
cd ~/MagicMirror npm install node-ical@0.16.1