candle.schema.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "type":"object",
  3. "script" : "candle.py",
  4. "title":"edt_eff_candle_header",
  5. "required":true,
  6. "properties":{
  7. "candles": {
  8. "type": "string",
  9. "title":"edt_eff_whichleds",
  10. "enum" : ["all","all-together","list"],
  11. "default" : "all",
  12. "options" : {
  13. "enum_titles" : ["edt_eff_enum_all", "edt_eff_enum_all-together", "edt_eff_enum_list"]
  14. },
  15. "propertyOrder" : 1
  16. },
  17. "ledlist": {
  18. "type": "string",
  19. "title":"edt_eff_ledlist",
  20. "default" : "1,11,21",
  21. "options": {
  22. "dependencies": {
  23. "candles": "list"
  24. }
  25. },
  26. "propertyOrder" : 2
  27. },
  28. "color": {
  29. "type": "array",
  30. "title":"edt_eff_color",
  31. "format":"colorpicker",
  32. "default": [255,138,0],
  33. "items" : {
  34. "type": "integer",
  35. "minimum": 0,
  36. "maximum": 255
  37. },
  38. "minItems": 3,
  39. "maxItems": 3,
  40. "propertyOrder" : 3
  41. },
  42. "colorShift": {
  43. "type": "integer",
  44. "title":"edt_eff_colorshift",
  45. "default": 1,
  46. "minimum" : 0,
  47. "maximum": 30,
  48. "append" : "edt_append_percent",
  49. "propertyOrder" : 4
  50. },
  51. "brightness": {
  52. "type": "integer",
  53. "title":"edt_eff_brightness",
  54. "default": 100,
  55. "minimum" : 1,
  56. "maximum": 100,
  57. "step" : 10,
  58. "append" : "edt_append_percent",
  59. "propertyOrder" : 5
  60. },
  61. "sleepTime": {
  62. "type": "number",
  63. "title":"edt_eff_sleeptime",
  64. "default": 0.15,
  65. "minimum" : 0.01,
  66. "maximum": 1,
  67. "step": 0.01,
  68. "append" : "edt_append_s",
  69. "propertyOrder" : 6
  70. },
  71. "smoothing-custom-settings" :
  72. {
  73. "type" : "boolean",
  74. "title" : "edt_eff_smooth_custom",
  75. "default" : false,
  76. "propertyOrder" : 7
  77. },
  78. "smoothing-time_ms" :
  79. {
  80. "type" : "integer",
  81. "title" : "edt_eff_smooth_time_ms",
  82. "minimum" : 25,
  83. "maximum": 600,
  84. "default" : 200,
  85. "append" : "edt_append_ms",
  86. "options": {
  87. "dependencies": {
  88. "smoothing-custom-settings": true
  89. }
  90. },
  91. "propertyOrder" : 8
  92. },
  93. "smoothing-updateFrequency" :
  94. {
  95. "type" : "number",
  96. "title" : "edt_eff_smooth_updateFrequency",
  97. "minimum" : 1.0,
  98. "maximum" : 100.0,
  99. "default" : 25.0,
  100. "append" : "edt_append_hz",
  101. "options": {
  102. "dependencies": {
  103. "smoothing-custom-settings": true
  104. }
  105. },
  106. "propertyOrder" : 9
  107. }
  108. },
  109. "additionalProperties": false
  110. }