MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

Adding shared Google calendars



  • 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;}
    


  • @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



  • @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



  • Thanks for your help. That was indeed the problem.



  • @cyrus cool. Glad u got it working!


Log in to reply