Navigation

    MagicMirror Forum

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

    SOLVED Config file not working when i add MMM-GooglePhotos

    Troubleshooting
    3
    17
    1443
    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.
    • P
      paddyhughes last edited by

      Hi having issues when i add MMM-GooglePhotos to my config file. I just keep getting the config screen. once i remove the code it works again thanks for any help given.

      /* 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: 24,
      	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",
      						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
      					}
      				]
      			}
      		},
      		{
      			module: "compliments",
      			position: "lower_third"
      		},
      {
        module: "MMM-GooglePhotos",
        position: "top_right",
        config: {
          albumId: ["MY CODE ***********************************************"] // your album id(s) from result of `auth_and_test.js`
          refreshInterval: 1000*60,  
          scanInterval: 1000*60*10, // too many scans might cause API quota limit also.
          //note(2018-07-29). It is some weird. API documents said temporal image url would live for 1 hour, but it might be broken shorter. So, per 10 min scanning could prevent dead url.
      
          sort: "time", //'time', 'reverse', 'random'
          showWidth: "800px", // how large the photo will be shown as. (e.g;'100%' for fullscreen)
          showHeight: "600px",
          originalWidthPx: 800, // original size of loaded image. (related with image quality)
          originalHeightPx: 600, // Bigger size gives you better quality, but can give you network burden.
          mode: "hybrid", // "cover" or "contain" (https://www.w3schools.com/cssref/css3_pr_background-size.asp)
          //ADDED. "hybrid" : if you set as "hybrid" it will change "cover" and "contain" automatically by aspect ratio.
        }
      },
      		{
      			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;}
      
      
      S V 2 Replies Last reply Reply Quote 0
      • S
        sdetweil @paddyhughes last edited by

        @paddyhughes no comma after albumid

        P 1 Reply Last reply Reply Quote 1
        • P
          paddyhughes last edited by

          Hi sdetweil
          still the same issue

          /* 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: 24,
          	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",
          						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
          					}
          				]
          			}
          		},
          		{
          			module: "compliments",
          			position: "lower_third"
          		},
          {
            module: "MMM-GooglePhotos",
            position: "top_right",
            config: {
              albumId:, ["MY CODE  ************************************"] // your album id(s) from result of `auth_and_test.js`
              refreshInterval: 1000*60,  
              scanInterval: 1000*60*10, // too many scans might cause API quota limit also.
              //note(2018-07-29). It is some weird. API documents said temporal image url would live for 1 hour, but it might be broken shorter. So, per 10 min scanning could prevent dead url.
          
              sort: "time", //'time', 'reverse', 'random’
              showWidth: "800px", // how large the photo will be shown as. (e.g;'100%' for fullscreen)
              showHeight: "600px",
              originalWidthPx: 800, // original size of loaded image. (related with image quality)
              originalHeightPx: 600, // Bigger size gives you better quality, but can give you network burden.
              mode: "hybrid", // "cover" or "contain" (https://www.w3schools.com/cssref/css3_pr_background-size.asp)
              //ADDED. "hybrid" : if you set as "hybrid" it will change "cover" and "contain" automatically by aspect ratio.
            }
          },
          		{
          			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;}
          
          
          V 1 Reply Last reply Reply Quote 0
          • S
            sdetweil last edited by

            At the end of the line, after ]
            Not after :

            1 Reply Last reply Reply Quote 0
            • P
              paddyhughes @sdetweil last edited by

              @sdetweil sorry yep i did that once i notice the issue were i placed still the same

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

                @paddyhughes change to tests/configs folder and run

                node check_config.js

                P 1 Reply Last reply Reply Quote 0
                • P
                  paddyhughes @sdetweil last edited by

                  @sdetweil said in Config file not working when i add MMM-GooglePhotos:

                  @paddyhughes change to tests/configs folder and run

                  node check_config.js

                  Not sure what the tests/configs folder is. Do you want me to back up the folder and run node check_config.js

                  Sorry about this and thanks for your help

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

                    Inside the mm folder is the tests folder, etc

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      paddyhughes @sdetweil last edited by

                      @sdetweil Line 61 col 149 Unclosed string.
                      Line 62 col 32 Unclosed string.
                      Line 63 col 82 Unclosed string.
                      Line 64 col 183 Unclosed string.
                      Line 65 col 1 Unclosed string.
                      Line 66 col 48 Unclosed string.
                      Line 67 col 17 Unexpected ‘8’.
                      Line 60 col 3 Expected ‘}’ to match ‘{’ from line 57 and instead saw ‘config’.
                      Line 60 col 9 Expected ‘]’ to match ‘[’ from line 28 and instead saw ‘:’.
                      Line 60 col 11 Expected ‘}’ to match ‘{’ from line 11 and instead saw ‘{’.
                      Line 60 col 12 Missing semicolon.
                      Line 61 col 14 Label ‘albumId’ on [ statement.
                      Line 66 col 12 Expected ‘]’ to match ‘[’ from line 61 and instead saw ‘time’.
                      Line 66 col 12 Expected an assignment or function call and instead saw an expression.
                      Line 66 col 16 Missing semicolon.
                      Line 67 col 1 Expected an assignment or function call and instead saw an expression.
                      Line 67 col 17 Missing semicolon.
                      Line 68 col 17 Label ‘showHeight’ on 600px statement.
                      Line 69 col 5 Expected an assignment or function call and instead saw an expression.
                      Line 69 col 20 Missing semicolon.
                      Line 69 col 5 Unrecoverable syntax error. (72% scanned).

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

                        Start at the first error, fix and try again

                        P 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • 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