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

1156 lines
22 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",
"default" : "warn"
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"device" :
{
"type" : "object",
"title" : "LED Device General",
2016-07-16 20:33:09 +02:00
"required" : true,
"defaultProperties": ["name","ledCount","colorOrder","rewriteTime"],
2016-07-16 20:33:09 +02:00
"properties" :
{
"name" :
{
"type" : "string",
"title" : "Configuration name",
"required" : true,
"propertyOrder" : 1
2016-07-16 20:33:09 +02:00
},
"type" :
{
"type" : "string",
"required" : true
},
"ledCount" :
2016-07-16 20:33:09 +02:00
{
"type" : "integer",
"minimum" : 0,
"title" : "Count of all hardware LEDs",
"propertyOrder" : 2
2016-07-16 20:33:09 +02:00
},
"colorOrder" :
{
"type" : "string",
"title" : "RGB byte order",
"enum" : ["rgb", "bgr", "rbg", "brg", "gbr", "grb"],
"propertyOrder" : 3
},
"rewriteTime": {
"type": "integer",
"title":"Refresh time",
"default": 5000,
"append" : "ms",
"minimum": 0,
"propertOrder" : 4
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : true
2016-07-16 20:33:09 +02:00
},
"color" :
{
"type":"object",
"title" : "Color Calibration",
2016-07-16 20:33:09 +02:00
"required" : true,
"defaultProperties": ["channelAdjustment_enable","channelAdjustment","transform_enable","transform"],
2016-07-16 20:33:09 +02:00
"properties":
{
"channelAdjustment_enable" :
{
"type" : "boolean",
"default" : true,
"propertyOrder" : 1
},
"channelAdjustment_v4l_only" :
{
"type" : "boolean",
"default" : false,
"propertyOrder" : 2
},
2016-07-16 20:33:09 +02:00
"channelAdjustment" :
{
"type" : "array",
"required" : true,
"propertyOrder" : 3,
2016-07-16 20:33:09 +02:00
"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
}
},
"transform_enable" :
2016-07-16 20:33:09 +02:00
{
"type" : "boolean",
"default" : true,
"propertyOrder" : 4
2016-07-16 20:33:09 +02:00
},
"transform_v4l_only" :
{
"type" : "boolean",
"default" : false,
"propertyOrder" : 5
},
2016-07-16 20:33:09 +02:00
"transform" :
{
"type" : "array",
"required" : true,
"propertyOrder" : 6,
2016-07-16 20:33:09 +02:00
"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",
"title" : "Smoothing",
"properties" :
{
"enable" :
{
"type" : "boolean",
"title" : "Activate",
"default" : true,
"propertyOrder" : 1
2016-07-16 20:33:09 +02:00
},
"type" :
{
"type" : "string",
"title" : "Type",
"enum" : ["linear"],
"default" : "linear",
"propertyOrder" : 2
},
"time_ms" :
{
"type" : "integer",
"title" : "Time",
"minimum" : 25,
"maximum": 600,
"default" : 200,
"append" : "ms",
"propertyOrder" : 3
},
"updateFrequency" :
{
"type" : "number",
"title" : "Update frequency",
"minimum" : 1.0,
"maximum" : 100.0,
"default" : 25.0,
"append" : "Hz",
"propertyOrder" : 4
},
"updateDelay" :
{
"type" : "integer",
"title" : "Update delay",
"minimum" : 0,
"maximum": 2048,
"default" : 0,
"append" : "ms",
"propertyOrder" : 5
},
"continuousOutput" :
{
"type" : "boolean",
"title" : "Continuous output",
"default" : true,
"propertyOrder" : 6
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"grabberV4L2" :
2016-07-16 20:33:09 +02:00
{
"type":"array",
"title" : "USB Grabber",
"minItems": 1,
"maxItems": 2,
"items":
2016-07-16 20:33:09 +02:00
{
"type" : "object",
"title" : "USB Grabber",
"properties" :
2016-07-16 20:33:09 +02:00
{
"enable" :
{
"type" : "boolean",
"title" : "Activate",
"default" : false,
"propertyOrder" : 1
},
"device" :
{
"type" : "string",
"title" : "Device",
"default" : "auto",
"propertyOrder" : 2
},
"input" :
{
"type" : "integer",
"title" : "Input",
"minimum" : 0,
"default" : 0,
"propertyOrder" : 3
},
"standard" :
{
"type" : "string",
"title" : "Video standard",
"enum" : ["PAL","NTSC"],
"default" : "PAL",
"propertyOrder" : 4
},
"width" :
{
"type" : "integer",
"title" : "Width",
"minimum" : -1,
"default" : -1,
"append" : "Pixel",
"propertyOrder" : 5
},
"height" :
{
"type" : "integer",
"title" : "Height",
"minimum" : -1,
"default" : -1,
"append" : "Pixel",
"propertyOrder" : 6
},
"frameDecimation" :
{
"type" : "integer",
"title" : "Frame decimation",
"minimum" : 0,
"default" : 2,
"propertyOrder" : 7
},
"sizeDecimation" :
{
"type" : "integer",
"title" : "Size decimation",
"minimum" : 0,
"default" : 6,
"propertyOrder" : 8
},
"priority" :
{
"type" : "integer",
"minimum" : 0,
"title" : "Priority channel",
"default" : 900,
"propertyOrder" : 9
},
"mode" :
{
"type" : "string",
"title" : "Mode",
"enum" : ["2D","3DSBS","3DTAB"],
"default" : "2D",
"propertyOrder" : 10
},
"useKodiChecker" :
{
"type" : "boolean",
"title" : "Use Kodi Watch",
"default" : false,
"propertyOrder" : 11
},
"cropLeft" :
{
"type" : "integer",
"title" : "Crop left",
"minimum" : 0,
"default" : 0,
"append" : "Pixel",
"propertyOrder" : 12
},
"cropRight" :
{
"type" : "integer",
"title" : "Crop right",
"minimum" : 0,
"default" : 0,
"append" : "Pixel",
"propertyOrder" : 13
},
"cropTop" :
{
"type" : "integer",
"title" : "Crop top",
"minimum" : 0,
"default" : 0,
"append" : "Pixel",
"propertyOrder" : 14
},
"cropBottom" :
{
"type" : "integer",
"title" : "Crop bottom",
"minimum" : 0,
"default" : 0,
"append" : "Pixel",
"propertyOrder" : 15
},
"redSignalThreshold" :
{
"type" : "number",
"title" : "Red signal threshold",
"minimum" : 0.0,
"maximum" : 1.0,
"default" : 0.1,
"step" : 0.01,
"append" : "%",
"propertyOrder" : 16
},
"greenSignalThreshold" :
{
"type" : "number",
"title" : "Green signal threshold",
"minimum" : 0.0,
"maximum" : 1.0,
"default" : 0.1,
"step" : 0.01,
"append" : "%",
"propertyOrder" : 17
},
"blueSignalThreshold" :
{
"type" : "number",
"title" : "Blue signal threshold",
"minimum" : 0.0,
"maximum" : 1.0,
"default" : 0.1,
"step" : 0.01,
"append" : "%",
"propertyOrder" : 18
}
2016-07-16 20:33:09 +02:00
},
"additionalProperties" : false
}
2016-07-16 20:33:09 +02:00
},
"framegrabber" :
{
"type" : "object",
"title" : "Framegrabber",
2016-07-16 20:33:09 +02:00
"properties" :
{
"enable" :
{
"type" : "boolean",
"title" : "Activate",
"default" : true,
"propertyOrder" : 1
2016-07-16 20:33:09 +02:00
},
"type" :
{
"type" : "string",
"title" : "Type",
"enum" : ["auto","dispmanx","amlogic","x11","framebuffer"],
"default" : "auto"
},
2016-07-16 20:33:09 +02:00
"width" :
{
"type" : "integer",
"title" : "Width",
"minimum" : 10,
"default" : 80,
"append" : "Pixel"
2016-07-16 20:33:09 +02:00
},
"height" :
{
"type" : "integer",
"title" : "Height",
"minimum" : 10,
"default" : 45,
"append" : "Pixel"
2016-07-16 20:33:09 +02:00
},
"frequency_Hz" :
{
"type" : "integer",
"title" : "Frequency",
"minimum" : 1,
"default" : 10,
"append" : "Hz"
2016-07-16 20:33:09 +02:00
},
"priority" :
{
"type" : "integer",
"title" : "Priority channel",
"minimum" : 0,
"default" : 890
},
"cropLeft" :
2016-07-16 20:33:09 +02:00
{
"type" : "integer",
"title" : "Crop left",
"minimum" : 0,
"default" : 0,
"append" : "Pixel"
},
"cropRight" :
{
"type" : "integer",
"title" : "Crop right",
"minimum" : 0,
"default" : 0,
"append" : "Pixel"
},
"cropTop" :
{
"type" : "integer",
"title" : "Crop top",
"minimum" : 0,
"default" : 0,
"append" : "Pixel"
},
"cropBottom" :
{
"type" : "integer",
"title" : "Crop bottom",
"minimum" : 0,
"default" : 0,
"append" : "Pixel"
},
"useXGetImage" :
{
"type" : "boolean",
"title" : "Use XGetImage",
"default" : false
},
"horizontalPixelDecimation" :
{
"type" : "integer",
"title" : "Horizontal pixel decimation",
"minimum" : 0,
"default" : 8
},
"verticalPixelDecimation" :
{
"type" : "integer",
"title" : "Vertical pixel decimation",
"minimum" : 0,
"default" : 8
},
"device" :
{
"type" : "string",
"title" : "Device",
"default" : "/dev/fb0"
},
"display" :
{
"type" : "integer",
"title" : "Display",
"minimum" : 0
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
2016-07-16 20:33:09 +02:00
},
"blackborderdetector" :
{
"type" : "object",
"title" : "Blackbar detector",
"defaultProperties": ["enable","mode","threshold"],
2016-07-16 20:33:09 +02:00
"properties" :
{
"enable" :
{
"type" : "boolean",
"title" : "Activate",
"default" : true,
"propertyOrder" : 1
2016-07-16 20:33:09 +02:00
},
"threshold" :
{
"type" : "number",
"title" : "Threshold",
2016-07-16 20:33:09 +02:00
"minimum" : 0.0,
"maximum" : 1.0,
"default" : 0.05,
"step" : 0.01,
"append" : "%",
"propertyOrder" : 2
},
"unknownFrameCnt" :
{
"type" : "integer",
"minimum" : 0,
"default" : 600,
"propertyOrder" : 3
},
"borderFrameCnt" :
{
"type" : "integer",
"minimum" : 0,
"default" : 50,
"propertyOrder" : 4
},
"maxInconsistentCnt" :
{
"type" : "integer",
"minimum" : 0,
"default" : 10,
"propertyOrder" : 5
},
"blurRemoveCnt" :
{
"type" : "integer",
"minimum" : 0,
"default" : 1,
"propertyOrder" : 6
},
2016-07-16 20:33:09 +02:00
"mode" :
{
"type" : "string",
"title": "Mode",
"enum" : ["default", "classic", "osd"],
"default" : "default",
"propertyOrder" : 7
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"kodiVideoChecker" :
{
"type" : "object",
"title" : "Kodi Watch",
2016-07-16 20:33:09 +02:00
"properties" :
{
"enable" :
{
"type" : "boolean",
"title" : "Activate",
"default" : false,
"propertyOrder" : 1
2016-07-16 20:33:09 +02:00
},
"kodiAddress" :
{
"type" : "string",
"title" : "Kodi IP address",
"default" : "127.0.0.1",
"propertyOrder" : 2
2016-07-16 20:33:09 +02:00
},
"kodiTcpPort" :
{
"type" : "integer",
"title" : "Kodi TCP port",
"minimum" : 0,
"maximum" : 65535,
"default" : 9090,
"propertyOrder" : 3
2016-07-16 20:33:09 +02:00
},
"grabVideo" :
{
"type" : "boolean",
"title" : "Video",
"default" : true,
"propertyOrder" : 4
2016-07-16 20:33:09 +02:00
},
"grabPictures" :
{
"type" : "boolean",
"title" : "Pictures",
"default" : true,
"propertyOrder" : 5
2016-07-16 20:33:09 +02:00
},
"grabAudio" :
{
"type" : "boolean",
"title" : "Audio",
"default" : true,
"propertyOrder" : 6
2016-07-16 20:33:09 +02:00
},
"grabMenu" :
{
"type" : "boolean",
"title" : "Menu",
"default" : false,
"propertyOrder" : 7
2016-07-16 20:33:09 +02:00
},
"grabPause" :
{
"type" : "boolean",
"title" : "Pause",
"default" : false,
"propertyOrder" : 8
2016-07-16 20:33:09 +02:00
},
"grabScreensaver" :
{
"type" : "boolean",
"title" : "Screensaver",
"default" : false,
"propertyOrder" : 9
2016-07-16 20:33:09 +02:00
},
"enable3DDetection" :
{
"type" : "boolean",
"title" : "Detect 3D",
"default" : false,
"propertyOrder" : 10
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"initialEffect" :
{
"type" : "object",
"title" : "Initial Effect",
"defaultProperties": ["background-effect","foreground-effect","foreground-duration_ms"],
2016-07-16 20:33:09 +02:00
"properties" :
{
"background-effect" :
{
"type" : "array",
"title" : "Background effect",
"propertyOrder" : 3
2016-07-16 20:33:09 +02:00
},
"background-effect-args" :
{
"type" : "object",
"title" : "Background effect arguments"
2016-07-16 20:33:09 +02:00
},
"foreground-effect" :
{
"type" : "array",
"title" : "Boot effect",
"propertyOrder" : 1
2016-07-16 20:33:09 +02:00
},
"foreground-effect-args" :
{
"type" : "object",
"title" : "Boot effect arguments"
2016-07-16 20:33:09 +02:00
},
"foreground-duration_ms" :
{
"type" : "integer",
"title" : "Boot effect duration",
"propertyOrder" : 2
}
2016-07-16 20:33:09 +02:00
},
"additionalProperties" : false
},
2016-07-16 20:33:09 +02:00
"forwarder" :
{
"type" : "object",
"title" : "Forwarder",
2016-07-16 20:33:09 +02:00
"required" : true,
"properties" :
{
"enable" :
{
"type" : "boolean",
"title" : "Activate",
"required" : true,
"propertyOrder" : 1
2016-07-16 20:33:09 +02:00
},
"json" :
{
"type" : "array",
"title" : "List of JSON clients",
"required" : true,
"propertyOrder" : 2
2016-07-16 20:33:09 +02:00
},
"proto" :
{
"type" : "array",
"title" : "List of PROTO clients",
"required" : true,
"propertyOrder" : 3
2016-07-16 20:33:09 +02:00
}
},
"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,
"default" : 19444
2016-07-16 20:33:09 +02:00
}
},
"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,
"default" : 19445
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"boblightServer" :
{
"type" : "object",
"title" : "Boblight Server",
2016-07-16 20:33:09 +02:00
"properties" :
{
"enable" :
{
"type" : "boolean",
"title" : "Activate",
"default" : false,
"propertyOrder" : 1
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,
"propertyOrder" : 2
2016-07-16 20:33:09 +02:00
},
"priority" :
{
"type" : "integer",
"title" : "Priority",
"minimum" : 0,
"default" : 800,
"propertyOrder" : 3
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",
"title" : "Activate",
"default" : false,
"propertyOrder" : 1
2016-07-16 20:33:09 +02:00
},
"address" :
{
"type" : "string",
"title" : "Address",
"default" : "239.255.28.01",
"required" : true,
"propertyOrder" : 2
2016-07-16 20:33:09 +02:00
},
"port" :
{
"type" : "integer",
"title" : "Port",
2016-07-16 20:33:09 +02:00
"minimum" : 0,
"maximum" : 65535,
"default" : 2801,
"propertyOrder" : 3
2016-07-16 20:33:09 +02:00
},
"priority" :
{
"type" : "integer",
"title" : "Priority",
"minimum" : 0,
"default" : 800,
"propertyOrder" : 4
2016-07-16 20:33:09 +02:00
},
"timeout" :
{
"type" : "integer",
"title" : "Timeout",
"minimum" : 1000,
"default" : 10000,
"append" : "ms",
"propertyOrder" : 5
2016-07-16 20:33:09 +02:00
},
"shared" :
{
"type" : "boolean",
"title" : "Shared",
"default" : false,
"propertyOrder" : 6
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
"properties" :
{
"enable" :
{
"type" : "boolean",
"title" : "Activate",
"default" : true,
"propertyOrder" : 1
2016-07-16 20:33:09 +02:00
},
"document_root" :
{
"type" : "string",
"title" : "Document Root",
"propertyOrder" : 2
2016-07-16 20:33:09 +02:00
},
"port" :
{
"type" : "integer",
2016-08-31 00:22:17 +02:00
"title" : "Port",
"minimum" : 0,
"maximum" : 65535,
"default" : 8099,
"propertyOrder" : 3
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
},
"effects" :
{
"type" : "object",
"properties" :
{
"paths" :
{
"type" : "array",
"title" : "List of folders to additional effects",
"propertyOrder" : 1
},
"disable" :
{
"type" : "array",
"title" : "List of disabled effects",
"propertyOrder" : 2
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" : ["rgb", "bgr", "rbg", "brg", "gbr", "grb"]
2016-07-16 20:33:09 +02:00
}
},
"additionalProperties" : false
}
}
},
"additionalProperties" : false
}