• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

adding google calander to Config

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 2 Posters 2.0k Views 2 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.
  • S Offline
    spikeboybebop
    last edited by spikeboybebop Sep 2, 2017, 1:07 AM Sep 1, 2017, 11:25 PM

    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;}
    
    M 1 Reply Last reply Sep 2, 2017, 12:58 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @spikeboybebop
      last edited by Sep 2, 2017, 12:58 AM

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

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • S Offline
        spikeboybebop
        last edited by Sep 2, 2017, 1:23 AM

        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/

        M 1 Reply Last reply Sep 2, 2017, 1:49 AM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @spikeboybebop
          last edited by Sep 2, 2017, 1:49 AM

          @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

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            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