hyperion.ng/libsrc/hyperion/hyperion.schema.json

929 lines
15 KiB
JSON
Raw Normal View History

{
2016-07-16 20:33:09 +02:00
"type" : "object",
"required" : true,
"properties" :
{
"logger" :
{
"type" : "object",
"title" : "Logging",
2016-07-16 20:33:09 +02:00
"properties" :
{
"level" :
{
2016-08-30 23:49:21 +02:00
"type" : "string",
"enum" : ["silent", "warn", "verbose", "debug"],
"title" : "Log-Level"
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"device" :
{
"type" : "object",
"required" : true,
"properties" :
{
"name" :
{
"type" : "string",
"required" : true
},
"type" :
{
"type" : "string",
"required" : true
},
"output" :
{
"type" : "string"
2016-07-16 20:33:09 +02:00
},
"rate" :
{
"type" : "integer",
"minimum" : 0
},
"colorOrder" :
{
"type" : "string",
"enum" : ["rgb", "bgr", "rbg", "brg", "gbr", "grb"]
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : true
2016-07-16 20:33:09 +02:00
},
"color" :
{
"type":"object",
"required" : true,
"properties":
{
"channelAdjustment_enable" :
{
"type" : "boolean"
},
2016-07-16 20:33:09 +02:00
"channelAdjustment" :
{
"type" : "array",
"required" : true,
"items" :
{
"type" : "object",
"required" : true,
"properties" :
{
"id" :
{
"type" : "string",
"required" : true
},
"leds" :
{
"type" : "string",
"required" : true
},
"pureRed" :
{
"type":"object",
"required" : true,
"properties":
{
"redChannel" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
},
"greenChannel" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
},
"blueChannel" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
}
},
"additionalProperties" : false
},
"pureGreen" :
{
"type":"object",
"required" : true,
"properties":
{
"redChannel" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
},
"greenChannel" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
},
"blueChannel" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
}
},
"additionalProperties" : false
},
"pureBlue" :
{
"type":"object",
"required" : true,
"properties":
{
"redChannel" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
},
"greenChannel" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
},
"blueChannel" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
}
},
"additionalProperties" : false
}
},
"additionalProperties" : false
}
},
"temperature_enable" :
{
"type" : "boolean"
},
2016-07-16 20:33:09 +02:00
"temperature" :
{
"type" : "array",
"required" : true,
"items" :
{
"type" : "object",
"required" : true,
"properties" :
{
"id" :
{
"type" : "string",
"required" : true
},
"leds" :
{
"type" : "string",
"required" : true
},
"correctionValues" :
{
"type":"object",
"required" : true,
"properties":
{
"red" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
},
"green" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
},
"blue" :
{
"type": "integer",
"required" : true,
"minimum": 0,
"maximum": 255
}
},
"additionalProperties" : false
}
},
"additionalProperties" : false
}
},
"transform_enable" :
{
"type" : "boolean"
},
2016-07-16 20:33:09 +02:00
"transform" :
{
"type" : "array",
"required" : true,
"items" :
{
"type" : "object",
"required" : true,
"properties" :
{
"id" :
{
"type" : "string",
"required" : true
},
"leds" :
{
"type" : "string",
"required" : true
},
"hsl" :
{
"type":"object",
"required" : true,
"properties":
{
"saturationGain" :
{
"type" : "number",
"required" : true,
"minimum" : 0.0
},
"luminanceGain" :
{
"type" : "number",
"required" : true,
"minimum" : 0.0
},
"luminanceMinimum" :
{
"type" : "number",
"required" : true,
"minimum" : 0.0
}
},
"additionalProperties" : false
},
"red" :
{
"type":"object",
"required" : true,
"properties":
{
"threshold" :
{
"type" : "number",
"required" : true,
"minimum" : 0.0,
"maximum": 1.0
},
"gamma" :
{
"type" : "number",
"required" : true,
"minimum" : 0.0,
"maximum": 100.0
}
},
"additionalProperties" : false
},
"green" :
{
"type":"object",
"required" : true,
"properties":
{
"threshold" :
{
"type" : "number",
"required" : true,
"minimum" : 0.0,
"maximum": 1.0
},
"gamma" :
{
"type" : "number",
"required" : true,
"minimum" : 0.0,
"maximum": 100.0
}
},
"additionalProperties" : false
},
"blue" :
{
"type":"object",
"required" : true,
"properties":
{
"threshold" :
{
"type" : "number",
"required" : true,
"minimum" : 0.0,
"maximum": 1.0
},
"gamma" :
{
"type" : "number",
"required" : true,
"minimum" : 0.0,
"maximum": 100.0
}
},
"additionalProperties" : false
}
},
"additionalProperties" : false
}
}
},
"additionalProperties" : false
},
"smoothing":
{
"type" : "object",
"properties" :
{
"enable" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"type" :
{
"enum" : ["linear"]
},
"time_ms" :
{
"type" : "integer",
"minimum" : 25,
"maximum": 600
},
"updateFrequency" :
{
"type" : "number",
"minimum" : 1.000,
"maximum": 100.000
},
"updateDelay" :
{
"type" : "integer",
"minimum" : 0,
"maximum": 2048
},
"continuousOutput" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"grabber-v4l2" :
{
"type":"array",
"items":
2016-07-16 20:33:09 +02:00
{
"type" : "object",
"properties" :
2016-07-16 20:33:09 +02:00
{
"enable" :
{
"type" : "boolean"
},
"device" :
{
"type" : "string"
},
"input" :
{
"type" : "integer"
},
"standard" :
{
"type" : "string"
},
"width" :
{
"type" : "integer"
},
"height" :
{
"type" : "integer"
},
"frameDecimation" :
{
"type" : "integer"
},
"sizeDecimation" :
{
"type" : "integer"
},
"priority" :
{
"type" : "integer"
},
"mode" :
{
"type" : "string"
},
"useKodiChecker" :
{
"type" : "boolean"
},
"cropLeft" :
{
"type" : "integer"
},
"cropRight" :
{
"type" : "integer"
},
"cropTop" :
{
"type" : "integer"
},
"cropBottom" :
{
"type" : "integer"
},
"redSignalThreshold" :
{
"type" : "number"
},
"greenSignalThreshold" :
{
"type" : "number"
},
"blueSignalThreshold" :
{
"type" : "number"
}
2016-07-16 20:33:09 +02:00
},
"additionalProperties" : false
}
2016-07-16 20:33:09 +02:00
},
"framegrabber" :
{
"type" : "object",
"properties" :
{
"enable" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"type" :
{
"type" : "string"
},
2016-07-16 20:33:09 +02:00
"width" :
{
"type" : "integer"
2016-07-16 20:33:09 +02:00
},
"height" :
{
"type" : "integer"
2016-07-16 20:33:09 +02:00
},
"frequency_Hz" :
{
"type" : "integer",
"minimum" : 0
2016-07-16 20:33:09 +02:00
},
"priority" :
{
"type" : "integer"
},
"cropLeft" :
2016-07-16 20:33:09 +02:00
{
"type" : "integer",
"minimum" : 0
},
"cropRight" :
{
"type" : "integer",
"minimum" : 0
},
"cropTop" :
{
"type" : "integer",
"minimum" : 0
},
"cropBottom" :
{
"type" : "integer",
"minimum" : 0
},
"useXGetImage" :
{
"type" : "boolean"
},
"horizontalPixelDecimation" :
{
"type" : "integer",
"minimum" : 0
},
"verticalPixelDecimation" :
{
"type" : "integer",
"minimum" : 0
},
"device" :
{
"type" : "string"
},
"display" :
{
"type" : "integer",
"minimum" : 0
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
2016-07-16 20:33:09 +02:00
},
"blackborderdetector" :
{
"type" : "object",
"properties" :
{
"enable" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"threshold" :
{
"type" : "number",
"minimum" : 0.0,
"maximum" : 1.0
},
"unknownFrameCnt" :
{
"type" : "number",
"minimum" : 0
},
"borderFrameCnt" :
{
"type" : "number",
"minimum" : 0
},
"maxInconsistentCnt" :
{
"type" : "number",
"minimum" : 0
},
"blurRemoveCnt" :
{
"type" : "number",
"minimum" : 0
},
2016-07-16 20:33:09 +02:00
"mode" :
{
"type" :
{
"enum" : ["default", "classic", "osd"]
}
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"kodiVideoChecker" :
{
"type" : "object",
"properties" :
{
"enable" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"kodiAddress" :
{
"type" : "string"
2016-07-16 20:33:09 +02:00
},
"kodiTcpPort" :
{
"type" : "integer"
2016-07-16 20:33:09 +02:00
},
"grabVideo" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"grabPictures" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"grabAudio" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"grabMenu" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"grabPause" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"grabScreensaver" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
},
"enable3DDetection" :
{
"type" : "boolean"
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"initialEffect" :
{
"type" : "object",
"properties" :
{
"background-effect" :
{
"type" : "array"
2016-07-16 20:33:09 +02:00
},
"background-effect-args" :
{
"type" : "object"
2016-07-16 20:33:09 +02:00
},
"foreground-effect" :
{
"type" : "array"
2016-07-16 20:33:09 +02:00
},
"foreground-effect-args" :
{
"type" : "object"
2016-07-16 20:33:09 +02:00
},
"foreground-duration_ms" :
{
"type" : "integer"
}
2016-07-16 20:33:09 +02:00
},
"additionalProperties" : false
},
2016-07-16 20:33:09 +02:00
"forwarder" :
{
"type" : "object",
"required" : true,
"properties" :
{
"enable" :
{
"type" : "boolean",
"required" : true
},
"json" :
{
"type" : "array",
"required" : true
},
"proto" :
{
"type" : "array",
"required" : true
}
},
"additionalProperties" : false
},
"jsonServer" :
{
"type" : "object",
"required" : true,
"title" : "JSON Server",
2016-07-16 20:33:09 +02:00
"properties" :
{
"port" :
{
"type" : "integer",
"required" : true,
"title" : "Port",
2016-07-16 20:33:09 +02:00
"minimum" : 0,
"maximum" : 65535
}
},
"additionalProperties" : false
},
"protoServer" :
{
"type" : "object",
"required" : true,
"title" : "Proto Server",
2016-07-16 20:33:09 +02:00
"properties" :
{
"port" :
{
"type" : "integer",
"required" : true,
"title" : "Port",
2016-07-16 20:33:09 +02:00
"minimum" : 0,
"maximum" : 65535
}
},
"additionalProperties" : false
},
"boblightServer" :
{
"type" : "object",
"title" : "Boblight Server",
2016-07-16 20:33:09 +02:00
"properties" :
{
"enable" :
{
"type" : "boolean",
2016-08-31 00:46:39 +02:00
"format": "checkbox",
"title" : "Activate"
2016-07-16 20:33:09 +02:00
},
"port" :
{
"type" : "integer",
"required" : true,
"title" : "Port",
2016-07-16 20:33:09 +02:00
"minimum" : 0,
"maximum" : 65535
},
"priority" :
{
"type" : "integer",
"title" : "Priority"
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"udpListener" :
{
"type" : "object",
"title" : "UDP Listener",
2016-07-16 20:33:09 +02:00
"properties" :
{
"enable" :
{
"type" : "boolean",
2016-08-31 00:46:39 +02:00
"format": "checkbox",
"title" : "Activate"
2016-07-16 20:33:09 +02:00
},
"address" :
{
"type" : "string",
"title" : "Address",
2016-07-16 20:33:09 +02:00
"required" : true
},
"port" :
{
"type" : "integer",
"title" : "Port",
2016-07-16 20:33:09 +02:00
"minimum" : 0,
"maximum" : 65535
},
"priority" :
{
"type" : "integer",
"title" : "Priority"
2016-07-16 20:33:09 +02:00
},
"timeout" :
{
"type" : "integer",
"title" : "Timeout"
2016-07-16 20:33:09 +02:00
},
"shared" :
{
"type" : "boolean",
2016-08-31 00:46:39 +02:00
"format": "checkbox",
"title" : "Shared"
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"webConfig" :
{
"type" : "object",
"title" : "WebUI - DANGER CHANGES CAN MAKE THE WEBUI UNREACHABLE!",
2016-07-16 20:33:09 +02:00
"required" : true,
"properties" :
{
"enable" :
{
"type" : "boolean",
2016-08-31 00:46:39 +02:00
"format": "checkbox",
"title" : "Activate",
2016-07-16 20:33:09 +02:00
"required" : true
},
"document_root" :
{
"type" : "string",
"title" : "Document Root",
2016-07-16 20:33:09 +02:00
"required" : true
},
"port" :
{
"type" : "integer",
2016-08-31 00:22:17 +02:00
"title" : "Port",
2016-07-16 20:33:09 +02:00
"required" : true
}
},
"additionalProperties" : false
},
"effects" :
{
"type" : "object",
"properties" :
{
"paths" :
{
"type" : "array"
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"leds":
{
"type":"array",
"required":true,
"items":
{
"type":"object",
"properties":
{
"index":
{
"type":"integer",
"required":true
},
"clone":
{
"type":"integer"
},
2016-07-16 20:33:09 +02:00
"hscan":
{
"type":"object",
"properties":
{
"minimum":
{
"type":"number",
"minimum" : 0,
"maximum" : 1,
2016-07-16 20:33:09 +02:00
"required":true
},
"maximum":
{
"type":"number",
"minimum" : 0,
"maximum" : 1,
2016-07-16 20:33:09 +02:00
"required":true
}
},
"additionalProperties" : false
},
"vscan":
{
"type":"object",
"properties":
{
"minimum":
{
"type":"number",
"minimum" : 0,
"maximum" : 1,
2016-07-16 20:33:09 +02:00
"required":true
},
"maximum":
{
"type":"number",
"minimum" : 0,
"maximum" : 1,
2016-07-16 20:33:09 +02:00
"required":true
}
},
"additionalProperties" : false
},
"colorOrder":
{
"type": "string",
"enum" : ["bgr", "rbg", "brg", "gbr", "grb"]
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
}
}
},
"additionalProperties" : false
}