tobiipro / g3pylib

A Python client library for Glasses3
Other
15 stars 7 forks source link

Download Recordings #90

Open edavalosanaya opened 1 year ago

edavalosanaya commented 1 year ago

Just a quick question, is there a way to download a recording via the Python client instead of having to physically transfer the recording from the SD card?

Thanks in advance! Eduardo Davalos

jonashogstrom commented 1 year ago

All the files in a recording are accessible via http. If you first download the recording.g3 json file (using the root path of the recording, it will contain all filenames for the files in the recording except the meta-files. Those need to be queried using the meta interface. This could all be wrapped in a neat utility function in python, but currently it isn't. You can also use the webui to download a zip-file with the whole contents of a recording (download buttons available in the "Storage" tab). There you can see the javascript implementation for the same functionality.

edavalosanaya commented 1 year ago

Thanks for sharing this information. Very helpful!