module.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. "CAM_FocusPosInq":"CAM_FocusPosInq",
  58. "CAM_ReplyIntervalTimeInq": "CAM_ReplyIntervalTimeInq"
  59. }
  60. }
  61. }
  62. },
  63. "ZoomPosition": {
  64. "menu": "",
  65. "callback": "setZoomPos",
  66. "parameters": {
  67. "ID" : {
  68. "type": "Integer",
  69. "default":1,
  70. "min": 1,
  71. "max": 7,
  72. "useForMapping": true
  73. },
  74. "Position" : {
  75. "type": "Float",
  76. "default":0.,
  77. "min": 0.,
  78. "max": 1.,
  79. "useForMapping": true
  80. }
  81. }
  82. },
  83. "ZoomSpeed": {
  84. "menu": "",
  85. "callback": "setZoomSpeed",
  86. "parameters": {
  87. "ID" : {
  88. "type": "Integer",
  89. "default":1,
  90. "min": 1,
  91. "max": 7,
  92. "useForMapping": true
  93. },
  94. "Speed" : {
  95. "type": "Integer",
  96. "default":0,
  97. "min": -8,
  98. "max": 8,
  99. "useForMapping": true
  100. }
  101. }
  102. },
  103. "ZoomPositionInTime": {
  104. "menu": "",
  105. "callback": "setZoomPositionInTime",
  106. "parameters": {
  107. "ID" : {
  108. "type": "Integer",
  109. "default":1,
  110. "min": 1,
  111. "max": 7,
  112. "useForMapping": true
  113. },
  114. "Position" : {
  115. "type": "Float",
  116. "default":0,
  117. "min": 0.,
  118. "max": 1.,
  119. "useForMapping": true
  120. },
  121. "Duration" : {
  122. "type": "Float",
  123. "default":0,
  124. "min": 0.,
  125. "max": 1000,
  126. "useForMapping": true
  127. }
  128. }
  129. },
  130. "ZoomPositionInTime_TL": {
  131. "menu": "",
  132. "callback": "setZoomPositionInTime_TL",
  133. "parameters": {
  134. "ID" : {
  135. "type": "Integer",
  136. "default":1,
  137. "min": 1,
  138. "max": 7,
  139. "useForMapping": true
  140. },
  141. "Position" : {
  142. "type": "Float",
  143. "default":0,
  144. "min": 0.,
  145. "max": 1.,
  146. "useForMapping": true
  147. },
  148. "offset" : {
  149. "type": "Float",
  150. "default":0,
  151. "min": 0.,
  152. "max": 1000,
  153. "useForMapping": true
  154. }
  155. }
  156. }
  157. }
  158. }