update schemas | mod jsoneditor (#243)

* update

* sync

[skip ci]

* always required

[skip ci]
This commit is contained in:
brindosch 2016-09-15 19:06:21 +02:00 committed by redPanther
parent 30a667c610
commit a04f34eab7
23 changed files with 534 additions and 389 deletions

View File

@ -1782,7 +1782,7 @@ JSONEditor.AbstractEditor = Class.extend({
if(typeof this.schema.required === "boolean") return this.schema.required; if(typeof this.schema.required === "boolean") return this.schema.required;
else if(this.parent && this.parent.schema && Array.isArray(this.parent.schema.required)) return this.parent.schema.required.indexOf(this.key) > -1; else if(this.parent && this.parent.schema && Array.isArray(this.parent.schema.required)) return this.parent.schema.required.indexOf(this.key) > -1;
else if(this.jsoneditor.options.required_by_default) return true; else if(this.jsoneditor.options.required_by_default) return true;
else return false; else return true;
}, },
getDisplayText: function(arr) { getDisplayText: function(arr) {
var disp = []; var disp = [];
@ -7910,13 +7910,9 @@ JSONEditor.defaults.resolvers.unshift(function(schema) {
// Boolean editors // Boolean editors
JSONEditor.defaults.resolvers.unshift(function(schema) { JSONEditor.defaults.resolvers.unshift(function(schema) {
if(schema.type === 'boolean') { if(schema.type === 'boolean') {
// If explicitly set to 'checkbox', use that // convert all boolean to checkbox
if(schema.format === "checkbox" || (schema.options && schema.options.checkbox)) {
return "checkbox"; return "checkbox";
} }
// Otherwise, default to select menu
return (JSONEditor.plugins.selectize.enable) ? 'selectize' : 'select';
}
}); });
// Use the multiple editor for schemas where the `type` is set to "any" // Use the multiple editor for schemas where the `type` is set to "any"
JSONEditor.defaults.resolvers.unshift(function(schema) { JSONEditor.defaults.resolvers.unshift(function(schema) {

View File

@ -7,7 +7,6 @@
{ {
"type" : "object", "type" : "object",
"title" : "Logging", "title" : "Logging",
"required": ["level"],
"properties" : "properties" :
{ {
"level" : "level" :
@ -66,7 +65,6 @@
"channelAdjustment_enable" : "channelAdjustment_enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"propertyOrder" : 1 "propertyOrder" : 1
}, },
"channelAdjustment" : "channelAdjustment" :
@ -245,7 +243,6 @@
"transform_enable" : "transform_enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"propertyOrder" : 3 "propertyOrder" : 3
}, },
"transform" : "transform" :
@ -376,13 +373,11 @@
{ {
"type" : "object", "type" : "object",
"title" : "Smoothing", "title" : "Smoothing",
"required": ["type"],
"properties" : "properties" :
{ {
"enable" : "enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Activate", "title" : "Activate",
"default" : true, "default" : true,
"propertyOrder" : 1 "propertyOrder" : 1
@ -392,7 +387,8 @@
"type" : "string", "type" : "string",
"title" : "Type", "title" : "Type",
"enum" : ["linear"], "enum" : ["linear"],
"default" : "linear" "default" : "linear",
"propertyOrder" : 2
}, },
"time_ms" : "time_ms" :
{ {
@ -400,7 +396,8 @@
"title" : "Time", "title" : "Time",
"minimum" : 25, "minimum" : 25,
"maximum": 600, "maximum": 600,
"default" : 200 "default" : 200,
"propertyOrder" : 3
}, },
"updateFrequency" : "updateFrequency" :
{ {
@ -408,7 +405,8 @@
"title" : "Update frequency", "title" : "Update frequency",
"minimum" : 1.000, "minimum" : 1.000,
"maximum" : 100.000, "maximum" : 100.000,
"default" : 25.000 "default" : 25.000,
"propertyOrder" : 4
}, },
"updateDelay" : "updateDelay" :
{ {
@ -416,14 +414,15 @@
"title" : "Update delay", "title" : "Update delay",
"minimum" : 0, "minimum" : 0,
"maximum": 2048, "maximum": 2048,
"default" : 0 "default" : 0,
"propertyOrder" : 5
}, },
"continuousOutput" : "continuousOutput" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Continuous output", "title" : "Continuous output",
"default" : true "default" : true,
"propertyOrder" : 6
} }
}, },
"additionalProperties" : false "additionalProperties" : false
@ -434,13 +433,11 @@
"items": "items":
{ {
"type" : "object", "type" : "object",
"required": ["mode","standard"],
"properties" : "properties" :
{ {
"enable" : "enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Activate", "title" : "Activate",
"default" : false, "default" : false,
"propertyOrder" : 1 "propertyOrder" : 1
@ -449,92 +446,105 @@
{ {
"type" : "string", "type" : "string",
"title" : "Device", "title" : "Device",
"default" : "auto" "default" : "auto",
"propertyOrder" : 2
}, },
"input" : "input" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Input", "title" : "Input",
"default" : 0 "default" : 0,
"propertyOrder" : 3
}, },
"standard" : "standard" :
{ {
"type" : "string", "type" : "string",
"title" : "Video standard", "title" : "Video standard",
"enum" : ["PAL","NTSC"], "enum" : ["PAL","NTSC"],
"default" : "PAL" "default" : "PAL",
"propertyOrder" : 4
}, },
"width" : "width" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Width", "title" : "Width",
"default" : -1 "default" : -1,
"propertyOrder" : 5
}, },
"height" : "height" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Height", "title" : "Height",
"default" : -1 "default" : -1,
"propertyOrder" : 6
}, },
"frameDecimation" : "frameDecimation" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Frame decimation", "title" : "Frame decimation",
"default" : 2 "default" : 2,
"propertyOrder" : 7
}, },
"sizeDecimation" : "sizeDecimation" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Size decimation", "title" : "Size decimation",
"default" : 6 "default" : 6,
"propertyOrder" : 8
}, },
"priority" : "priority" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Priority channel", "title" : "Priority channel",
"default" : 900 "default" : 900,
"propertyOrder" : 9
}, },
"mode" : "mode" :
{ {
"type" : "string", "type" : "string",
"title" : "Mode", "title" : "Mode",
"enum" : ["2D","3DSBS","3DTAB"], "enum" : ["2D","3DSBS","3DTAB"],
"default" : "2D" "default" : "2D",
"propertyOrder" : 10
}, },
"useKodiChecker" : "useKodiChecker" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Use Kodi Watch", "title" : "Use Kodi Watch",
"default" : false "default" : false,
"propertyOrder" : 11
}, },
"cropLeft" : "cropLeft" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Crop left", "title" : "Crop left",
"minimum" : 0, "minimum" : 0,
"default" : 0 "default" : 0,
"propertyOrder" : 12
}, },
"cropRight" : "cropRight" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Crop right", "title" : "Crop right",
"minimum" : 0, "minimum" : 0,
"default" : 0 "default" : 0,
"propertyOrder" : 13
}, },
"cropTop" : "cropTop" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Crop top", "title" : "Crop top",
"minimum" : 0, "minimum" : 0,
"default" : 0 "default" : 0,
"propertyOrder" : 14
}, },
"cropBottom" : "cropBottom" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Crop bottom", "title" : "Crop bottom",
"minimum" : 0, "minimum" : 0,
"default" : 0 "default" : 0,
"propertyOrder" : 15
}, },
"redSignalThreshold" : "redSignalThreshold" :
{ {
@ -542,7 +552,8 @@
"title" : "Red signal threshold", "title" : "Red signal threshold",
"minimum" : 0.0, "minimum" : 0.0,
"maximum" : 1.0, "maximum" : 1.0,
"default" : 0.1 "default" : 0.1,
"propertyOrder" : 16
}, },
"greenSignalThreshold" : "greenSignalThreshold" :
{ {
@ -550,7 +561,8 @@
"title" : "Green signal threshold", "title" : "Green signal threshold",
"minimum" : 0.0, "minimum" : 0.0,
"maximum" : 1.0, "maximum" : 1.0,
"default" : 0.1 "default" : 0.1,
"propertyOrder" : 17
}, },
"blueSignalThreshold" : "blueSignalThreshold" :
{ {
@ -558,7 +570,8 @@
"title" : "Blue signal threshold", "title" : "Blue signal threshold",
"minimum" : 0.0, "minimum" : 0.0,
"maximum" : 1.0, "maximum" : 1.0,
"default" : 0.1 "default" : 0.1,
"propertyOrder" : 18
} }
}, },
"additionalProperties" : false "additionalProperties" : false
@ -573,7 +586,6 @@
"enable" : "enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Activate", "title" : "Activate",
"default" : true, "default" : true,
"propertyOrder" : 1 "propertyOrder" : 1
@ -642,7 +654,6 @@
"useXGetImage" : "useXGetImage" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Use XGetImage", "title" : "Use XGetImage",
"default" : false "default" : false
}, },
@ -679,14 +690,12 @@
{ {
"type" : "object", "type" : "object",
"title" : "Blackbar detector", "title" : "Blackbar detector",
"required": ["mode"],
"defaultProperties": ["enable","mode","threshold"], "defaultProperties": ["enable","mode","threshold"],
"properties" : "properties" :
{ {
"enable" : "enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Activate", "title" : "Activate",
"default" : true, "default" : true,
"propertyOrder" : 1 "propertyOrder" : 1
@ -697,34 +706,44 @@
"title" : "Threshold", "title" : "Threshold",
"minimum" : 0.0, "minimum" : 0.0,
"maximum" : 1.0, "maximum" : 1.0,
"default" : 0.05 "default" : 0.05,
"propertyOrder" : 2
}, },
"unknownFrameCnt" : "unknownFrameCnt" :
{ {
"type" : "number", "type" : "integer",
"minimum" : 0 "minimum" : 0,
"default" : 600,
"propertyOrder" : 3
}, },
"borderFrameCnt" : "borderFrameCnt" :
{ {
"type" : "number", "type" : "integer",
"minimum" : 0 "minimum" : 0,
"default" : 50,
"propertyOrder" : 4
}, },
"maxInconsistentCnt" : "maxInconsistentCnt" :
{ {
"type" : "number", "type" : "integer",
"minimum" : 0 "minimum" : 0,
"default" : 10,
"propertyOrder" : 5
}, },
"blurRemoveCnt" : "blurRemoveCnt" :
{ {
"type" : "number", "type" : "integer",
"minimum" : 0 "minimum" : 0,
"default" : 1,
"propertyOrder" : 6
}, },
"mode" : "mode" :
{ {
"type" : "string", "type" : "string",
"title": "Mode", "title": "Mode",
"enum" : ["default", "classic", "osd"], "enum" : ["default", "classic", "osd"],
"default" : "default" "default" : "default",
"propertyOrder" : 7
} }
}, },
"additionalProperties" : false "additionalProperties" : false
@ -738,7 +757,6 @@
"enable" : "enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Activate", "title" : "Activate",
"default" : false, "default" : false,
"propertyOrder" : 1 "propertyOrder" : 1
@ -747,7 +765,8 @@
{ {
"type" : "string", "type" : "string",
"title" : "Kodi IP address", "title" : "Kodi IP address",
"default" : "127.0.0.1" "default" : "127.0.0.1",
"propertyOrder" : 2
}, },
"kodiTcpPort" : "kodiTcpPort" :
{ {
@ -755,56 +774,57 @@
"title" : "Kodi TCP port", "title" : "Kodi TCP port",
"minimum" : 0, "minimum" : 0,
"maximum" : 65535, "maximum" : 65535,
"default" : 9090 "default" : 9090,
"propertyOrder" : 3
}, },
"grabVideo" : "grabVideo" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Video", "title" : "Video",
"default" : true "default" : true,
"propertyOrder" : 4
}, },
"grabPictures" : "grabPictures" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Pictures", "title" : "Pictures",
"default" : true "default" : true,
"propertyOrder" : 5
}, },
"grabAudio" : "grabAudio" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Audio", "title" : "Audio",
"default" : true "default" : true,
"propertyOrder" : 6
}, },
"grabMenu" : "grabMenu" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Menu", "title" : "Menu",
"default" : false "default" : false,
"propertyOrder" : 7
}, },
"grabPause" : "grabPause" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Pause", "title" : "Pause",
"default" : false "default" : false,
"propertyOrder" : 8
}, },
"grabScreensaver" : "grabScreensaver" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Screensaver", "title" : "Screensaver",
"default" : false "default" : false,
"propertyOrder" : 9
}, },
"enable3DDetection" : "enable3DDetection" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Detect 3D", "title" : "Detect 3D",
"default" : false "default" : false,
"propertyOrder" : 10
} }
}, },
"additionalProperties" : false "additionalProperties" : false
@ -857,7 +877,6 @@
"enable" : "enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Activate", "title" : "Activate",
"required" : true, "required" : true,
"propertyOrder" : 1 "propertyOrder" : 1
@ -865,12 +884,14 @@
"json" : "json" :
{ {
"type" : "array", "type" : "array",
"required" : true "required" : true,
"propertyOrder" : 2
}, },
"proto" : "proto" :
{ {
"type" : "array", "type" : "array",
"required" : true "required" : true,
"propertyOrder" : 3
} }
}, },
"additionalProperties" : false "additionalProperties" : false
@ -922,7 +943,6 @@
"enable" : "enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Activate", "title" : "Activate",
"default" : false, "default" : false,
"propertyOrder" : 1 "propertyOrder" : 1
@ -933,14 +953,16 @@
"required" : true, "required" : true,
"title" : "Port", "title" : "Port",
"minimum" : 0, "minimum" : 0,
"maximum" : 65535 "maximum" : 65535,
"propertyOrder" : 2
}, },
"priority" : "priority" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Priority", "title" : "Priority",
"minimum" : 0, "minimum" : 0,
"default" : 800 "default" : 800,
"propertyOrder" : 3
} }
}, },
"additionalProperties" : false "additionalProperties" : false
@ -954,7 +976,6 @@
"enable" : "enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Activate", "title" : "Activate",
"default" : false, "default" : false,
"propertyOrder" : 1 "propertyOrder" : 1
@ -964,7 +985,8 @@
"type" : "string", "type" : "string",
"title" : "Address", "title" : "Address",
"default" : "239.255.28.01", "default" : "239.255.28.01",
"required" : true "required" : true,
"propertyOrder" : 2
}, },
"port" : "port" :
{ {
@ -972,26 +994,29 @@
"title" : "Port", "title" : "Port",
"minimum" : 0, "minimum" : 0,
"maximum" : 65535, "maximum" : 65535,
"default" : 2801 "default" : 2801,
"propertyOrder" : 3
}, },
"priority" : "priority" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Priority", "title" : "Priority",
"default" : 800 "default" : 800,
"propertyOrder" : 4
}, },
"timeout" : "timeout" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Timeout", "title" : "Timeout",
"default" : 10000 "default" : 10000,
"propertyOrder" : 5
}, },
"shared" : "shared" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Shared", "title" : "Shared",
"default" : false "default" : false,
"propertyOrder" : 6
} }
}, },
"additionalProperties" : false "additionalProperties" : false
@ -1005,7 +1030,6 @@
"enable" : "enable" :
{ {
"type" : "boolean", "type" : "boolean",
"format": "checkbox",
"title" : "Activate", "title" : "Activate",
"default" : true, "default" : true,
"propertyOrder" : 1 "propertyOrder" : 1
@ -1013,13 +1037,15 @@
"document_root" : "document_root" :
{ {
"type" : "string", "type" : "string",
"title" : "Document Root" "title" : "Document Root",
"propertyOrder" : 2
}, },
"port" : "port" :
{ {
"type" : "integer", "type" : "integer",
"title" : "Port", "title" : "Port",
"default" : 8099 "default" : 8099,
"propertyOrder" : 3
} }
}, },
"additionalProperties" : false "additionalProperties" : false
@ -1030,10 +1056,6 @@
"properties" : "properties" :
{ {
"paths" : "paths" :
{
"type" : "array"
},
"disable" :
{ {
"type" : "array" "type" : "array"
} }

View File

@ -4,17 +4,20 @@
"properties":{ "properties":{
"output": { "output": {
"type": "string", "type": "string",
"title":"Output path" "title":"Output path",
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 1000000 "default": 1000000,
"propertyOrder" : 2
}, },
"delayAfterConnect": { "delayAfterConnect": {
"type": "integer", "type": "integer",
"title":"Delay after connect", "title":"Delay after connect",
"default": 250 "default": 250,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -4,17 +4,20 @@
"properties":{ "properties":{
"output": { "output": {
"type": "string", "type": "string",
"title":"Output path" "title":"Output path",
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 1000000 "default": 1000000,
"propertyOrder" : 2
}, },
"delayAfterConnect": { "delayAfterConnect": {
"type": "integer", "type": "integer",
"title":"Delay after connect", "title":"Delay after connect",
"default": 250 "default": 250,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,17 +5,22 @@
"output": { "output": {
"type": "string", "type": "string",
"title":"SPI path", "title":"SPI path",
"enum" : ["/dev/spidev0.0","/dev/spidev0.1"] "enum" : ["/dev/spidev0.0","/dev/spidev0.1"],
"default" : "/dev/spidev0.0",
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 1000000 "default": 1000000,
"propertyOrder" : 2
}, },
"invert": { "invert": {
"type": "boolean", "type": "boolean",
"title":"Invert signal", "title":"Invert signal",
"default": false "default": false,
"format": "checkbox",
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -4,17 +4,20 @@
"properties":{ "properties":{
"output": { "output": {
"type": "string", "type": "string",
"title":"Output path" "title":"Output path",
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 1000000 "default": 1000000,
"propertyOrder" : 2
}, },
"delayAfterConnect": { "delayAfterConnect": {
"type": "integer", "type": "integer",
"title":"Delay after connect", "title":"Delay after connect",
"default": 250 "default": 250,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,29 +5,35 @@
"output": { "output": {
"type": "string", "type": "string",
"title":"Multicast group", "title":"Multicast group",
"default" : "239.15.18.2" "default" : "239.15.18.2",
"propertyOrder" : 1
}, },
"orbIds": { "orbIds": {
"type": "string", "type": "string",
"title":"Baudrate", "title":"Baudrate",
"default": "1" "default": "1",
"propertyOrder" : 2
}, },
"numLeds": { "numLeds": {
"type": "integer", "type": "integer",
"title":"Number of LEDs", "title":"Number of LEDs",
"default": 24 "default": 24,
"propertyOrder" : 3
}, },
"port": { "port": {
"type": "integer", "type": "integer",
"title":"Port", "title":"Port",
"minimum" : 0, "minimum" : 0,
"maximum" : 65535, "maximum" : 65535,
"default": 24 "default": 24,
"propertyOrder" : 4
}, },
"useOrbSmoothing": { "useOrbSmoothing": {
"type": "boolean", "type": "boolean",
"format": "checkbox",
"title":"Use orb smoothing", "title":"Use orb smoothing",
"default": true "default": true,
"propertyOrder" : 5
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -4,26 +4,31 @@
"properties":{ "properties":{
"host" : { "host" : {
"type": "string", "type": "string",
"title":"Target IP" "title":"Target IP",
"propertyOrder" : 1
}, },
"port" : { "port" : {
"type": "integer", "type": "integer",
"title":"Port", "title":"Port",
"default": 5568 "default": 5568,
"propertyOrder" : 2
}, },
"universe": { "universe": {
"type": "integer", "type": "integer",
"title":"Universe", "title":"Universe",
"default": 1 "default": 1,
"propertyOrder" : 3
}, },
"latchtinme": { "latchtime": {
"type": "integer", "type": "integer",
"title":"Latchtime", "title":"Latchtime",
"default": 104000 "default": 104000,
"propertyOrder" : 4
}, },
"cid": { "cid": {
"type": "string", "type": "string",
"title":"CID" "title":"CID",
"propertyOrder" : 5
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,17 +5,20 @@
"output": { "output": {
"type": "string", "type": "string",
"title":"SPI path", "title":"SPI path",
"enum" : ["/dev/spidev0.0","/dev/spidev0.1"] "enum" : ["/dev/spidev0.0","/dev/spidev0.1"],
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 1000000 "default": 1000000,
"propertyOrder" : 2
}, },
"invert": { "invert": {
"type": "boolean", "type": "boolean",
"title":"Invert signal", "title":"Invert signal",
"default": false "default": false,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,17 +5,20 @@
"output": { "output": {
"type": "string", "type": "string",
"title":"SPI path", "title":"SPI path",
"enum" : ["/dev/spidev0.0","/dev/spidev0.1"] "enum" : ["/dev/spidev0.0","/dev/spidev0.1"],
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 1000000 "default": 1000000,
"propertyOrder" : 2
}, },
"invert": { "invert": {
"type": "boolean", "type": "boolean",
"title":"Invert signal", "title":"Invert signal",
"default": false "default": false,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -2,6 +2,10 @@
"type":"object", "type":"object",
"required":true, "required":true,
"properties":{ "properties":{
"output": {
"type": "string",
"title":"Serial number"
}
}, },
"additionalProperties": true "additionalProperties": true
} }

View File

@ -5,17 +5,20 @@
"output": { "output": {
"type": "string", "type": "string",
"title":"SPI path", "title":"SPI path",
"enum" : ["/dev/spidev0.0","/dev/spidev0.1"] "enum" : ["/dev/spidev0.0","/dev/spidev0.1"],
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 1000000 "default": 1000000,
"propertyOrder" : 2
}, },
"invert": { "invert": {
"type": "boolean", "type": "boolean",
"title":"Invert signal", "title":"Invert signal",
"default": false "default": false,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,17 +5,20 @@
"VID": { "VID": {
"type": "string", "type": "string",
"title":"VID", "title":"VID",
"default" : "0x2341" "default" : "0x2341",
"propertyOrder" : 1
}, },
"PID": { "PID": {
"type": "string", "type": "string",
"title":"PID", "title":"PID",
"default" : "0x8036" "default" : "0x8036",
"propertyOrder" : 2
}, },
"delayAfterConnect": { "delayAfterConnect": {
"type": "integer", "type": "integer",
"title":"Delay after connect", "title":"Delay after connect",
"default": 0 "default": 0,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -4,29 +4,35 @@
"properties":{ "properties":{
"output": { "output": {
"type": "string", "type": "string",
"title":"Target IP" "title":"Target IP",
"propertyOrder" : 1
}, },
"username": { "username": {
"type": "string", "type": "string",
"title":"Username", "title":"Username",
"default": "newdeveloper" "default": "newdeveloper",
"propertyOrder" : 2
}, },
"lightIds": { "lightIds": {
"type": "array", "type": "array",
"title":"Light ids", "title":"Light ids",
"items" : { "items" : {
"type" : "integer" "type" : "integer"
} },
"propertyOrder" : 3
}, },
"transitiontime": { "transitiontime": {
"type": "integer", "type": "integer",
"title":"Transistion time (x100ms)", "title":"Transistion time (x100ms)",
"default" : 1 "default" : 1,
"propertyOrder" : 4
}, },
"switchOffOnBlack": { "switchOffOnBlack": {
"type": "boolean", "type": "boolean",
"format": "checkbox",
"title":"Switch off on black", "title":"Switch off on black",
"default" : true "default" : true,
"propertyOrder" : 5
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,17 +5,20 @@
"VID": { "VID": {
"type": "string", "type": "string",
"title":"VID", "title":"VID",
"default" : "0x2341" "default" : "0x2341",
"propertyOrder" : 1
}, },
"PID": { "PID": {
"type": "string", "type": "string",
"title":"PID", "title":"PID",
"default" : "0x8036" "default" : "0x8036",
"propertyOrder" : 2
}, },
"delayAfterConnect": { "delayAfterConnect": {
"type": "integer", "type": "integer",
"title":"Delay after connect", "title":"Delay after connect",
"default": 0 "default": 0,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -4,17 +4,20 @@
"properties":{ "properties":{
"output": { "output": {
"type": "string", "type": "string",
"title":"Output path" "title":"Output path",
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 1000000 "default": 1000000,
"propertyOrder" : 2
}, },
"delayAfterConnect": { "delayAfterConnect": {
"type": "integer", "type": "integer",
"title":"Delay after connect", "title":"Delay after connect",
"default": 250 "default": 250,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,17 +5,21 @@
"output": { "output": {
"type": "string", "type": "string",
"title":"SPI path", "title":"SPI path",
"enum" : ["/dev/spidev0.0","/dev/spidev0.1"] "enum" : ["/dev/spidev0.0","/dev/spidev0.1"],
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 2666666 "default": 2666666,
"propertyOrder" : 2
}, },
"invert": { "invert": {
"type": "boolean", "type": "boolean",
"format": "checkbox",
"title":"Invert signal", "title":"Invert signal",
"default": false "default": false,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -2,6 +2,31 @@
"type":"object", "type":"object",
"required":true, "required":true,
"properties":{ "properties":{
"output": {
"type": "string",
"title":"Output",
"default" : "127.0.0.1",
"propertyOrder" : 1
},
"port": {
"type": "integer",
"title":"Port",
"minimum" : 0,
"maximum" : 65535,
"default" : 4223,
"propertyOrder" : 2
},
"uid": {
"type": "string",
"title":"UID",
"propertyOrder" : 3
},
"rate": {
"type": "integer",
"title":"Intervall",
"minimum" : 0,
"propertyOrder" : 4
}
}, },
"additionalProperties": true "additionalProperties": true
} }

View File

@ -2,6 +2,23 @@
"type":"object", "type":"object",
"required":true, "required":true,
"properties":{ "properties":{
"output": {
"type": "string",
"title":"Output path",
"propertyOrder" : 1
},
"rate": {
"type": "integer",
"title":"Baudrate",
"default": 1000000,
"propertyOrder" : 2
},
"delayAfterConnect": {
"type": "integer",
"title":"Delay after connect",
"default": 250,
"propertyOrder" : 3
}
}, },
"additionalProperties": true "additionalProperties": true
} }

View File

@ -2,6 +2,24 @@
"type":"object", "type":"object",
"required":true, "required":true,
"properties":{ "properties":{
"host" : {
"type": "string",
"title":"Target IP",
"propertyOrder" : 1
},
"latchtime": {
"type": "integer",
"title":"Latchtime",
"default": 104000,
"propertyOrder" : 2
},
"max-packet": {
"type": "integer",
"title":"Max-packet",
"minimum" : 0,
"default" : 170,
"propertyOrder" : 3
}
}, },
"additionalProperties": true "additionalProperties": true
} }

View File

@ -4,12 +4,14 @@
"properties":{ "properties":{
"host" : { "host" : {
"type": "string", "type": "string",
"title":"Target IP" "title":"Target IP",
"propertyOrder" : 1
}, },
"port" : { "port" : {
"type": "integer", "type": "integer",
"title":"Port", "title":"Port",
"default": 5568 "default": 5568,
"propertyOrder" : 2
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,17 +5,21 @@
"output": { "output": {
"type": "string", "type": "string",
"title":"SPI path", "title":"SPI path",
"enum" : ["/dev/spidev0.0","/dev/spidev0.1"] "enum" : ["/dev/spidev0.0","/dev/spidev0.1"],
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 1000000 "default": 1000000,
"propertyOrder" : 2
}, },
"invert": { "invert": {
"type": "boolean", "type": "boolean",
"format": "checkbox",
"title":"Invert signal", "title":"Invert signal",
"default": false "default": false,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true

View File

@ -5,17 +5,21 @@
"output": { "output": {
"type": "string", "type": "string",
"title":"SPI path", "title":"SPI path",
"enum" : ["/dev/spidev0.0","/dev/spidev0.1"] "enum" : ["/dev/spidev0.0","/dev/spidev0.1"],
"propertyOrder" : 1
}, },
"rate": { "rate": {
"type": "integer", "type": "integer",
"title":"Baudrate", "title":"Baudrate",
"default": 2666666 "default": 1000000,
"propertyOrder" : 2
}, },
"invert": { "invert": {
"type": "boolean", "type": "boolean",
"format": "checkbox",
"title":"Invert signal", "title":"Invert signal",
"default": false "default": false,
"propertyOrder" : 3
} }
}, },
"additionalProperties": true "additionalProperties": true