Advertisement
Guest User

pidome get device details json rpc result example

a guest
Mar 12th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. jsonrpc: "2.0"
  3. id: "DeviceService.getDevice"
  4. -result: {
  5. message: ""
  6. -data: {
  7. location: 6
  8. favorite: true
  9. id: 4
  10. category: 2
  11. friendlyname: "BlinkM Smart LED"
  12. address: "0x09"
  13. name: "Blinkm led device"
  14. categoryname: "Lighting"
  15. device: "org.pidome.driver.driver.nativeDefaultI2CDriver"
  16. -commandgroups: [
  17. -{
  18. id: "scriptactions"
  19. -commands: [
  20. -{
  21. -typedetails: {
  22. id: "runscripts"
  23. label: "Choose script"
  24. datatype: "hex"
  25. shortcut: "false"
  26. pos: "0"
  27. }
  28. commandtype: "select"
  29. currentvalue: null
  30. -commandset: [
  31. -{
  32. name: "Select a script"
  33. value: ""
  34. }
  35. -{
  36. name: "Startup script"
  37. value: "0x70 0x00 0x00 0x00"
  38. }
  39. -{
  40. name: "RGB loop"
  41. value: "0x70 0x01 0x00 0x00"
  42. }
  43. -{
  44. name: "Pulse white"
  45. value: "0x70 0x02 0x00 0x00"
  46. }
  47. -{
  48. name: "Pulse red"
  49. value: "0x70 0x03 0x00 0x00"
  50. }
  51. -{
  52. name: "Pulse green"
  53. value: "0x70 0x04 0x00 0x00"
  54. }
  55. -{
  56. name: "Pulse blue"
  57. value: "0x70 0x05 0x00 0x00"
  58. }
  59. -{
  60. name: "Pulse cyan"
  61. value: "0x70 0x06 0x00 0x00"
  62. }
  63. -{
  64. name: "Pulse magenta"
  65. value: "0x70 0x07 0x00 0x00"
  66. }
  67. -{
  68. name: "Pulse yellow"
  69. value: "0x70 0x08 0x00 0x00"
  70. }
  71. -{
  72. name: "Hue cycle"
  73. value: "0x70 0x0a 0x00 0x00"
  74. }
  75. -{
  76. name: "Mood light"
  77. value: "0x70 0x0b 0x00 0x00"
  78. }
  79. -{
  80. name: "Virtual candle"
  81. value: "0x70 0x0c 0x00 0x00"
  82. }
  83. -{
  84. name: "Water reflections"
  85. value: "0x70 0x0d 0x00 0x00"
  86. }
  87. -{
  88. name: "Broken old neon"
  89. value: "0x70 0x0e 0x00 0x00"
  90. }
  91. -{
  92. name: "The 4 seasons"
  93. value: "0x70 0x0f 0x00 0x00"
  94. }
  95. -{
  96. name: "Thunderstorm"
  97. value: "0x70 0x10 0x00 0x00"
  98. }
  99. -{
  100. name: "Traffic light"
  101. value: "0x70 0x11 0x00 0x00"
  102. }
  103. -{
  104. name: "S.O.S. morse"
  105. value: "0x70 0x12 0x00 0x00"
  106. }
  107. ]
  108. }
  109. -{
  110. -typedetails: {
  111. id: "blackout"
  112. value: "0x70 0x09 0x00 0x00"
  113. label: "Blackout"
  114. datatype: "hex"
  115. shortcut: "false"
  116. }
  117. commandtype: "button"
  118. currentvalue: null
  119. commandset: { }
  120. }
  121. -{
  122. -typedetails: {
  123. id: "scriptstop"
  124. value: "0x6f"
  125. label: "Stop current running script"
  126. datatype: "hex"
  127. shortcut: "false"
  128. }
  129. commandtype: "button"
  130. currentvalue: null
  131. commandset: { }
  132. }
  133. ]
  134. name: "Script actions"
  135. }
  136. -{
  137. id: "devicesettings"
  138. -commands: [
  139. -{
  140. -typedetails: {
  141. min: "1"
  142. id: "0x66"
  143. max: "255"
  144. value: "0x66"
  145. label: "Set fade speed (higher is faster)"
  146. shortcut: "false"
  147. }
  148. commandtype: "slider"
  149. currentvalue: null
  150. commandset: { }
  151. }
  152. -{
  153. -typedetails: {
  154. min: "-128"
  155. id: "0x74"
  156. max: "127"
  157. value: "0x74"
  158. label: "Set time adjust (higher is slower)"
  159. shortcut: "false"
  160. }
  161. commandtype: "slider"
  162. currentvalue: null
  163. commandset: { }
  164. }
  165. ]
  166. name: "Device Settings"
  167. }
  168. -{
  169. id: "moodcolor"
  170. -commands: [
  171. -{
  172. -typedetails: {
  173. id: "rgb"
  174. label: "Main light"
  175. type: "colorpicker"
  176. shortcut: "true"
  177. pos: "3"
  178. mode: "hex"
  179. }
  180. commandtype: "control"
  181. currentvalue: "hex!#000000!0x6e"
  182. -commandset: {
  183. -button: {
  184. id: "0x63"
  185. value: "0x63"
  186. label: "Fade directly"
  187. datatype: "hex"
  188. }
  189. }
  190. }
  191. ]
  192. name: "Color selection"
  193. }
  194. ]
  195. active: true
  196. locationname: "Hobby room"
  197. driver: "org.pidome.driver.driver.nativeDefaultI2CDriver"
  198. }
  199. success: true
  200. }
  201. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement