안녕하세요. 게으른덕후입니다.
현재 RPI4에 MagicMirror와 MMM-Googlephoto를 올려서 전자액자를 구현한 상태입니다.
(사진은 약 5천장 정도 됩니다)
문제는,
처음 가동하면 (시간은 몇시간 정도 좀 걸리지만) 사진이 잘 나옵니다.
그런데 앨범의 사잔을 일부 삭제하거나, 추가하면
재부팅시 MagicMirror는 가동되지만, 사진이 나오지 않고
계속 Loading중이라는 메시지만 뜨네요...
며칠이 지나도 계속 Loading중입니다.
왜 이럴까요 ㅠㅠ
혹시 Google Photo내에서 불러오는 앨범 내에 위와 같이 사진이 추가/삭제되었을 경우
credentials을 다시 다운로드하거나 해야할까요?
고수님들 조언 부탁드립니다.
일단 검색해보니 동일한 이슈의 해결법 같습니다.
특정 이유로 403이 리턴되서 promise가 해결되지 못해서 로딩 애니메이션이 빙빙 돌고는 있으나 실은 아무 동작도 안하는 상태로 보입니다.
같은 403에러가 찍히는 지 확인하시고 링크의 쓰레드 밑에 Aneaville의 설명대로 해보심 어떨까요?
https://github.com/aneaville/MMM-GooglePhotos/issues/106
말씀해주신 내용대로 해보려고 하는데, 에러는 어떻게 확인해야 하나요? 제가 이쪽에 문외한이라...ㅠㅠ
넵!
일단 확인할 error message는 아래인 듯 합니다.
[09.04.2021 21:18.31.331] [ERROR] Failed to fetch git data for MMM-GooglePhotos: Error: block timeout reached
[09.04.2021 21:18.32.341] [ERROR] (node:3085) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
Http Status 403 에러는 https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403 로 해당 사이트나 API에 권한이 없다고 알리는 에러입니다.
즉, 로딩 애니메이션이 계속 돌겠지만, 사실상 아무 일도 안하고 있을 겁니다. 원래는 로딩 애니메이션이 timeout을 가지고 돌다가 이슈가 있으면 Error popup등을 띄워야 할 텐데, 아무것도 안하도 그냥 로딩 애니메이션만 보여주나 보네요.
그리고, 아마도 MMM-GooglePhotos이 configuration을 특정 file에 json으로 저장하는 듯 합니다.
해당 게시물에서 aneaville이 이렇게 해서 log를 보라고 말했네요.
"Please add "debug: true," to your config to add the extra debugging lines."
그리고, MMM-GooglePhotos를 command line에서 실행할 때, Control + M key를 누르면 log가 보일 꺼라고 하네요.
403이 확인됐다면 aneaville은 아래처럼 하라고 하네요.
아마도 Photos Library API 설정을 확인해보라고 합니다.
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.
부디 잘 해결하시길~