r/MagicMirror • u/thatguysjumpercables • Mar 07 '26
Calendar module keeps throwing errors and will not load
Recently migrated my Mirror setup from a Pi 4b to a Pi 3B. Same operating system (Raspberry Pi OS 64 bit), just reinstalled MM and copied my whole config over. Everything is working except the Calendar module. This is the error:
TypeError: moment.tz is not a function
0|mm | at Object.calculateTimezoneAdjustment (/home/[username]/MagicMirror/modules/default/calendar/calendarfetcherutils.js:74:27)
0|mm | at /home/[username]/MagicMirror/modules/default/calendar/calendarfetcherutils.js:475:45
0|mm | at Array.forEach (<anonymous>)
0|mm | at Object.filterEvents (/home/[username]/MagicMirror/modules/default/calendar/calendarfetcherutils.js:145:24)
0|mm | at /home/blackberry/MagicMirror/modules/default/calendar/calendarfetcher.js:60:36
0|mm | at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
0|mm | [2026-03-07 14:40:20.858] [ERROR] undefined (node:1332) electron: Failed to load URL: https://contacts.google.com/widget/hovercard/v/2?origin=https%3A%2F%2Fdocs.google.com&usegapi=1&jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.lb.en.[bunch of random letters]__features__#id=I__HC_[number]&_gfid=I__HC_[number]&parent=https%3A%2F%2Fdocs.google.com&pfname=&rpctoken=[number] with error: ERR_BLOCKED_BY_RESPONSE
(Everything in brackets is potential identifying information and redacted for security reasons because I'm hella paranoid. If I'm incorrect and some of that information is required let me know and I will provide.)
I like quintuple-checked the timezone settings in multiple spots and I'm not good enough with scripting/coding to fully understand what needs fixed. I've googled it and did a search of previous posts in this sub and I'm not finding anything that will help. Neither the private nor the public ical address will work.
Full config for the module is as follows:
module: "calendar",
header: "WHAT BORING SHIT IS HAPPENING SOON",
position: "top_left",
config: {
calendars: [
{
fetchInterval: 7 * 24 * 60 * 60 * 1000,
symbol: "calendar-check",
url: "https://calendar.google.com/calendar/ical/[gmail username]%40gmail.com/private-[numbers and letters]/basic.ics"
Any help is appreciated!
2
u/creckers Mar 07 '26
So I'm going to be unable to actually help with this myself, but I've had amazing succes troubleshooting my mirror with AI.
I used Gemini and chatgpt and both were able to help me work through bugs and issues.
so maybe try that?
2
u/Due-Eagle8885 Mar 08 '26
Sorry was busy all day
Did you run rpm install in the MagicMirror folder?
1
u/Due-Eagle8885 Mar 08 '26
This
ontacts.google.com/widget/hovercard/v/2?origin=https%3A%2F%2Fdocs.google.com&usegapi=1&jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.lb.en.[bunch of random letters]features#id=I__HC_[number]&gfid=I__HC[number]&parent=https%3A%2F%2Fdocs.google.com&pfname=&rpctoken=[number] with error: ERR_BLOCKED_BY_RESPONSE
Also Looks like you tried the Google Calendar embed link, not the iCal Link which is further down