KonradIT / goprowifihack

Unofficial GoPro WiFi API Documentation - HTTP GET requests for commands, status, livestreaming and media query.
Apache License 2.0
2.13k stars 334 forks source link

Time Lapse photography #107

Open BigAloz opened 6 years ago

BigAloz commented 6 years ago

Thanks for this excellent API.

I haven't been able to work out how to set up a record time lapse photographs.

Basically I want to do the following.

  1. Connect to goPro via wifi (this is fine)
  2. programmatically start recording photos (not video) at a predefined time
    • eventually I will have multiple cameras that I want to synchronize
  3. Continue taking images every 5 seconds
  4. Manually stop when finished (this part is trivial)

This is for an underwater project where the gopro(s) will be on a rov. So the wifi setup is only possible during initialization and wifi control (and manual control) will be lost once the GoPro is underwater.

Any advice will be much appreciated

Alan Buchanan

KonradIT commented 6 years ago

GoPro cameras have timelapse feature, so you can do something like:


from goprocam import GoProCamera, constants
gopro = GoProCamera.GoPro()

def start():
    gopro.gpControlSet(constants.Multishot.TIMELAPSE_INTERVAL, constants.Multishot.TimeLapseInterval.I5)
    gopro.mode(constants.Mode.MultiShotMode, constants.Mode.SubMode.MultiShot.TimeLapse)
    gopro.shutter(constants.start)

def stop():
    gopro.shutter(constants.stop)

#Run start() to set up the camera to take a picture every 5 seconds
#Run stop() to stop the timelapse once the WiFi is available on the surface
ashleyg155 commented 4 years ago

Hi. Is it possible to get the GoPro to have a greater interval of 1 min between photos? The standard max time on the timelapse feature is only 1 min? Could this be set much greater in the region of 10-20mins? I had looked at building an Intervalometer, but that bit advanced for me. For the occasional long timelapse I do I dont want to purchase something like this [BlinkX] (https://cam-do.com/products/blinkx-time-lapse-camera-controller-for-gopro-hero5-6-7-8-cameras) which is $400 :(. Thanks in advance.