Yup - that, at the moment, is my only problem! Any pointers for where to start with a wrapper like you suggest? I've no experience with python either.
Many thanks for your efforts - it's greatly appreciated.
Looking at the get_file_from_central function, it suggests that files are saved to the filesystem but I'm guessing I would need to host them somehow to get them into my reports.
Yes, in our case, the folder is used and visible by both Apache and PostgreSQL (user postgres) but it could be anywhere else your reporting tool can access
OK thanks - getting the idea now and am almost there. How do you use the get_file_from_central command? It looks like that will only download one image, where I want to download all the images for the form submissions I got with odk_central_to_pg.
Also what does it do with the file names? What's prise_image?
With Central 2023.4 we can now filter data from repeat table using a top level (Submissions) filter as the submission date. central2pg can make use of it right now and allows you to get only data that were submitted since a given timestamp or date
For example, data from our main form are pulled every hour to get fresh data, without filtering, we needed to pull all the data created since the form was published (90000) !
Now we can filter subtables on submission date and pull only the 37 observations created since last known submission date
As a consequence we can increase a lot the frequency of pulling data from Central and be very close to a real time field sync between our databases or desktop tools and the field.