jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
368 stars 59 forks source link

Bulb exposure #90

Closed timotoots closed 5 years ago

timotoots commented 5 years ago

Hey, I am trying to implement bulb exposure time. The command line utility uses config values for that (--set-config bulb=1 --wait-event=30s --set-config bulb=0 --wait-event-and-download=2s)

How to use camera.capture(gp.GP_CAPTURE_IMAGE) with bulb exposure? And how to set the actual exposure time?

jim-easterbrook commented 5 years ago

Does the config gui show a 'bulb' item? If so then perhaps you can set the config item, then wait 30 seconds, then set it back to zero. Fetching all events from the camera should then tell you the file name of the captured image.