pyicloud icon indicating copy to clipboard operation
pyicloud copied to clipboard

How to avoid keyring unlock password, raspberry pi

Open RaddedMC opened this issue 3 years ago • 0 comments

I've been working on integrating this library into my SmartFrame project. SmartFrame is basically an infoboard that is running on a headless Raspberry Pi Zero W running raspbian.

It has a script that runs approx. every minute to update an image on a digital photo frame that is populated with data from api's such as this

The problem is that as a headless server, every time it runs the pyiCloud code, the keyring interjects and asks for the user to type the keyring code in CLI, which is obviously unintuitive. While testing the pyiCloud code on my Ubuntu install on my main desktop, it ran fine without this interruption, presumable because I've unlocked the keyring previously.

While I'm not sure if its related to this repo, I was wondering if it was possible to have the password saved so that I don't have to click a 2FA button on my phone every minute, but also so that the command-line keyring unlock line doesn't come up? What exactly is my Ubuntu install doing to the keyring so that I can access it without having to type my password in CLI that my Raspbian install isn't doing?

Thanks for the help!

RaddedMC avatar Dec 06 '20 03:12 RaddedMC