THETA Z1 setOptions problems and workarounds when Setting Multiple Commands

Overview

A few Z1 options must be set as the only option in the list of options. If multiple options are passed, the API command will fail.

API Option Test Thanks to
fileFormat Stackoverflow discussion Patrick Brennan
dateTimeZone this forum

Test with Z1 firmware 1.60.1

single option, jpeg

{
    "fileFormat" : {
        "type": "jpeg",
        "width": 6720,
        "height": 3360
    }
}

Result: success


single option, raw+

{
    "fileFormat" : {
        "type": "raw+",
        "width": 6720,
        "height": 3360
    }
}

Result: success

Verification

{height: 3360, type: raw+, width: 6720}

single option, captureMode image

{
    "captureMode": "image"
}

Result: success

Multiple Options, captureMode, fileFormat

{
    "captureMode": "image",
    "fileFormat" : {
        "type": "jpeg",
        "width": 6720,
        "height": 3360
    }    
}

result: fail with status code of 400.

Test with Z1 Firmware 1.80.1

verify firmware with info

  "firmwareVersion": "1.80.1"

Test Multiple Commands

{
    "captureMode": "image",
    "fileFormat" : {
        "type": "jpeg",
        "width": 6720,
        "height": 3360
    }    
}

Result: Fail

Test Single Command - fileFormat

{
    "fileFormat" : {
        "type": "jpeg",
        "width": 6720,
        "height": 3360
    }    
}

Result: Fail


Single option test #2 - Rebooted camera. Repeat test

Result: Fail

Single option test #3 - set single option to set captureMode to image. Repeat test.

Result: success

Single option test #4

  1. set captureMode to “video”
  2. set captureMode back to “image”
  3. set fileFormat to “raw+”

result: success

Single option test #5

set fileFormat back to “jpeg”

result: success

multiple option test #2

{
  "captureMode": "image",
  "fileFormat": {
    "type": "jpeg",
    "width": 6720,
    "height": 3360
  }
}

result: fail

1 Like