webui: initial support for leddevice options (#232)

* initial support for leddevice options

* fix schema and editor init

* fix led editor labels and schema

* add some led schemas

* led config: insert current values. not yet perfect, but it works
This commit is contained in:
redPanther
2016-09-10 19:08:08 +02:00
committed by GitHub
parent 678624c959
commit 2d88cdc2d3
16 changed files with 191 additions and 22 deletions

View File

@@ -23,33 +23,34 @@
"device" :
{
"type" : "object",
"title" : "LED Device",
"title" : "LED Device General",
"required" : true,
"defaultProperties": ["name","ledCount","colorOrder"],
"properties" :
{
"name" :
{
"type" : "string",
"required" : true
"required" : true,
"propertyOrder" : 1
},
"type" :
{
"type" : "string",
"required" : true
},
"output" :
{
"type" : "string"
},
"rate" :
"ledCount" :
{
"type" : "integer",
"minimum" : 0
"minimum" : 0,
"title" : "Count of all hardware LEDs",
"propertyOrder" : 2
},
"colorOrder" :
{
"type" : "string",
"enum" : ["rgb", "bgr", "rbg", "brg", "gbr", "grb"]
"enum" : ["rgb", "bgr", "rbg", "brg", "gbr", "grb"],
"propertyOrder" : 3
}
},
"additionalProperties" : true