Read the statement by Michael Teeuw here.
Google photos modules access another Album instead
-
Hello there , a relative newbie here . I have a perfectly working Google photos module showing one photo album in my kitchen however I have another pi I hoped I could just copy and use the same config file but tweak the config or JSON to point to another Album i created for my dad . It’s a shared album in my account that I have shared with him . I am confused in the sense that do I access one api but call upon a different album using album I’d ? How does the auth and test process work ? PS I’m not running the latest version of Google photos module .
Any help greatly appreciated, -
@mercuryskies they both start from the same client info, and you grant access to create the access token, which is used for all requests. it’s just in time authentication, and expires every 5 minutes typically, have to use the old token to get the new token, sort of like a relay.
same as if you would access from 2 different computers at the same time.
-
@sdetweil thank you for your quick reply !
So Is it possible to call upon a different album and where do I put the 2nd albums credentials or details in my code ? Is the token the oath client ? -
@mercuryskies I don’t know if you can do two on the same pi.
but if two different pi’s, then the setup is identical except for the album name(s)
-
@sdetweil its sorted. I simply ran the auth and test
file which generated a token for my other album. I then popped that token into my config and voila. All good