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.

    MMM-GooglePhotos

    Scheduled Pinned Locked Moved Entertainment
    294 Posts 56 Posters 297.4k Views 59 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.
    • L Offline
      lucBtrl
      last edited by

      Dear Sean,

      It seems the node auth_and_test.js command throws an error on my side :

      pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ node auth_and_test.js
      /home/pi/MagicMirror/modules/MMM-GooglePhotos/auth.js:32
        const oauthClient = new OAuth2Client(key.client_id, key.client_secret, key.redirect_uris[0]);
                                                 ^
      
      TypeError: Cannot read property 'client_id' of undefined
          at new Auth (/home/pi/MagicMirror/modules/MMM-GooglePhotos/auth.js:32:44)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GooglePhotos/auth_and_test.js:16:14)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
          at Module.load (internal/modules/cjs/loader.js:653:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
          at Function.Module._load (internal/modules/cjs/loader.js:585:3)
          at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
          at startup (internal/bootstrap/node.js:283:19)
          at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
      

      It seems it cannot read my client_id from credentials.json file… do you have an idea ?
      Thanks a lot for your help !

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @lucBtrl
        last edited by

        @lucBtrl first, remove your credentials and create it again.

        L 1 Reply Last reply Reply Quote 0
        • S Offline
          Samwise
          last edited by

          ok, so it worked, but then when i tried to set which album i wanted, it said this:

          pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ nano MMM-GooglePhotos.js
          nano: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @Samwise
            last edited by A Former User

            @Samwise
            I can’t understand why you did this;

            pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ nano MMM-GooglePhotos.js
            

            You don’t need to (and shouldn’t) modify source code. use your config/config.js.

            And, the error

            nano: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
            

            comes from your system, not my module. Maybe your system has been missing something.

            1 Reply Last reply Reply Quote 0
            • S Offline
              Samwise
              last edited by

              ok i think everything is in order, but the pictures don’t actually show up…

              ? 1 Reply Last reply Reply Quote 0
              • ? Offline
                A Former User @Samwise
                last edited by A Former User

                @Samwise
                Don’t know what happens without details. What does the log say?

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  Samwise @Guest
                  last edited by Samwise

                  @Sean where do i find the log?

                  Also, this popped up: pi@raspberrypi:~/MagicMirror $ npm start

                  magicmirror@2.7.1 start /home/pi/MagicMirror
                  sh run-start.sh

                  /home/pi/MagicMirror/node_modules/electron/dist/electron: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
                  npm ERR! file sh
                  npm ERR! code ELIFECYCLE
                  npm ERR! errno ENOENT
                  npm ERR! syscall spawn
                  npm ERR! magicmirror@2.7.1 start: sh run-start.sh
                  npm ERR! spawn ENOENT
                  npm ERR!
                  npm ERR! Failed at the magicmirror@2.7.1 start script.
                  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                  npm ERR! A complete log of this run can be found in:
                  npm ERR! /home/pi/.npm/_logs/2020-02-29T10_46_17_131Z-debug.log

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    lucBtrl @Guest
                    last edited by

                    @Sean

                    Thanks a lot Sean !
                    It appears indeed that the credentials generated was not the right type (I may have not selected the right option in google api console). Worked better the second time !

                    Marvelous results of the module

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      ayangu
                      last edited by ayangu

                      @Sean I logged into my google account and allowed consent. However, once I input the code back into the terminal, all I get is auth_and_test started.

                      What am I doing wrong?

                      ? 1 Reply Last reply Reply Quote 0
                      • ? Offline
                        A Former User @ayangu
                        last edited by

                        @ayangu
                        when you did auth_and_test, token.json was created?

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 29
                        • 30
                        • 1 / 30
                        • First post
                          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