pyicloud
pyicloud copied to clipboard
Two Factor Authentication on Raspberry Pi and prompts on Apple Devices - How to Avoid?
I am trying to run pyiCloud to play a sound on my iPhone to find it using a python script. I want to do this from my raspberry pi. Ultimately I want to run it so I can ask my Amazon Echo to call the python script so that I can find my iPhone using my Amazon Echo. When I run my python script, I am presented with a "Apple ID is being used to sign in" prompt on my devices and shown an 'Don't Allow' 'Allow' set of buttons, followed by an 'Enter Verification code on your device to sign in' prompt. Is there a way to avoid these prompts?
Environment
- pyiCloud release with the issue (
pip show pyicloud
): - Last working pyiCloud release (if known):
- Service causing this issue:
- Python version (
python -V
): - Operating environment (project deps/Docker/Windows/etc.): Raspian on Raspberry Pi
Traceback/Error logs
Checklist
- [X] I've looked informations into the README.
- [X] I've looked informations into the pyiCloud's code.
- [X] I've looked informations in Google.
Additional information
So far, there is NO way to avoid that.
+1 to this. This library is insanely cool but having to click a dialog on my device at each run is a big detriment. Hoping to integrate this to my Project Smartframe :D
@bickyb Have you tried this? https://github.com/picklepete/pyicloud/issues/345
@KovalevArtem The possibility of being able to play the find my sound without 2FA seems awesome.
I clicked the #345 link but I don't see how you did this. Have you been able to do this? If so, can you please send me a link the code samples?