MagicMirror Forum

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

    SOLVED Adding shared Google calendars

    Troubleshooting
    2
    4
    2862
    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.
    • C
      cyrus last edited by

      I’ve tried to add shared Google calendars, but it just doesn’t show any of the events. I assume it has to do with the credentials. Here’s a copy of my config file for that section. Note that the calendar is not publicly visible and it has to stay that way. Also, I have tried all three options for the “method” section and none seems to make a difference.

      Here’s the config file I’m using:

      /* Magic Mirror Config Sample
       *
       * By Michael Teeuw http://michaelteeuw.nl
       * MIT Licensed.
       *
       * For more information how you can configurate this file
       * See https://github.com/MichMich/MagicMirror#configuration
       *
       */
      
      var config = {
      	address: "localhost", // Address to listen on, can be:
      	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
      	                      // - another specific IPv4/6 to listen on a specific interface
      	                      // - "", "0.0.0.0", "::" to listen on any interface
      	                      // Default, when address config is left out, is "localhost"
      	port: 8080,
      	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
      	                                                       // or add a specific IPv4 of 192.168.1.5 :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
      	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
      	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
      
      	language: "en",
      	timeFormat: 12,
      	units: "imperial",
              colored: true,
      	// serverOnly:  true/false/"local" ,
      			     // local for armv6l processors, default 
      			     //   starts serveronly and then starts chrome browser
      			     // false, default for all  NON-armv6l devices
      			     // true, force serveronly mode, because you want to.. no UI on this device
      	
      	modules: [
      		{
      			module: "alert",
      		},
      		{
      			module: "updatenotification",
      			position: "top_bar"
      		},
      		{
      			module: "clock",
      			position: "top_left"
      		},
      		{
      			module: "calendar",
      			header: "Customer Schedule",
      			position: "top_left",
      			config: {
      				calendars: [
      					{
      						symbol: "calendar-check",
      						url: "https://calendar.google.com/calendar/embed?src=OURDOMAIN.com_XXXXXXXXXXXXXXXXXXXXXXXXX%40group.calendar.google.com",
                                                      auth: {
                                                      user: 'EMAIL@DDR.ESS',
                                                      pass: 'PASSWORD',
                                                      method: 'basic' // I have tried all three options for this
                                                      }
                                              }
      				           ]
      			}
      		},
      		{
      			module: "currentweather",
      			position: "top_right",
      			config: {
      				location: "New York",
      				locationID: "",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: "YOUR_OPENWEATHER_API_KEY"
      			}
      		},
      		{
      			module: "weatherforecast",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				location: "New York",
      				locationID: "5128581",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
      				appid: "YOUR_OPENWEATHER_API_KEY"
      			}
      		},
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      			config: {
      				feeds: [
      					{
      						title: "New York Times",
      						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
      					}
      				],
      				showSourceTitle: true,
      				showPublishDate: true,
      				broadcastNewsFeeds: true,
      				broadcastNewsUpdates: true
      			}
      		},
      	]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") {module.exports = config;}
      
      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @cyrus last edited by

        @cyrus u need the public or secret url link of the calendar

        this is not it, this is the embed link

        url: "https://calendar.google.com/calendar/embed?src=OURDOMAIN.com_XXXXXXXXXXXXXXXXXXXXXXXXX%40group.calendar.google.com"
        

        on the calendar.google.com site, select the calendar lower left, 3 dots,
        select settings
        select integrate calendar

        select either the public address in iCal format, or the secret address in iCal format

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • S
          sdetweil @cyrus last edited by

          @cyrus u need the public or secret url link of the calendar

          this is not it, this is the embed link

          url: "https://calendar.google.com/calendar/embed?src=OURDOMAIN.com_XXXXXXXXXXXXXXXXXXXXXXXXX%40group.calendar.google.com"
          

          on the calendar.google.com site, select the calendar lower left, 3 dots,
          select settings
          select integrate calendar

          select either the public address in iCal format, or the secret address in iCal format

          Sam

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • C
            cyrus last edited by

            Thanks for your help. That was indeed the problem.

            S 1 Reply Last reply Reply Quote -1
            • S
              sdetweil @cyrus last edited by

              @cyrus cool. Glad u got it working!

              Sam

              Create a working config
              How to add modules

              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