First Release!
All video requests are described in this section. These requests will allow for video switching, retreieving switch configuration, and retrieving video diagnostic information.
Retrieves the active matrix configuration. Shows which inputs are routed to the outputs.
Request Format Example: “none”
Arguments: “none”
curl -X GET "/GetMatrix"
GET /GetMatrix HTTP/1.1
Host:
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Sets the active video matrix configuration. Use “matrix” key to specifiy an array as the matrix configuration.Use “switch” key with input/output keys to only switch a discrete input and output. Use integer 9 for setting a source to test pattern instead of HDMI source.
Request Format Example 1:
{
"matrix": [0, 9]
}
Request Format Example 2:
{
"switch": {
"input": 3,
"output": 1
}
}
Arguments:
"matrix"
Type: Array of Integers
Parameter: Specifies which inputs are routed to each outputs. Each integer in the array specifies the source to route to that index of output.
Range: 0 - 3, array size = 2
"switch"
Type: Json Object
Parameter: Json object should contain an input and an output key and integer value with the desired input and output.
Range (input): 0 - 3
Range (output): 0 - 1
curl -X POST -d '{
"switch": {
"input": 2,
"output": 0
}
}' "/SetMatrix"
POST /SetMatrix HTTP/1.1
Host:
{
"switch": {
"input": 2,
"output": 0
}
}
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Retrieves the video parameters such as resolution and framerate of the video passing through the unit.
Request Format Example:
{
"output": 0,
"input": "all"
}
Arguments: “output” (optional) Type: Integer or String Parameter: Desired output < 0 - 1 > or a string “all” to get all outputs. “input” (optional) Type: Integer or String Parameter: Desired input < 0 - 3 > or a string “all” to get all inputs.
curl -X POST -d '{
"input": "all"
}' "/GetVideoInfo"
POST /GetVideoInfo HTTP/1.1
Host:
{
"input": "all"
}
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Retrieves the video generator parameters such as test pattern, resolution and framerate of the video being generated by the unit.
Request Format Example: “none”
Arguments: “none”
curl -X GET "/GetVidGen"
GET /GetVidGen HTTP/1.1
Host:
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Retrieves the decoded EDID information of the desired output or custom uploaded EDID.
Request Format Example:
{
"edid": "sink0"
}
Arguments: “edid”: The desired EDID to decode. “sink0” or “sink0” for the outputs, and “custom0” through “custom3” for the custom uploaded EDIDs.
curl -X POST -H "Content-Type: application/json" "192.168.22.85/GetEdidInfo"
POST 192.168.22.85/GetEdidInfo HTTP/1.1
Host:
Content-Type: application/json
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Retrieves the EDID being sent to each source in an array corresponding to each input.
Request Format Example: “none”
Arguments: “none”
curl -X GET "/GetActiveEdidInfo"
GET /GetActiveEdidInfo HTTP/1.1
Host:
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Retrieves the monitor name contained in the EDID of the sink device.
Request Format Example: “none”
Arguments: “none”
curl -X GET "/GetSinkName"
GET /GetSinkName HTTP/1.1
Host:
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Retrieves the monitor name contained in any custom EDID uploaded to the unit if any.
Request Format Example: “none”
Arguments: “none”
curl -X GET "/GetCustomEdidInfo"
GET /GetCustomEdidInfo HTTP/1.1
Host:
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Sets the desired EDID to the desired source. For “1080p60” EDID, HDR is not required and has no effect, only “audio ch”. For “2160p30” and “2160p60”, both “audio ch” and “hdr” are required. For all others, “audio ch” and “hdr” is not required and has no effect.
Request Format Example:
{
"source": 0,
"edid": "1080p60",
"audio ch": 2,
"hdr": false
}
Arguments:
"source" (required)
Type: Integer or String
Parameter: Select the desired source specifying the number or "all" for all sources.
"edid" (required)
Type: String
Parameter: Select the desired edid between "1080p60", "2160p30", "2160p60", "sink", "custom0", "custom1", "custom2", or "custom3". Note if selecting "1080p60", then "audio ch" parameter must be included. If selecting "2160p30", or "2160p60" then "audio ch" and "hdr" parameter must be included.
"audio ch" (dependency)
Type: String or Integer
Parameter: Select the desired audio channels for "1080p60", "2160p30", or "2160p60" edids.
"hdr" (dependency)
Type: String or Integer
Parameter: Select if HDR is desired for "2160p30" or "2160p60" edids.
curl -X POST -H "Content-Type: application/json" -d '{
"source": "all",
"edid": "sink"
}' "/SetEdid"
POST /SetEdid HTTP/1.1
Host:
Content-Type: application/json
{
"source": "all",
"edid": "sink"
}
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
All audio requests are described in this section. These requests will allow for audio switching and retrieving switch configuration. Furthermore, analog audio settings can be set and retrieved as well.
Retrieves all analog audio settings for the selected output.
Request Format Example:
{
"output": 0
}
Arguments: “output” (required) Type: Integer Parameter: Desired output < 0 - 1 >
curl -X POST -d '{
"output": 0
}' "/GetAudioSettings"
POST /GetAudioSettings HTTP/1.1
Host:
{
"output": 0
}
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Sets desired analog output settings. All settings are optional and only requested settings will take effect.
Request Format Example:
{
"output": 0,
"analog type": "balanced",
"audiosel": "local",
"mute": false,
"volume": 50,
"tune mode": "disabled",
"presets": "flat",
"band0": 0,
"band1": 0,
"band2": 0,
"band3": 0,
"band4": 0,
"basstone": 0,
"treble": 0,
"surround": false,
"surrlevel": 1,
"basslevel": 31,
"bass": false,
"bassfreq": 100,
"highpass": false
}
Arguments:
"output" (required)
Type: Integer
Parameter: The desired output to change settings for.
"analog type" (optional)
Type: String
Parameter: Sets the analog type for 'balanced' or 'unbalanced'.
"audiosel" (optional)
Type: String
Parameter: Sets the analog output source for HDMI local or HDMI ARC.
"mute" (optional)
Type: Boolean
Parameter: Mutes the analog output when true, unmutes when false.
"volume" (optional)
Type: Integer
Parameter: Sets the analog output volume level from 0 to 100.
"tune mode" (optional)
Type: String
Parameter: Sets the digital processing unit to "disabled", "presets", "equalizer", or "tonecontrol".
"presets" (optional)
Type: String
Parameter: Sets the preset to "flat", "rock", "classical", "dance", or "acoustic". Note that tune mode must be set to "presets" to have an effect.
"band0" (optional)
Type: Integer
Parameter: Sets the 115 Hz band of the graphic EQ to -11.75 dB to 12 dB. Note that tune mode must be set to "equalizer" to have an effect.
"band1" (optional)
Type: Integer
Parameter: Sets the 330 Hz band of the graphic EQ to -11.75 dB to 12 dB. Note that tune mode must be set to "equalizer" to have an effect.
"band2" (optional)
Type: Integer
Parameter: Sets the 990 Hz band of the graphic EQ to -11.75 dB to 12 dB. Note that tune mode must be set to "equalizer" to have an effect.
"band3" (optional)
Type: Integer
Parameter: Sets the 3000 Hz band of the graphic EQ to -11.75 dB to 12 dB. Note that tune mode must be set to "equalizer" to have an effect.
"band4" (optional)
Type: Integer
Parameter: Sets the 9900 Hz band of the graphic EQ to -11.75 dB to 12 dB. Note that tune mode must be set to "equalizer" to have an effect.
"basstone" (optional)
Type: Integer
Parameter: Sets the bass of the tone control to -11.75 dB to 12 dB. Note that tune mode must be set to "tonecontrol" to have an effect.
"treble" (optional)
Type: Integer
Parameter: Sets the treble of the tone control to -11.75 dB to 12 dB. Note that tune mode must be set to "tonecontrol" to have an effect.
"surround" (optional)
Type: Boolean
Parameter: Enables or disables the surround effect.
"surrlvl" (optional)
Type: Integer
Parameter: Sets the surround effect level to a value between 0 (least) and 7 (most).
"bass" (optional)
Type: Boolean
Parameter: Enables or disables the bass enchancement effect.
"basslvl" (optional)
Type: Integer
Parameter: Sets the surround effect level to a value between 0 (least) and 127 (most).
"bassfreq" (optional)
Type: Integer
Parameter: Sets the cutoff frequency for the bass enchancement to 80, 100, 125, 150, 175, 200, or 225.
"highpass" (optional)
Type: Boolean
Parameter: Enables or disables the highpass filter for the bass enchancement.
curl -X POST -H "Content-Type: application/json" -d '{
"output": 0,
"audiosel": "local",
"analog type": "balanced",
"mute": false,
"volume": 50,
"tune mode": "tonecontrol",
"presets": "flat",
"band0": 5,
"band1": 10,
"band2": -10,
"band3": -5,
"band4": 0,
"basstone": 0,
"treble": 0,
"surround": false,
"surrlevel": 1,
"basslevel": 31,
"bass": false,
"bassfreq": 100,
"highpass": false
}' "/SetAudioSettings"
POST /SetAudioSettings HTTP/1.1
Host:
Content-Type: application/json
{
"output": 0,
"audiosel": "local",
"analog type": "balanced",
"mute": false,
"volume": 50,
"tune mode": "tonecontrol",
"presets": "flat",
"band0": 5,
"band1": 10,
"band2": -10,
"band3": -5,
"band4": 0,
"basstone": 0,
"treble": 0,
"surround": false,
"surrlevel": 1,
"basslevel": 31,
"bass": false,
"bassfreq": 100,
"highpass": false
}
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Retrieves the administration settings such as network settings and serial number.
Request Format Example: “none”
Arguments: “none”
curl -X GET "/GetAdminInfo"
GET /GetAdminInfo HTTP/1.1
Host:
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Restarts the unit.
Request Format Example: “none”
Arguments: “none”
curl -X GET "/Restart"
GET /Restart HTTP/1.1
Host:
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Restores all settings to factory defaults.
Request Format Example: “none”
Arguments: “none”
curl -X GET "/Reset"
GET /Reset HTTP/1.1
Host:
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Checks if a firmware update is avaliable for this unit.
Request Format Example: “none”
Arguments: “none”
curl -X POST -H "Content-Type: application/json" "/GetUpdateInfo"
POST /GetUpdateInfo HTTP/1.1
Host:
Content-Type: application/json
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|
Requests that the unit update itself. Note that unit must have an update avaliable to be able to update. Use “Get Update Info” to check if an update is avaliable.
Request Format Example: “none”
Arguments: “none”
curl -X GET "/Update"
GET /Update HTTP/1.1
Host:
Status | 200 OK |
---|---|
Server | zigenIP (http://zigencorp.com) |
Content-type | application/json |
|