Issues on using OSC API on Theta Z1 camera

Hi,
I have a big issue on using OSC web API on my newly bought thetaZ1 camera.

I attached an image to this post to show the issue.

Basically, I just can’t control the camera via /osc/commands/execute, no matter what commands I send, I just receive 400 bad request error. (Note that /osc/state and /osc/info works properly and can return camera information message).

I have an old theta S, and it just works properly. So I thought that I’m using the API correctly. (Or maybe I’m wrong?)

I’m really confused now and I don’t know how to solve this issue.

Can anyone help me? Thanks a lot.

If you have it working on a THETA S and not the Z1, it may be the lack of Content-Type headers.

Please post a full screenshot, including HTTP headers.

If your client does not allow you to specify headers, then try Postman or Restlet Client.

If you’re using the HTTP headers, please post again and we’ll continue to try to help you resolve the problem.

Hi, I’m also facing the same problem with Theta V.

These 2 works fine
GET http://192.168.1.1/osc/info
POST http://192.168.1.1/osc/state

but not these 3
POST http://192.168.1.1/osc/commands/execute
POST http://192.168.1.1/osc/commands/status
POST http://192.168.1.1/osc/checkForUpdates

Below is the response from http://192.168.1.1/osc/commands/execute

I tried to put “application/json”, “application/json;charset=utf-8” and nothing in "Content-Type but still couldn’t make it work

You need to specific the parameters in the body.

POST /osc/commands/execute
{
    "name": "camera.getOptions",
    "parameters": {
        "optionNames": [
            "fileFormat",
            "fileFormatSupport"
        ]
    }
}

image

Examples

Old example, but you can understand the syntax.

1 Like