Closed iyashwant closed 3 years ago
How long is 'forever'? 5 min, 5 hours, 5 days? This will help me diagnose. Has the module ever worked, or is this your first time trying? How many photos are in the album you are trying to use? And how many albums?
Can you add the following line to the bottom of your MMM-GooglePhotos config: debug: true, This will put more debugging information in the window which will also be helpful.
This is the first time I've tried it and then forever as in it never was able to fetch the pictures, maximum time i waited was around 40 mins and the album I'm trying to display has 10 pictures, I'll do debug: true and send you the info here
Same issue encountered here, new install that never worked. No issues on setup. token.js is there. Adding debug: true did not change the output at all, same result as above. Trying on an album with 1 image, never loads.
same issue. stopped working about 2 weeks ago. UnhandledPromiseRejectionWarning all over the log files
Exactly the same problem here. New setup, photos stuck on "Loading" for at least three hours. Is there a solution in sight?
Some details that would help troubleshoot from most to least important: logs - specifically with debug: true. Although not drastic, this should add some things to the log file that can help pinpoint where the issue is happening. A note on errors - prior to the last changes that I made, any single error would leave the module dead. I couldn't fix the underlying errors, but I did make things 'retry' such that having errors in the log isn't abnormal, but the module should keep functioning. Some info about your setup - I presume most people are using a raspberry pi a single server/viewer. Also if you are running a docker container or not. Some info about your albums - how many albums, and how many pictures per album. And if the albums are yours or someone else's that has shared them with you.
I'll provide hope that my setup is working quite well. It was installed several months ago, so I guess it's possible that the magic mirror has moved on and left something with this module broken.
Raspberry Pi 3, running Raspberry OS. OS is up to date. I have followed the instructions given, created a token.js file. Photo album called "Test" created with only 4 photos. I do not know where to find the logs, but am happy to provide them if you can tell me where!
Assuming you are running the Magic Mirror from the command line, the log is the info that comes up after you hit enter. The command line gets 'hidden' by the mirror. If you press Control + M, it will minimize the mirror to see the command line.
Please add "debug: true," to your config to add the extra debugging lines.
Log attached. Thanks! MMM-GooglePhotos_log.txt
Your logs have the 403 error. I believe this means something with your google cloud account is not set up correctly. There is another open issues 104. It has a possible solution in the bottom. No one has reported back that it works or not. I'll copy the info here:
Upon debugging more with the 403 error, I saw this in the logs:
Photos Library API has not been used in project XXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/photoslibrary.googleapis.com/overview?project={XXX my unique Id} then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry
You have to enable the photos library API it looks like.
If this fixes your issue, please report back. And if you could provide some more details on how to do it, it will certainly help others who have the same issue.
Fixed! I went to the Google Project, and the first screen that showed was one requesting me to enable. I thought I had completed this part of the setup 48 hours earlier, but it appears not. Many Thanks.
I had the same problem with a fresh install. The @aneaville comment solved for me.
OBS: I had to wait 1 hour after activate for the propagate API.
Thank you.
Is there anyway to get the Module to reference the default location of photos in Google. So instead of an "Album" look at default?
Thanks
@LoganMood You should really start a new issue to avoid future confusion. The module is really set up to scan an album. There may be a way to look at 'default', but it would probably take a bit of investigation on your part to figure that out.
The easiest way to get it work is to create a live album and have google put everything in it automatically. Here are some instruction on how to create one: https://support.google.com/photos/answer/6128849?hl=en
Once created, you can have the module grab photos from this new album.
After starting magic mirror, its just stuck on Loading..
I even regenerated tokens
Below is the error log