MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Google photos modules access another Album instead

    Scheduled Pinned Locked Moved Solved Requests
    google apiphotos
    5 Posts 2 Posters 795 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mercuryskies
      last edited by

      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,

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @mercuryskies
        last edited by sdetweil

        @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.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          mercuryskies @sdetweil
          last edited by

          @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 ?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @mercuryskies
            last edited by sdetweil

            @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)

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mercuryskies @sdetweil
              last edited by

              @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

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy