Open rsiggins opened 1 month ago
Is it a "Desktop app" when creating OAuth client ID?
Yes. After I posted this I, discovered Google is changing the API in April 2025 and may break MMM-GooglePhotos. I switched to wallpaper and a NFS fileshare. Much simpler and does not depend on Google.
I decided to rebuild my MM from scratch. The previous installation was using MMM-GooglePhotos without problems. I downloaded the credentials.json for an existing project from Google and attempted to run node generate_token_v2.js and got the following errors:
_pi@raspberrypi:~/MagicMirror/modules/MMM-GooglePhotos $ node generate_token_v2.js /home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/@google-cloud/local-auth/build/src/index.js:52 throw new Error(invalidRedirectUri); ^
Error: The provided keyfile does not define a valid redirect URI. There must be at least one redirect URI defined, and this sample assumes it redirects to 'http://localhost:3000/oauth2callback'. Please edit your keyfile, and add a 'redirect_uris' section. For example:
"redirect_uris": [ "http://localhost:3000/oauth2callback" ]
Node.js v20.9.0_
I tried using the credentials.json from the previous installation and get the same errors.
I have been looking for other instances of this problem and have been unsuccessful. Any suggestions on where to look to correct this?
Richard