-
-
Save meub/767da97925d413f57f55c42ef4325d90 to your computer and use it in GitHub Desktop.
# I created a repo for this project here: https://github.com/meub/aura-frame-downloader |
This is great! Thank you.
Nice job. Do you know the API verb to upload images? Is the Aura API documented somewhere?
Thank you for taking the time to develop this utility. I'm sure there are many like me who are disappointed that Aura does not make downloading of photos easier.
I am able to login to my Aura account successfully (see below) but then encounter a series of errors that I don't understand. Hoping you can provide some insight.
Thanks!!
Login Success
Traceback (most recent call last):
File "C:\Users\bill\Downloads\download-aura-photos.py", line 116, in
total = download_photos_from_aura(email, password, frame_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bill\Downloads\download-aura-photos.py", line 53, in download_photos_from_aura
json_data = json.loads(r.text)
^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1264.0_x64__qbz5n2kfra8p0\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Thank you! Thank you! Thank you!
Really appreciate this capability you have created. I'm new to Python but programmed in many other languages. I'm having a hard time getting pass the config processing. The frame name is "Gigi's Frame". I keep getting the "Invalid frame name" error message.
I don't know if the issue is with the frame name, frame id or file path. I have changed the frame name in the config file to have no quotes, no spaces, all lowercase, all uppercase and called it appropriately on the command line. I have even hardcoded the frame name section in the script. I verified twice I have the correct frame ID in the ini file. The file path is ./images but I have even hardcoded the file path name in the script with no success.
Here is the section in the .ini file (frame_id modified)
[Gigi's Frame]
frame_id = c4a2f245-da81-4f81-a8b2-xxxxxxxexxxx
file_path = ./images
Any help you could provide would be appreciated!
Edit: I hard-coded everything, bypassed the config process and load 1529 photos. Thanks!
@HPNutty Sorry this was such a pain for you. For me on Mac it works with spaces or quotes even as long as I put the frame in quotes in the command. But regardless, the frame name is just an arbirtrary identifier and doesn't need to match anything. You could just call your frame [test] in the config file and then type python3 download-aura-photos.py test and it would also work. Glad you got it working though! I could try to make this more clear in the readme.
No worries! You saved us a ton of time as the first frame we gave my parents could not maintain a connection. We ordered a second frame and uploaded all the downloaded images from the first frame. Considering those photos came from six different persons it would have been a miserable and sort of embarrassing act to ask them to upload the photos again. Thank you again for developing this script.
Great to hear! Glad it was useful 👍
Nice job. Do you know the API verb to upload images? Is the Aura API documented somewhere?
I'm also wondering if this is readily available information. Aura is discontinuing their Google Photos integration, so having a way to handle this via a script would be nice.
I don't have a frame with that many photos so I can't really test this. Also, the API fails if I just increase the limit over 1000 so I'll have to investigate this further. Could you open an issue on this repo please and continue the discussion there? https://github.com/meub/aura-frame-downloader