Single command is missing "Get current image name/path"
shlomiv opened this issue · 3 comments
shlomiv commented
We could move between images in a current session using:
> curl -X GET "http://192.168.1.78:5513/?slc=do¶m1=Next_Image"
> curl -X GET "http://192.168.1.78:5513/?slc=do¶m1=Prev_Image"
But there is no way to get the selected image name, i.e.:
> curl -X GET "http://192.168.1.78:5513/?slc=do¶m1=Image_Name"
DSC_0003.nef
Maybe even full path with param2
?
dukus commented
You can get the whole session information using
http://localhost:5513/session.json
the last record is the last captured image
The image can be downloaded using
http://localhost:5513/image/DSC_0001.jpg
dukus commented
Or you can use more simple
http://localhost:5513/?slc=get¶m1=lastcaptured¶m2=
shlomiv commented
Thank you for the response! Good info on the downloading part, it works well.
Regarding the lastcaptured
, this does work, with two caveats:
- It only retrieves, well, the last captured (I was aiming at retrieving the currently selected imaged.)
- It only works when the camera is connected to the computer. If it is disconnected it returns a
?
response.
However, that is good stuff for now, thank you!