ledtest.schema.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "type":"object",
  3. "script" : "ledtest.py",
  4. "title":"edt_eff_ledtest_header",
  5. "required":true,
  6. "properties":{
  7. "testleds": {
  8. "type": "string",
  9. "title":"edt_eff_whichleds",
  10. "enum" : ["all","list"],
  11. "default" : "all",
  12. "options" : {
  13. "enum_titles" : ["edt_eff_enum_all", "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. "testleds": "list"
  24. }
  25. },
  26. "propertyOrder" : 2
  27. },
  28. "sleepTime": {
  29. "type": "number",
  30. "title":"edt_eff_sleeptime",
  31. "default": 0.15,
  32. "minimum" : 0.01,
  33. "maximum": 1,
  34. "step": 0.01,
  35. "append" : "edt_append_s",
  36. "propertyOrder" : 6
  37. },
  38. "smoothing-custom-settings" :
  39. {
  40. "type" : "boolean",
  41. "title" : "edt_eff_smooth_custom",
  42. "default" : false,
  43. "propertyOrder" : 7
  44. },
  45. "smoothing-time_ms" :
  46. {
  47. "type" : "integer",
  48. "title" : "edt_eff_smooth_time_ms",
  49. "minimum" : 25,
  50. "maximum": 600,
  51. "default" : 200,
  52. "append" : "edt_append_ms",
  53. "options": {
  54. "dependencies": {
  55. "smoothing-custom-settings": true
  56. }
  57. },
  58. "propertyOrder" : 8
  59. },
  60. "smoothing-updateFrequency" :
  61. {
  62. "type" : "number",
  63. "title" : "edt_eff_smooth_updateFrequency",
  64. "minimum" : 1.0,
  65. "maximum" : 100.0,
  66. "default" : 25.0,
  67. "append" : "edt_append_hz",
  68. "options": {
  69. "dependencies": {
  70. "smoothing-custom-settings": true
  71. }
  72. },
  73. "propertyOrder" : 9
  74. }
  75. },
  76. "additionalProperties": false
  77. }