adding google calander to Config



  • So I tried to add google calendar to thr congif file but when I start MM I get a config error. So I search similar problems and found a solution. I tried http://jshint.com/ and fix the errors but I still get the error when I start up MM. BTW it was working before I edited the calander.

    Here is the config with my email edited since I have it set to private

    main();var config = {
    	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: "metric",
    
    	modules: [
    		{
    			module: "alert",
    		},
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			module: "clock",
    			position: "top_left"
    		},
    		{
    			module: "calendar",
    			header: "US Holidays",
    			position: "top_left",
    			config: {
    				calendars: [
    					{
    						symbol: "calendar-check-o ",
    						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
    					},
                                            {
                                                    url: "https://calendar.google.com/calendar/ical/.com/private-3c6b3e476633ad/basic.ics"
                                        },
                                ],
                        }
                },
                {
    			module: "compliments",
    			position: "lower_third"
    		},
    		{
    			module: "currentweather",
    			position: "top_right",
    			config: {
    				location: "Milwaukee,US",
    				locationID: "5263045",
    				appid: "5125ae8d38c755ac70a5f75421523d3d"
    			}
    		},
    		{
    			module: "weatherforecast",
    			position: "top_right",
    			header: "Weather Forecast",
    			config: {
    				location: "Milwaukee,US",
    				locationID: "5263045", 
    				appid: "5125ae8d38c755ac70a5f75421523d3d"
    			}
    		},
    		{
    			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
    			}
    		},
    	]
    
    };
    
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== "undefined") {module.exports = config;}
    

  • Module Developer

    @spikeboybebop said in adding google calander to Config:

    Here is the config with my email edited since I have it set to private

    You’re missing the bottom of your config file, at the very least.

    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== "undefined") {module.exports = config;}
    


  • i updated the original post with the end part of the config file. I did rerun it and nothing changed and I don’t get any error or warning from http://jshint.com/


  • Module Developer

    @spikeboybebop

    The very beginning of your config should look like this:

    var config = {
    	port: 8080,
    	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"],
    

    I don’t know where you got main(); from


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.