/olympus-omd-remote-control

Wifi remote control of Olympus OMD cameras

Primary LanguagePython

Here's some script I found online

http://ameblo.jp/delphinus1024/entry-12168908704.html

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/switch_cammode.cgi?mode=rec&lvqty=0320x0240"

curl -v -X POST --header 'Content-Length: 49' --header 'Content-Type: text/plain; charset=ISO-8859-1' --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' -d 'A' "http://192.168.0.10/set_camprop.cgi?com=set&propname=takemode"

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/exec_takemisc.cgi?com=startliveview&port=37789"

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/exec_takemotion.cgi?com=assignafframe&point=0160x0120"

sleep 1 

while : 
do
    curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/exec_takemotion.cgi?com=starttake"
    sleep 5
done

curl -v --header Host: 192.168.0.10 --header Connection: Keep-Alive --header User-Agent: OI.Share v2 http://192.168.0.10/get_camprop.cgi?com=desc&propname=desclist

shutspeedvaluegetset1"livecomp livetime livebulb 60" 50" 40" 30" 25" 20" 15" 13" 10" 8" 6" 5" 4" 3.2" 2.5" 2" 1.6" 1.3" 1" 1.3 1.6 2 2.5 3 4 5 6 8 10 13 15 20 25 30 40 50 60 80 100 125 160 200 250 320 400 500 640 800 1000 1250 1600 2000 2500 3200 4000touchactiveframeget0168-0126_0302x0226takemodegetsetMiAuto P A S M ART movielowvibtimeget00 125 250 500 1000 2000 4000 8000 15000 30000 -1cameradrivemodegetnormalnormal normal normal continuous continuous continuous continuous continuous selftimer selftimer selftimer customselftimer customselftimer customselftimerSilentTimeget00 125 250 500 1000 2000 4000 8000 15000 30000 -1drivemodegetsetnormalnormal lowvib-normal silent-normal continuous-H silent-continuous-H continuous-L lowvib-continuous-L silent-continuous-L selftimer lowvib-selftimer silent-selftimer customselftimer lowvib-customselftimer silent-customselftimerfocalvaluegetset7.11.0 1.1 1.2 1.4 1.6 1.8 2.0 2.2 2.5 2.8 3.2 3.5 4.0 4.5 5.0 5.6 6.3 7.1 8.0 9.0 10 11 13 14 16 18 20 22 25 29 32 36 40 45 51 57 64 72 81 91expcompgetset+2.0-5.0 -4.7 -4.3 -4.0 -3.7 -3.3 -3.0 -2.7 -2.3 -2.0 -1.7 -1.3 -1.0 -0.7 -0.3 0.0 +0.3 +0.7 +1.0 +1.3 +1.7 +2.0 +2.3 +2.7 +3.0 +3.3 +3.7 +4.0 +4.3 +4.7 +5.0isospeedvaluegetset200Low 200 250 320 400 500 640 800 1000 1250 1600 2000 2500 3200 4000 5000 6400 8000 10000 12800 16000 20000 25600wbvaluegetset160 18 16 17 20 35 64 23 256 257 258 259 512artfiltergetsetminiaturepopart fantasic_focus daydream light_tone rough_monochrome toy_photo miniature cross_process gentle_sepia dramatic_tone ligne_clair pastel vintage partcolor programcolortonegetsetnaturalifinish vivid natural flat portrait monotone custom eportrait coloacreator popart fantasic_focus daydream light_tone rough_monochrome toy_photo miniature cross_process gentle_sepia dramatic_tone ligne_clair pastel vintage partcolorexposemoviegetsetPP A S Mcolorphasegetsetstep0step0 step1 step2 step3 step4 step5 step6 step7 step8 step9 step10 step11 step12 step13 step14 step15 step16 step17QualityMovie2getset1shortmovie set1 set2 set3 set4 customPixelShortget1080p1080pPixelSet1get1080p1080p 720pPixelSet2get1080p1080p 720pPixelSet3get1080p1080p 720pPixelSet4get1080p1080p 720pPixelCustomget1080p1080pCompShortgetfinefineCompSet1getfinefine normalCompSet2getfinefine normalCompSet3getfinefine normalCompSet4getnormalfine normalCompCustomgetfinefine normalFrameRateShortget30p24p 25p 30pFrameRateSet1get30p24p 25p 30pFrameRateSet2get30p24p 25p 30pFrameRateSet3get30p24p 25p 30pFrameRateSet4get30p24p 25p 30pFrameRateCustomget30p24p 25p 30pRecordTimeShortget4s1s 2s 4s 8sRecordTimeCustomgetoff1s 2s 4s 8s offNoiseReductionExposureTimeget1"60" 50" 40" 30" 25" 20" 15" 13" 10" 8" 6" 5" 4" 3.2" 2.5" 2" 1.6" 1.3" 1" 1.3 1.6 2SilentNoiseReductiongetoffoff autonoisereductiongetautooff on autobulbtimelimitget81 2 4 8 15 20 25 30digitaltelecongetoffoff on

curl -v --header Content-Type: text/xml --header Host: 192.168.0.10 --header Connection: Keep-Alive --header User-Agent: OI.Share v2 http://192.168.0.10/set_camprop.cgi?com=set&propname=isospeedvalue -X POST -d 800

Sequence of events:

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/switch_cammode.cgi?mode=rec&lvqty=0640x0480"

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/get_camprop.cgi?com=desc&propname=desclist"

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/get_camprop.cgi?com=desc&propname=artfilter"

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/get_camprop.cgi?com=desc&propname=isospeedvalue"

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/get_camprop.cgi?com=desc&propname=shutspeedvalue"

curl -v --header 'Content-Type: text/xml' --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/set_camprop.cgi?com=set&propname=isospeedvalue" -X POST -d '800'

Just for shutter release:

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/switch_cammode.cgi?mode=shutter"

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/exec_shutter.cgi?com=1st2ndpush"

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/exec_shutter.cgi?com=2nd1strelease"

Switch back to play mode

curl -v --header 'Host: 192.168.0.10' --header 'Connection: Keep-Alive' --header 'User-Agent: OI.Share v2' "http://192.168.0.10/switch_cammode.cgi?mode=play"