module.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "name": "Visca",
  3. "type": "Serial",
  4. "path": "LIEN",
  5. "version": "0.0.1",
  6. "description": "Visca protocol to control PTZ cameras",
  7. "url": "https://gogs.madology.myds.me/Chataigne/Visca-Module-Chataigne",
  8. "downloadURL": "",
  9. "hasInput": true,
  10. "hasOutput": true,
  11. "hideDefaultCommands": false,
  12. "hideDefaultParameters":
  13. [
  14. "protocol",
  15. "messageStructure",
  16. "firstValueIsTheName"
  17. ],
  18. "defaults":
  19. {
  20. "protocol":"Raw",
  21. "baudRate" : 9600
  22. },
  23. "parameters":
  24. {
  25. "Setup":{
  26. "type": "Container",
  27. "collapsed": true,
  28. "Fixture Definition" : { "type": "File", "description": "Select json file with fixture definitions." , "alwaysNotify": true },
  29. "Fixtures" : { "type": "File", "description": "Select json file with fixtures."},
  30. "Load Fixtures": { "type": "Trigger", "description": "Load the fixture files and create parameters for lights"},
  31. "Clear DMX": { "type": "Trigger", "description": "Set all DMX channels to 0"}
  32. }
  33. },
  34. "scripts": [
  35. "Visca.js"
  36. ],
  37. "values": {},
  38. "commands": {
  39. "Inquiry": {
  40. "menu": "",
  41. "callback": "sendInquiry",
  42. "parameters": {
  43. "ID" : {
  44. "type": "Integer",
  45. "default":1,
  46. "min": 1,
  47. "max": 7,
  48. "useForMapping": true
  49. },
  50. "Position" : {
  51. "type":"Enum",
  52. "options":
  53. {
  54. "CAM_ZoomPosInq":"CAM_ZoomPosInq",
  55. "CAM_FocusModeInq":"CAM_FocusModeInq",
  56. "CAM_FocusPosInq":"CAM_FocusPosInq",
  57. }
  58. }
  59. }
  60. },
  61. "ZoomPosition": {
  62. "menu": "",
  63. "callback": "setZoomPos",
  64. "parameters": {
  65. "ID" : {
  66. "type": "Integer",
  67. "default":1,
  68. "min": 1,
  69. "max": 7,
  70. "useForMapping": true
  71. },
  72. "Position" : {
  73. "type": "Float",
  74. "default":0.,
  75. "min": 0.,
  76. "max": 1.,
  77. "useForMapping": true
  78. }
  79. }
  80. },
  81. "ZoomSpeed": {
  82. "menu": "",
  83. "callback": "setZoomSpeed",
  84. "parameters": {
  85. "ID" : {
  86. "type": "Integer",
  87. "default":1,
  88. "min": 1,
  89. "max": 7,
  90. "useForMapping": true
  91. },
  92. "Speed" : {
  93. "type": "Integer",
  94. "default":0,
  95. "min": -8,
  96. "max": 8,
  97. "useForMapping": true
  98. }
  99. }
  100. },
  101. "ZoomPositionInTime": {
  102. "menu": "",
  103. "callback": "setZoomPositionInTime",
  104. "parameters": {
  105. "ID" : {
  106. "type": "Integer",
  107. "default":1,
  108. "min": 1,
  109. "max": 7,
  110. "useForMapping": true
  111. },
  112. "Position" : {
  113. "type": "Float",
  114. "default":0,
  115. "min": 0.,
  116. "max": 1.,
  117. "useForMapping": true
  118. },
  119. "Duration" : {
  120. "type": "Float",
  121. "default":0,
  122. "min": 0.,
  123. "max": 1000,
  124. "useForMapping": true
  125. }
  126. }
  127. }
  128. }
  129. }