Read the statement by Michael Teeuw here.
MMM GooglePhoto not Loading
-
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 -
@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
-
@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
-
@millis right… whatever the steps are in the doc
-
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 errorI 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
-
@millis
hi, author of this module have not maintened this module for using new credentials versionSo there is no many chance to have it working
maybe my EXT plugin can help :) -
@millis I have set this up a dozen times in the last few months without issue.
-
@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