Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version Search this Thread
10-26-2017, 06:38 PM - 3 Likes   #1
Pentaxian
amoringello's Avatar

Join Date: May 2008
Location: Virginia, USA
Photos: Gallery
Posts: 1,562
Wireless Auto Import within Lightroom from your K-1

I know I've posted this elsewhere in the past but it has been spawned from discussion of the FluCard (which does not work with the K-1, and which I am no longer working on) or has been mentioned within other discussions. Anyway, I've improved things enough to make it more useable and felt it worth posting a specific thread on the subject.

Mainly photos may now be downloaded from SD card 1 or 2, and you may specify downloading DNG or JPG.
Note: the K-1 is so terribly slow, I'd only suggest using Small JPG. But the options are now available.

Another member is working diligently on an app to wirelessly control the K1, but I do not believe it can work in conjunction with Lightroom or other similar desktop applications to allow auto import of images from the K1 wirelessly to a desktop application.

This project is specifically intended to act in a similar fashion as the EyeFi cards used to do...
i.e. photos will be downloaded from the camera to a specific folder on your desktop.
The main application (e.g. LightRoom) watches that folder and AutoImports the files.
This does not do wireless tethering, and does not control the camera.

If interested, this is done in a cross-platform manner using Python. So you'll need to install that if you want to use on Windows.

The code is on GitHub. Grab the "k1Import.py" file
https://github.com/amoringello/FluCardPro-AutoImport

I definitely have some improvements to do. There are issues currently if you ave to shoot a full day and pile up the photo count. (see the readme)
But this gets me through most shorter photo sessions and I hope to fix this issue in the next release.

07-23-2018, 08:32 AM   #2
Senior Member




Join Date: Jun 2013
Photos: Albums
Posts: 167
QuoteOriginally posted by amoringello Quote
I know I've posted this elsewhere in the past but it has been spawned from discussion of the FluCard (which does not work with the K-1, and which I am no longer working on) or has been mentioned within other discussions. Anyway, I've improved things enough to make it more useable and felt it worth posting a specific thread on the subject.

Mainly photos may now be downloaded from SD card 1 or 2, and you may specify downloading DNG or JPG.
Note: the K-1 is so terribly slow, I'd only suggest using Small JPG. But the options are now available.

Another member is working diligently on an app to wirelessly control the K1, but I do not believe it can work in conjunction with Lightroom or other similar desktop applications to allow auto import of images from the K1 wirelessly to a desktop application.

This project is specifically intended to act in a similar fashion as the EyeFi cards used to do...
i.e. photos will be downloaded from the camera to a specific folder on your desktop.
The main application (e.g. LightRoom) watches that folder and AutoImports the files.
This does not do wireless tethering, and does not control the camera.

If interested, this is done in a cross-platform manner using Python. So you'll need to install that if you want to use on Windows.

The code is on GitHub. Grab the "k1Import.py" file
GitHub - amoringello/FluCardPro-AutoImport: Auto Import photos from the K1 or the Ricoh FluCard Pro-1. Requires Python 2.7 with 'requests' module.

I definitely have some improvements to do. There are issues currently if you ave to shoot a full day and pile up the photo count. (see the readme)
But this gets me through most shorter photo sessions and I hope to fix this issue in the next release.
This is awesome

had a look at the k1 code and you can work from a browser

K1 REST API
"/v1/photos/path"
"/v1/photosath/info"
"/v1/photos/latest/info"
"/v1/photos?storage=sd{1,2}"
"/v1/photos/102_1026/_AMP9018.DNG?storage=sd1"
"/v1/photos/102_1026/_AMP9018.JPG?storage=sd2"
"/v1/props"
"/v1/props/camera"
"/v1/props/lens"
"/v1/props/liveview"
"/v1/props/device"
"/v1/variables"
"/v1/variables/camera"
"/v1/variables/lens"
"/v1/variables/liveview"
"/v1/variables/device"
"/v1/status"
"/v1/status/camera"
"/v1/status/lens"
"/v1/status/liveview"
"/v1/status/device"
"/v1/params"
"/v1/params/camera"
"/v1/params/lens"
"/v1/params/liveview"
"/v1/params/device"
"/v1/constants"
"/v1/constants/camera"
"/v1/constants/lens"
"/v1/constants/liveview"
"/v1/constants/device"
"/v1/ping"
"/v1/liveview"
"/v1/params/camera"
"/v1/params/device"
"/v1/camera/shoot"
"/v1/camera/shoot/start"
"/v1/camera/shoot/finish"
"/v1/lens/focus"
"/v1/liveview/zoom"
"/v1/changes"
"/v1/apis"

Add ?storage=sd{1,2}
E.g. ?http://192.168.0.1/v1/photos?storage=sd2?

