MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Can't get google calendar on MM with MMM-CalendarExt2

    Troubleshooting
    3
    5
    232
    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.
    • A
      alphanet last edited by

      Hello,

      I would like to display my Google Calendar on my Magic Mirror using MMM-CalendarExt2.
      From the “Simple Example” of the documentation, I have tried this in the config.js :
      {
      module: ‘MMM-CalendarExt2’,
      config: {
      calendars : [
      { name: “Google_Calendar”,
      url: “https://calendar.google.com/calendar/ical/********%40gmail.com/public/basic.ics”,
      },
      ],
      views: [
      {
      name: “View_1”,
      mode: “month”,
      position: “full_screen_below”,
      calendars: [“Google_Calendar”],
      },
      ],
      scenes: [
      {
      name: “DEFAULT”,
      views: [“View_1”],
      },
      ],
      },
      },
      I also tried with my private url for google calendar:
      url: “https://calendar.google.com/calendar/ical/greevanspic%40gmail.com/private-**********************/basic.ics”
      But I have obtained nothing on my magic mirror.
      I would be grateful if you could tell me what is wrong with my code or recommend me the simplest module and configuration to use because I am new to magic mirror.
      Thank you very much in advance.
      alphanet

      S BKeyport A 3 Replies Last reply Reply Quote 0
      • S
        sdetweil @alphanet last edited by

        @alphanet if you put the url in a browser on your pi, does it download theics file with contents?

        the ics file is just text, don’t just double click.opem as it will try to add duplicate cal entries

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • BKeyport
          BKeyport Module Developer @alphanet last edited by

          @alphanet here’s a working example. I’m editing this out of my live config, in this editor, so the brackets may not be correct, but you get all the sections. feel free to compare and adjust accordingly.

          config: {
          				calendars : [
          					{
          						url: "<Private ICS link>",
          						name: "Main", // Optional, Recommended
          						maxItems: 1,
          						scanInterval: 1000*60*.5, // every 30 seconds, Appt Book, needs this speed
          						beforeDays: 0,
          						afterDays: 365,
          						forceLocalTZ: false,
          					},
          				],
          				views: [
          					{
          						mode: "upcoming",
          						position: "top_right",
          						slotTitle: "Next Up:",
          						slotCount: 1,
          						maxItems: 1,
          						useEventTimeRelative: false, 
          						dateTimeFormat: {
          							sameDay: "[Today] h:mm A",
          							nextDay: "[Tomorrow] h:mm A",
          							nextWeek: "dddd h:mm A",
          							lastDay: "[Yesterday] h:mm A",
          							lastWeek: "[Last] ddd h:mm A",
          							sameElse: "M/D h:mm A"
          						},
          						timeFormat: "LT",
          						hideOverflow: false,
          						filterPassedEvent: true,
          						name: "schedule",
          						className: "remove_empty_slot",
          						calendars: ["Main"],
          						transform: function(event) {
          							if (event.title.search("Bowling") > -1) {
          								event.icon = "fxemoji:bowling";
          								event.className = "bowling";
          							}
          							return event;					
          						},
          					},
          				scenes: [
          					{
          						name: "DEFAULT", 
          					},
          				],
          			},
          		},
          

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

          A 1 Reply Last reply Reply Quote 0
          • A
            alphanet @alphanet last edited by

            @alphanet

            Thank you sdetweil for your reply.

            I’ve just tried to put the url in my browser on my pi, it downloads a file where I can see the events of my google calendar.

            So the url must be ok to use in my config.js file, that’s an interesting test and good to know.

            Thanks for your help.

            alphanet

            1 Reply Last reply Reply Quote 0
            • A
              alphanet @BKeyport last edited by

              @BKeyport

              Thank you so much BKeyport for your help and for sharing your ineresting working example.
              Using it, I have just got the connection with my google calendar in Magic Mirror at last !.
              I have still plenty of things to understand and options to adjust as I would like to see the month template like my google agenda.
              But I am very grateful for your decisive help at this crucial step and for offering me a good basis to go further !

              Cordial greetings.

              alphanet

              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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy