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 GooglePhoto not Loading

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 3 Posters 1.5k Views 3 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
      sdetweil @millis
      last edited by

      @millis right… whatever the steps are in the doc

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        millis @sdetweil
        last edited by

        @sdetweil

        Well, that didn’t work :(
        I have even tried removing the module and creating a whole new thing in google cloud platform as if i was starting from scratch but on each attempt I get the same error

        I have no clue what I have done wrong

        [GPHOTOS:CORE] TypeError: Cannot read properties of undefined (reading '0')
        /home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:133
              throw e
              ^
        
        TypeError: Cannot read properties of undefined (reading '0')
            at new Auth (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:35:91)
            at GPhotos.onAuthReady (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:130:14)
            at GPhotos.generateToken (/home/pi/MagicMirror/modules/MMM-GooglePhotos/GPhotos.js:141:10)
            at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-GooglePhotos/generate_token.js:10:9)
            at Module._compile (node:internal/modules/cjs/loader:1105:14)
            at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
            at Module.load (node:internal/modules/cjs/loader:981:32)
            at Function.Module._load (node:internal/modules/cjs/loader:822:12)
            at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
            at node:internal/main/run_main_module:17:47
        

        I have no clue about anything until i try

        bugsounetB S 3 Replies Last reply Reply Quote 0
        • bugsounetB Offline
          bugsounet Banned @millis
          last edited by

          @millis
          hi, author of this module have not maintened this module for using new credentials version

          So there is no many chance to have it working
          maybe my EXT plugin can help :)

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

            @millis I have set this up a dozen times in the last few months without issue.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @millis I just did it again without issues…

              the error shown seems to indicate that you picked the wrong app type

              the credentials.json (that you downloaded from google) should look like this

              {
                "installed": {     
                  "client_id": "cccccc",
                  "project_id": "ccccc",
                  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
                  "token_uri": "https://oauth2.googleapis.com/token",
                  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
                  "client_secret": "ccccc",
                  "redirect_uris": [
                    "http://localhost"
                  ]
                }
              }
              

              the code is looking for the “installed” item

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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