MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Calendar module not showing events (fetch error)

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 3 Posters 499 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nakulbende
      last edited by

      Using the default calendar module to display events - the same config worked for a while. I updated MM, and this does not work anymore. Getting the following issue regardless of which link I have in config - I checked and the cal links are working.

      I am using a RPi, MM is up to date. Thanks for all the help community!

      [23.12.2023 22:22.14.151] [LOG]   Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/en.indian%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 3600000
      [23.12.2023 22:22.14.157] [ERROR] Whoops! There was an uncaught exception...
      [23.12.2023 22:22.14.168] [ERROR] ReferenceError: fetch is not defined
          at fetchCalendar (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:58:3)
          at CalendarFetcher.startFetch (/home/pi/MagicMirror/modules/default/calendar/calendarfetcher.js:103:3)
          at Class.createFetcher (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:80:11)
          at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/default/calendar/node_helper.js:21:9)
          at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:104:11)
          at Socket.emit (node:events:513:28)
          at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22)
          at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:703:39
          at process.processTicksAndRejections (node:internal/process/task_queues:78:11)
      [23.12.2023 22:22.14.169] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [23.12.2023 22:22.14.170] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      

      Here is my config for this module:

      // Calendar
       			{
       				module: "calendar",
       				//header: "Calenar",
       				position: "top_right",
       				config: {
       					colored: true,
       					maximumNumberOfDays: 60,
       					maximumEntries: 12,
       					displaySymbol: true,
       					timeFormat: "absolute",
       					broadcastPastEvents: true, 
       					showEnd: false,
       					wrapEvents: false,
       					calendars: [
       						{
      	 						//symbol: "fas fa-glass",
      	 						//maximumEntries: 4,
      	 						url: 'https://calendar.google.com/calendar/ical/en.indian%23holiday%40group.v.calendar.google.com/public/basic.ics',
      	 						//color: "#c97dff" // #ff8989, #ffc386, #f9ff99 is red, orange and yellow
      	 					},
      	 					{
      	 						symbol: "fas fa-heart",
      	 						maximumEntries: 4,
      	 						color: "#a1ffb6",
      	 						url: "XXX",
      	 					},
      	 					{
      	 						symbol: "fas fa-birthday-cake",
      	 						maximumEntries: 4,
      	 						color: "#ff8989",
      	 						url: "XXX",
      	 					},
       					],
       				},
       			},
      
      BKeyportB KristjanESPERANTOK 2 Replies Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer @nakulbende
        last edited by

        @nakulbende Looks like you might have missed a step in installing your mirror from my point of view. the module “fetch” is missing, which indicates “npm install” may not have been run from the MagicMirror directory. How did you install?

        The "E" in "Javascript" stands for "Easy"

        1 Reply Last reply Reply Quote 0
        • KristjanESPERANTOK Offline
          KristjanESPERANTO Module Developer @nakulbende
          last edited by

          It could also be that node is too old. Check whether you have node 18 or newer with: node -v

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy