clyang / grsync Goto Github PK
View Code? Open in Web Editor NEWSync photos from Ricoh GR II / GR III via Wifi
License: MIT License
Sync photos from Ricoh GR II / GR III via Wifi
License: MIT License
Can anyone help to use this program for my GR IIIx ?
I tried to change these.
SUPPORT_DEVICE(line 23) โ Added GR IIIx
DEVICE(line 24) โ change it's device's name to GR IIIx
/v1/photos
does not return all images on the camera. Once you have roughly more than 1000 images, it won't be able to sync them.
The API has a limit=xxx
query parameter. Even when you increase the limit to a very high value, it won't return a list of all photos. This is where after=path/file
query parameter can be used.
So you fetch the first list of images by specifiying /v1/photos
, select the last image in the list and do another request
to /v1/photos?after=139RICOH/R0009466.JPG
(where 139RICOH/R0009466.JPG would be your last image) and then iterate until you get an empty result, similar to my Elixir grsync:
https://github.com/mneumann/ricoh-gr-iii-tools/blob/main/grsync/grsync.exs#L43
I had to remove the RICOH string from the SUPPORT_DEVICE to get my GRII with 3.0 firmware to work. SUPPORT_DEVICE = ['GR II', 'RICOH GR III']
It would be great to be able to sync only the jpegs when in a hurry.
I know, this script is for the GRII. But I think it's supposed to work with the GRIII too (according to David Webers post: https://www.dpreview.com/forums/thread/4375292).
However it doesn't work for me.
Viewing the pictures via firefox on path 192.168.0.1/v1/photos/135RICOH/*.JPG works fine and the script seems to find the correct path. But eventually it fails to download and shuts down the camera.
If I skip the lines 108-111 and replace the else in 112 with the if from 108 it just hangs on "downloading" forever.
I defined an existing PHOTO_DEST_DIR in the script and nothing else. I guess STARTDIR and STARTFILE is supposed to stay empty?
I'm running the script on Xubuntu 18.04 with python 2.7.15+
Any hints to make this work with the GRIII?
edit: I just checked if I have all the python modules installed that are needed. I have them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.