For anyone interested try connecting to the k1 network and type

http://192.168.0.1/v1/liveview
07-25-2018, 10:55 AM   #3
Senior Member




Join Date: Jun 2013
Photos: Albums
Posts: 167
Hi
after discovering the k1 restful api exists.
I decided to learn some more about rest. I discovered something called 'Postman'

Rest has 4 main message types GET, POST, PUT and DELETE.

Getting is rather easy, browsers do it all the time, e.g this webpage your browser asked the server to get the page and the server returned the page to you

So the k1 is a little web server and we can perform get requests quite easily

eg http://192.168.0.1/v1/api returns in json format the k1 api.

A touch harder to do is get the camera to change its settings and take a photograph, you pretty much need an app to do it but postman acts as an app and will allow you to make requests to the camera and figure out what the api does.
07-26-2018, 06:03 PM   #4
Senior Member




Join Date: Jun 2013
Photos: Albums
Posts: 167
A few experiments

http://192.168.0.1/v1/apis
{"errCode": 200,
"errMsg": "OK",
"apis": ["/v1/photos/ath","/v1/photos/ath/info","/v1/photos/latest/info","/v1/photos","/v1/props","/v1/props/camera","/v1/props/lens","/v1/props/liveview","/v1/props/device","/v1/variables","/v1/variables/camera","/v1/variables/lens","/v1/variables/liveview","/v1/variables/device","/v1/status","/v1/status/camera","/v1/status/lens","/v1/status/liveview","/v1/status/device","/v1/params","/v1/params/camera","/v1/params/lens","/v1/params/liveview","/v1/params/device","/v1/constants","/v1/constants/camera","/v1/constants/lens","/v1/constants/liveview","/v1/constants/device","/v1/ping","/v1/liveview","/v1/params/camera","/v1/params/device","/v1/camera/shoot","/v1/camera/shoot/start","/v1/camera/shoot/finish","/v1/lens/focus","/v1/liveview/zoom","/v1/changes","/v1/apis"]}

just a list of whats in the API

http://192.168.0.1/v1/photos/
{
"errCode": 200,
"errMsg": "OK",
"dirs": [
{
"name": "100_0726",
"files": [
"_IMG0028.JPG",
"_IMG0028.DNG",
"_IMG0029.JPG",
"_IMG0029.DNG",
"_IMG0030.JPG",
"_IMG0030.DNG",
"_IMG0031.JPG",
"_IMG0031.DNG",
"_IMG0032.JPG",
"_IMG0032.DNG",
"_IMG0033.JPG",
"_IMG0033.DNG"
]
},
{
"name": "101_0727",
"files": [
"_IMG0034.JPG",
"_IMG0034.DNG"
]
}
]
}

now thats a listing from my sdcard (slot1)
http://192.168.0.1/v1/photos/100_0726/_IMG0030.JPG

This returns _IMG0030.JPG to the browser window.
wget http://192.168.0.1/v1/photos/100_0726/_IMG0030.JPG does a straight download of the file.

I've tried a few put requests with postman but so far i haven't given it valid values
http://192.168.0.1/v1/shoot looks promising but it requires some parameters i think

07-26-2018, 07:27 PM - 1 Like   #5
Senior Member




Join Date: Jun 2013
Photos: Albums
Posts: 167
I finally took photos wirelessly using my mac and postman. It requires a Post command.

POST http://192.168.0.1/v1/camera/shoot

I had to turn off catch in focus but that POST command worked in regular and live view modes.

It should be possible to build a client application to run in a web-browser that is cross platform.
07-27-2018, 10:01 AM   #6
Junior Member
Binth's Avatar

Join Date: Sep 2013
Location: Madison, WI
Posts: 36
Adding to post count and this thread interests me.
09-07-2018, 12:34 AM   #7
Pentaxian
angerdan's Avatar

Join Date: Feb 2015
Photos: Albums
Posts: 993
Shouldn't this be a sticky thread?
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
auto import, camera, desktop, dslr, folder, full frame, full-frame, import within lightroom, k-1, k1, lightroom, pentax k-1, photo
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pentax FluCard may now work with LightRoom's Auto Import! amoringello Pentax Camera and Field Accessories 4 11-25-2016 01:04 PM
RAW images change upon import to Lightroom NarcisO Digital Processing, Software, and Printing 6 09-29-2016 10:38 AM
Lightroom won't auto- or manually import my files toukan Digital Processing, Software, and Printing 2 10-29-2014 11:05 PM
Lightroom disable auto import on catalog doodddoo Digital Processing, Software, and Printing 2 03-07-2012 01:03 AM
Flame within a frame within a frame Hornet Monthly Photo Contests 0 01-25-2010 09:17 PM



All times are GMT -7. The time now is 08:32 PM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top