-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate Token on Docker #158
Comments
I have the same as well |
Any luck? I've tried reinstalling and nothing. Same issue. |
As a workaround, I installed PiOS on virtualbox, installed MagicMirror>Google Photo Module and generated a token then copied over to the Docker container. Thus far, working on Docker with token generated on VM. |
I've had luck using Windows, assuming the MMM-GooglePhotos directory is being shared on the network:
|
i get this error on windows and on docker :/ Error: Cannot find module 'mkdirp'
Node.js v18.16.0 |
I struggled with this for a while before realizing it doesn't matter where the token is generated. I cloned the repo to my local workstation and ran the token generator there, where it opened the browser and I clicked through. Afterwards I put the resulting token.json into my host-mounted config directory. |
You need to install dependencies with |
Are you doing this every week? Hoping to figure out an automated way to generate new tokens because "publishing" the app in google (as recommended by install.md) seems wildly unrealistic given the requirements to do that in 2024. |
Is there any reason to keep the OAuth app in testing? For my own version, I have published it. |
In order to publish it, google says I need to complete all these steps for verification:
Not sure if the issue is with how I configured the application when creating it, but none of these requirements seem reasonable to me given the purpose of this application. |
It should not require the verification when publishing. |
Sounds like I made a mistake when setting up the app in google. What, if any, scopes are required? I selected the relevant Google Photos Library scopes but perhaps that was not necessary and is likely the reason why publishing my app requires verification. |
No logo, no app domain, no any scopes |
This is likely my issue. I'll try removing these scopes and report back. Thanks for the info! |
I'm having issues using node generate_token_v2.js and node generate_token.js using MM running on Docker. When I run node generate_token.js, I get the URL that I can paste on the browser to authorize, but when I paste the code in "Return here with your code." I get:
/opt/magic_mirror/modules/MMM-GooglePhotos/GPhotos.js:104
throw new Error("Error getting tokens:", error);
^
Error: Error getting tokens:
at processTokens (/opt/magic_mirror/modules/MMM-GooglePhotos/GPhotos.js:104:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
The text was updated successfully, but these errors were encountered: