Read the statement by Michael Teeuw here.
no login prompt for MMM-GooglePhotos
-
Hi all
I installed MMM-GooglePhotos as per the instructions on the github site.
I should be getting a prompt to login in order to create a token.
Sadly when I run the script to generate the token, nothing happens.I’m connected to the machine hosting the docker container using putty.
When I run it, it just goes to a new blank line. Pressing ctrl-c immediately stops the executions and returns me to command prompt.
I tried encapsulating the generate token javascript in a blank html page, but I get errors that functions are undefined.
I also tried to run the command in the docker container itself; but that gives me the same issue.Any pointers on how to proceed?
-
@Brtrnd-0 I think you have to do it on the machine where the magic mirror software is running which means inside the docker container not outside the docker container. I don’t know if you can do it with docker
-
I run my Magicmirror software on a headless Openmediavault server. I use Portainer to manage my docker containers. This is what I had to do to get Google photos working (not sure if it’s the best way, I know it worked for me):
Run a new container for vnc-webclient, then open it.
Installed Firefox and nodejs in that container.
Open a shell in the vnc container, and run the generate_token_v2 command.
Firefox should open so you can log in and have your token created.Good luck!
-
@Brtrnd-0
AFAIK, Getting token script itself is executable on any environment, as far as it has node and browser. (and properly installed)node generate_token_v2.js
Usually it should show some instructions to open a browser and navigate URL for OAUTH process. But if you get nothing(even error message) hmmm. Weird. Could you tell us more details or captures?