I am trying to use the THETA USB API to control a THETA Z1 from a Raspberry Pi.
I created the following shell script and tried to run it periodically using cron on multiple THETA Z1. However, some THETA Z1 are not able to run it regularly.
The shutter speed is set in an external file.
echo ' --- Wake Theta from Sleep !!'
theta --set-property=0xD80E --val=0x00
sleep 15
echo ' --- Set Exposure Mode -> Manual !!'
theta --set-property=0x500E --val=0x0001
echo ' --- Set F-Number -> F2.1 !!'
theta --set-property=0x5007 --val=0x00D2
echo ' --- Set Image Size -> 6720x3360 !!'
theta --set-property=0x5003 --val="6720x3360"
echo ' --- Set ISO Number -> 100 !!'
theta --set-property=0x500F --val=100
echo ' --- Set Audio volume -> 0 !!'
theta --set-property=0x502C --val=0
echo ' --- Set Color Temperature Mode -> Manual !!'
theta --set-property=0x5005 --val=0x8007
echo ' --- Set Color Temperature[K] -> 6500 !!'
theta --set-property=0xD813 --val=6500
echo ' --- Set File Format -> JPEG !!'
theta --set-property=0xD827 --val=0x00
sleep 5
## ---------------------------
wait_cap=3
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 25000 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_25000.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 12500 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_12500.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 3200 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_3200.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 1600 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_1600.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 400 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_400.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 200 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_200.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 50 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_50.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 25 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_25.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 6 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_6.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 3 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-1_3.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
echo ' '
echo ' #### #### #### #### #### #### #### #### #### #### #### ####'
echo ' '
echo ' --- Set Shutter Speed from Config File !!'
echo ' --- 1 / 1.6 ---'
echo ' '
theta -R 0x1016,0xd00f,0,0,0,0,/home/kankyo/theta/ext-10_16.bin
sleep 0.5
echo ' '
echo ' ### Capture Command! ###'
echo ' '
theta --capture
echo ' '
sleep ${wait_cap}
## ---------------------------------------------------------------------
theta --set-property=0xD80E --val=0x01
The current situation is as follows.
・There were no particular problems when running the program before regular execution.
・When I checked the log during regular execution, it said “Could not open session.”
・If I enter the “theta --info” command, device information will appear, so it is probably unmounted.
・THETA Z1, which cannot be executed regularly, is a rental product. The shooting settings set by the previous user remain on the THETA.
There seems to be a problem with THETA Z1, but I don’t know why it cannot be run regularly. I would appreciate your advice.