Showing posts with label example. Show all posts
Showing posts with label example. Show all posts

Monday, November 30, 2015

Interval shooting

We had a 32h smoking (like BBQ) session and I wanted to take a picture every 30 seconds.

With the Olympus Air it was quite easy with a shell script (linux or mac) running on a notebook, connected over WiFi:

#!/bin/bash

# switch cam to rec mode (out of standalone)
curl -v --header 'Host: 192.168.0.10' --header 'User-Agent: OlympusCameraKit' "http://192.168.0.10/switch_cameramode.cgi?mode=rec&lvqty=1280x960"
sleep 1

# enable liveview (necessary to take pictures for some reason) 
curl -v --header 'Host: 192.168.0.10' --header 'User-Agent: OlympusCameraKit' "http://192.168.0.10/exec_takemisc.cgi?com=startliveview&port=5555"
sleep 1

# loop to take a picture, then wait 30 seconds
while [ 1 ]: do
 curl -v --header 'Host: 192.168.0.10' --header 'User-Agent: OlympusCameraKit' http://192.168.0.10/exec_takemotion.cgi?com=newstarttake
 sleep 30
done

That worked for 24h, then the camera refused to take photos. After a reboot everything worked again.