Read the statement by Michael Teeuw here.
Unable to link Google calandar with calendar Module
-
I am trying to populate the Calendar Module with details from my google calendar. I have detailed below the Config file I am running and the Error message in the terminal:
**Config file details** { module: "calendar", header: "uk Holidays", position: "top_center", config: { calendars: [ { fetchInterval: 7 * 24 * 60 * 60 * 1000, symbol: "calendar-check", url: "https://calendar.google.com/calendar/embed?src=john%40totrain.co.uk&ctz=Europe%2FLondon" //url: "https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics" } ] } },Terminal Error message:
synint@raspberrypi:~/MagicMirror $ npm run start> magicmirror@2.27.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [2024-04-10 20:29:35.630] [LOG] Starting MagicMirror: v2.27.0 [2024-04-10 20:29:35.709] [LOG] Loading config ... [2024-04-10 20:29:35.718] [LOG] config template file not exists, no envsubst [2024-04-10 20:29:35.732] [LOG] Loading module helpers ... [2024-04-10 20:29:35.739] [LOG] No helper found for module: MMM-OpenmapWeather. [2024-04-10 20:29:35.743] [LOG] No helper found for module: alert. [2024-04-10 20:29:36.453] [LOG] Initializing new module helper ... [2024-04-10 20:29:36.455] [LOG] Module helper loaded: updatenotification [2024-04-10 20:29:36.459] [LOG] No helper found for module: clock. [2024-04-10 20:29:36.868] [LOG] Initializing new module helper ... [2024-04-10 20:29:36.869] [LOG] Module helper loaded: calendar [2024-04-10 20:29:37.168] [LOG] Initializing new module helper ... [2024-04-10 20:29:37.169] [LOG] Module helper loaded: newsfeed [2024-04-10 20:29:37.170] [LOG] All module helpers loaded. [2024-04-10 20:29:37.199] [LOG] Starting server on port 8080 ... [2024-04-10 20:29:40.028] [LOG] Server started ... [2024-04-10 20:29:40.032] [LOG] Connecting socket for: updatenotification [2024-04-10 20:29:40.036] [LOG] Starting module helper: updatenotification [2024-04-10 20:29:40.038] [LOG] Connecting socket for: calendar [2024-04-10 20:29:40.061] [LOG] Starting node helper for: calendar [2024-04-10 20:29:40.062] [LOG] Connecting socket for: newsfeed [2024-04-10 20:29:40.064] [LOG] Starting node helper for: newsfeed [2024-04-10 20:29:40.066] [LOG] Sockets connected & modules started ... [2024-04-10 20:29:41.284] [LOG] Launching application. [2024-04-10 20:29:49.222] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/embed?src=john%40totrain.co.uk&ctz=Europe%2FLondon - Interval: 604800000 [2024-04-10 20:29:49.775] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 [2024-04-10 20:29:49.807] [INFO] updatenotification: Updater Class Loaded! [2024-04-10 20:29:49.809] [INFO] updatenotification: Checking PM2 using... [2024-04-10 20:29:49.827] [INFO] Checking git for module: MMM-OpenmapWeather [2024-04-10 20:29:50.048] [INFO] updatenotification: [PM2] You are not using pm2 [2024-04-10 20:29:50.306] [INFO] Checking git for module: MagicMirror [2024-04-10 20:29:50.982] [ERROR] Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/embed?src=john%40totrain.co.uk&ctz=Europe%2FLondon Error: Unauthorized at NodeHelper.checkFetchStatus (/home/synint/MagicMirror/js/node_helper.js:110:9) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [2024-04-10 20:29:52.010] [INFO] Newsfeed-Fetcher: Broadcasting 28 items. [2024-04-10 20:29:53.432] [INFO] System information: ### SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 3 Model B Plus Rev 1.3; raspberry: [object Object]; virtual: false ### OS: platform: linux; distro: Raspbian GNU/Linux; release: 11; arch: arm; kernel: 6.1.21-v7+ ### VERSIONS: electron: 29.1.6; used node: 20.9.0; installed node: 21.7.1; npm: 10.5.0; pm2: 5.3.1 ### OTHER: timeZone: Europe/London; ELECTRON_ENABLE_GPU: undefined [4483:0410/203006.520013:ERROR:atom_cache.cc(229)] Add WM_CHANGE_STATE to kAtomsToCacheAny help or guidance would be appreciated.
Kind regards,
John -
@synint said in Unable to link Google calandar with calendar Module:
https://calendar.google.com/calendar/embed?src=john%40totrain.co.uk&ctz=Europe%2FLondon Error: Unauthorized
you do not use the embed link, you use the shared or secret ical link
-
Hi Sam just got back off holiday and applied you suggestion and it works.
Thank you for your response.
Kind reagards,
John -
S sdetweil has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login