hermanho / MMM-GooglePhotos

Display your photos on MagicMirror from Google Photos.
MIT License
170 stars 65 forks source link

"There is no scanned photo currently." for some albums #55

Closed LeoPiero closed 4 years ago

LeoPiero commented 4 years ago

I have albums on Google Photos that are automatically updated based on people in the photos. I get the message "There is no scanned photo currently." for this type of album. Albums where I add specific photos work fine. Please let me know what other information I can provide.

Config:

{
    module: "MMM-GooglePhotos",
    position: "top_center",
    header: "Family Photos",
    config: {
        albumId: ["AAXspqDLD-0458bh2pVF7N3aCFd8_DAFTZ6IIdX0qFazHlFHXWSWbGv5_MGcaaSbShqAU0afpZ3S"],
        refreshInterval: 1000*20,
        scanInterval: 1000*60*10,
        sort: "time",
        showWidth: "800px",
        showHeight: "600px",
        originalWidthPx: 800,
        originalHeightPx: 600,
        opacity: 1
        mode: "hybrid",
        showDateLabel: true,
    }
},

Output:

[14:40:17.066] [LOG]    Starting MagicMirror: v2.10.1
[14:40:17.074] [LOG]    Loading config ...
[14:40:17.079] [LOG]    Loading module helpers ...
[14:40:17.659] [LOG]    Initializing new module helper ...
[14:40:17.660] [LOG]    Module helper loaded: MMM-GooglePhotos
[14:40:17.661] [LOG]    All module helpers loaded.
[14:40:17.662] [LOG]    Starting server on port 8080 ... 
[14:40:17.676] [LOG]    Server started ...
[14:40:17.677] [LOG]    Connecting socket for: MMM-GooglePhotos
[14:40:17.678] [LOG]    MMM-GooglePhotos started
[14:40:17.678] [LOG]    Sockets connected & modules started ...
[14:40:17.850] [LOG]    Launching application.
[14:40:19.594] [LOG]    MMM-GooglePhotos initialized after loading.
[14:40:39.601] [LOG]    There is no scanned photo currently.
eouia commented 4 years ago

I know already, that is “shared album” permission issue. First ask one thing. Who is the creator of that shared album? For security issue, Google Photo SDK cannot access others album/photo until getting explicit permission consent and an accessToken from each owner. It means you need to ask to your friend or grandmother like this. “plz execute this program and login your account then allow consent then send me the result - some encrypted text. Yes, sounds so suspicious but this is needed to display your picture on my MagicMirror. Ah, of course you probably have linux machine to execute this program, do a favor for me?”

Anyway I’m working on new version. I hope there be better approach than this. At this moment, I’m researching deeper.