sparks.schema.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "type":"object",
  3. "script" : "sparks.py",
  4. "title":"edt_eff_sparks_header",
  5. "required":true,
  6. "properties":{
  7. "color": {
  8. "type": "array",
  9. "title":"edt_eff_color",
  10. "format":"colorpicker",
  11. "default": [255,0,0],
  12. "items" : {
  13. "type": "integer",
  14. "minimum": 0,
  15. "maximum": 255
  16. },
  17. "minItems": 3,
  18. "maxItems": 3,
  19. "options": {
  20. "dependencies": {
  21. "random-color": false
  22. }
  23. },
  24. "propertyOrder" : 1
  25. },
  26. "rotation-time": {
  27. "type": "number",
  28. "title":"edt_eff_rotationtime",
  29. "default": 2.0,
  30. "minimum" : 0.1,
  31. "append" : "edt_append_s",
  32. "propertyOrder" : 2
  33. },
  34. "sleep-time": {
  35. "type": "number",
  36. "title":"edt_eff_sleeptime",
  37. "default": 0.05,
  38. "minimum" : 0.01,
  39. "propertyOrder" : 3
  40. },
  41. "brightness": {
  42. "type": "integer",
  43. "title":"edt_eff_brightness",
  44. "default": 100,
  45. "minimum" : 0,
  46. "maximum" : 100,
  47. "step" : 10,
  48. "append" : "edt_append_percent",
  49. "propertyOrder" : 4
  50. },
  51. "saturation": {
  52. "type": "integer",
  53. "title":"edt_eff_saturation",
  54. "default": 100,
  55. "minimum" : 0,
  56. "maximum" : 100,
  57. "step" : 10,
  58. "append" : "edt_append_percent",
  59. "propertyOrder" : 5
  60. },
  61. "random-color": {
  62. "type": "boolean",
  63. "title":"edt_eff_colorrandom",
  64. "default": false,
  65. "propertyOrder" : 6
  66. }
  67. },
  68. "additionalProperties": false
  69. }