• 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.

MMM GooglePhoto not Loading

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 3 Posters 1.2k 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.
  • M Offline
    millis
    last edited by May 20, 2022, 2:26 PM

    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 May 20, 2022, 2:35 PM Reply Quote 0
    • S Away
      sdetweil @millis
      last edited by May 20, 2022, 2:35 PM

      @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

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply May 20, 2022, 2:44 PM Reply Quote 0
      • M Offline
        millis @sdetweil
        last edited by May 20, 2022, 2:44 PM

        @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 May 20, 2022, 2:45 PM Reply Quote 0
        • S Away
          sdetweil @millis
          last edited by May 20, 2022, 2:45 PM

          @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 May 20, 2022, 4:54 PM Reply Quote 0
          • M Offline
            millis @sdetweil
            last edited by May 20, 2022, 4:54 PM

            @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 May 21, 2022, 9:05 AM Reply Quote 0
            • B Offline
              bugsounet Banned @millis
              last edited by May 21, 2022, 9:05 AM

              @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 Away
                sdetweil @millis
                last edited by May 21, 2022, 11:32 AM

                @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 Away
                  sdetweil @millis
                  last edited by May 21, 2022, 1:29 PM

                  @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
                  1 / 1
                  • First post
                    1/8
                    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