MagicMirror Forum

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

    UNSOLVED MMM GooglePhoto not Loading

    Troubleshooting
    3
    8
    415
    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.
    • M
      millis last edited by

      Hi all,
      My magicmirror has been a project that I don’t always get time to work with until it is completed,
      However the last time I went to the MagicMirror was back in March and everything worked fine then, I booted it up yesterday and with the GooglePhoto’s module all I see is “loading…” in the far right corner of its position, The only thing that has changed since I last used it is my home router, I changed it from the SKY Hub to a linksys one, I have since added the Pi to the wifi but I cannot see how that would stop this from working when everything else functions great?

      Any Advance would be amazing as its very nearly finished!
      Thanks
      Ashley

      I have no clue about anything until i try

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

        @millis the refresh token expires after 30 days… the code will auto refresh, but if U haven’t had it running, then u have to do the auth process again

        Sam

        Create a working config
        How to add modules

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

          @sdetweil
          Oh okay, didnt reailse that would happen,

          so from memory that was the token.json with the Auth steps wasnt it? so if I just delete the token and re do that and the Auth, then it should work again? and i wont switch it off this time lol

          I have no clue about anything until i try

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

            @millis right… whatever the steps are in the doc

            Sam

            Create a working config
            How to add modules

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

              B S 3 Replies Last reply Reply Quote 0
              • B
                bugsounet @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 🙂

                I am not a magician

                MMM-GoogleAssistant and associated plugin creator
                wiki.bugsounet.fr

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

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

                  Sam

                  Create a working config
                  How to add modules

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

                    Create a working config
                    How to add modules

                    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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy