Guest User

hyperion config

a guest
Nov 16th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.79 KB | None | 0 0
  1. // Automatically generated configuration file for 'Hyperion daemon'
  2. // Generated by: HyperCon (The Hyperion deamon configuration file builder
  3.  
  4. {
  5. /// Device configuration contains the following fields:
  6. /// * 'name' : The user friendly name of the device (only used for display purposes)
  7. /// * 'type' : The type of the device or leds (known types for now are 'ws2801', 'ldp8806',
  8. /// 'lpd6803', 'sedu', 'adalight', 'lightpack', 'test' and 'none')
  9. /// * 'output' : The output specification depends on selected device. This can for example be the
  10. /// device specifier, device serial number, or the output file name
  11. /// * 'rate' : The baudrate of the output to the device
  12. /// * 'colorOrder' : The order of the color bytes ('rgb', 'rbg', 'bgr', etc.).
  13. "device" :
  14. {
  15. "name" : "MyPi",
  16. "type" : "lightberry",
  17. "output" : "/dev/spidev0.0",
  18. "rate" : 1000000,
  19. "colorOrder" : "rgb"
  20. },
  21.  
  22. /// Color manipulation configuration used to tune the output colors to specific surroundings.
  23. /// The configuration contains a list of color-transforms. Each transform contains the
  24. /// following fields:
  25. /// * 'id' : The unique identifier of the color transformation (eg 'device_1') /// * 'leds' : The indices (or index ranges) of the leds to which this color transform applies
  26. /// (eg '0-5, 9, 11, 12-17'). The indices are zero based. /// * 'hsv' : The manipulation in the Hue-Saturation-Value color domain with the following
  27. /// tuning parameters:
  28. /// - 'saturationGain' The gain adjustement of the saturation
  29. /// - 'valueGain' The gain adjustement of the value
  30. /// * 'red'/'green'/'blue' : The manipulation in the Red-Green-Blue color domain with the
  31. /// following tuning parameters for each channel:
  32. /// - 'threshold' The minimum required input value for the channel to be on
  33. /// (else zero)
  34. /// - 'gamma' The gamma-curve correction factor
  35. /// - 'blacklevel' The lowest possible value (when the channel is black)
  36. /// - 'whitelevel' The highest possible value (when the channel is white)
  37. ///
  38. /// Next to the list with color transforms there is also a smoothing option.
  39. /// * 'smoothing' : Smoothing of the colors in the time-domain with the following tuning
  40. /// parameters:
  41. /// - 'type' The type of smoothing algorithm ('linear' or 'none')
  42. /// - 'time_ms' The time constant for smoothing algorithm in milliseconds
  43. /// - 'updateFrequency' The update frequency of the leds in Hz
  44. "color" :
  45. {
  46. "transform" :
  47. [
  48. {
  49. "id" : "default",
  50. "leds" : "*",
  51. "hsv" :
  52. {
  53. "saturationGain" : 1.0000,
  54. "valueGain" : 1.0000
  55. },
  56. "red" :
  57. {
  58. "threshold" : 1.0000,
  59. "gamma" : 1.0000,
  60. "blacklevel" : 0.0000,
  61. "whitelevel" : 1.0000
  62. },
  63. "green" :
  64. {
  65. "threshold" : 1.0000,
  66. "gamma" : 1.0000,
  67. "blacklevel" : 0.0000,
  68. "whitelevel" : 1.0000
  69. },
  70. "blue" :
  71. {
  72. "threshold" : 1.0000,
  73. "gamma" : 1.0000,
  74. "blacklevel" : 0.0000,
  75. "whitelevel" : 1.0000
  76. }
  77. }
  78. ],
  79. "smoothing" :
  80. {
  81. "type" : "none",
  82. "time_ms" : 90,
  83. "updateFrequency" : 30.0000
  84. }
  85. },
  86.  
  87. /// The configuration for each individual led. This contains the specification of the area
  88. /// averaged of an input image for each led to determine its color. Each item in the list
  89. /// contains the following fields:
  90. /// * index: The index of the led. This determines its location in the string of leds; zero
  91. /// being the first led.
  92. /// * hscan: The fractional part of the image along the horizontal used for the averaging
  93. /// (minimum and maximum inclusive)
  94. /// * vscan: The fractional part of the image along the vertical used for the averaging
  95. /// (minimum and maximum inclusive)
  96. "leds" :
  97. [
  98. {
  99. "index" : 0,
  100. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0600 },
  101. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  102. },
  103. {
  104. "index" : 1,
  105. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0600 },
  106. "vscan" : { "minimum" : 0.8317, "maximum" : 1.0000 }
  107. },
  108. {
  109. "index" : 2,
  110. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0600 },
  111. "vscan" : { "minimum" : 0.6650, "maximum" : 0.8350 }
  112. },
  113. {
  114. "index" : 3,
  115. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0600 },
  116. "vscan" : { "minimum" : 0.4983, "maximum" : 0.6683 }
  117. },
  118. {
  119. "index" : 4,
  120. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0600 },
  121. "vscan" : { "minimum" : 0.3317, "maximum" : 0.5017 }
  122. },
  123. {
  124. "index" : 5,
  125. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0600 },
  126. "vscan" : { "minimum" : 0.1650, "maximum" : 0.3350 }
  127. },
  128. {
  129. "index" : 6,
  130. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0600 },
  131. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1683 }
  132. },
  133. {
  134. "index" : 7,
  135. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0600 },
  136. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  137. },
  138. {
  139. "index" : 8,
  140. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0777 },
  141. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  142. },
  143. {
  144. "index" : 9,
  145. "hscan" : { "minimum" : 0.0762, "maximum" : 0.1546 },
  146. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  147. },
  148. {
  149. "index" : 10,
  150. "hscan" : { "minimum" : 0.1531, "maximum" : 0.2315 },
  151. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  152. },
  153. {
  154. "index" : 11,
  155. "hscan" : { "minimum" : 0.2300, "maximum" : 0.3085 },
  156. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  157. },
  158. {
  159. "index" : 12,
  160. "hscan" : { "minimum" : 0.3069, "maximum" : 0.3854 },
  161. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  162. },
  163. {
  164. "index" : 13,
  165. "hscan" : { "minimum" : 0.3838, "maximum" : 0.4623 },
  166. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  167. },
  168. {
  169. "index" : 14,
  170. "hscan" : { "minimum" : 0.4608, "maximum" : 0.5392 },
  171. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  172. },
  173. {
  174. "index" : 15,
  175. "hscan" : { "minimum" : 0.5377, "maximum" : 0.6162 },
  176. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  177. },
  178. {
  179. "index" : 16,
  180. "hscan" : { "minimum" : 0.6146, "maximum" : 0.6931 },
  181. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  182. },
  183. {
  184. "index" : 17,
  185. "hscan" : { "minimum" : 0.6915, "maximum" : 0.7700 },
  186. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  187. },
  188. {
  189. "index" : 18,
  190. "hscan" : { "minimum" : 0.7685, "maximum" : 0.8469 },
  191. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  192. },
  193. {
  194. "index" : 19,
  195. "hscan" : { "minimum" : 0.8454, "maximum" : 0.9238 },
  196. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  197. },
  198. {
  199. "index" : 20,
  200. "hscan" : { "minimum" : 0.9223, "maximum" : 1.0000 },
  201. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  202. },
  203. {
  204. "index" : 21,
  205. "hscan" : { "minimum" : 0.9400, "maximum" : 1.0000 },
  206. "vscan" : { "minimum" : 0.0000, "maximum" : 0.0600 }
  207. },
  208. {
  209. "index" : 22,
  210. "hscan" : { "minimum" : 0.9400, "maximum" : 1.0000 },
  211. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1683 }
  212. },
  213. {
  214. "index" : 23,
  215. "hscan" : { "minimum" : 0.9400, "maximum" : 1.0000 },
  216. "vscan" : { "minimum" : 0.1650, "maximum" : 0.3350 }
  217. },
  218. {
  219. "index" : 24,
  220. "hscan" : { "minimum" : 0.9400, "maximum" : 1.0000 },
  221. "vscan" : { "minimum" : 0.3317, "maximum" : 0.5017 }
  222. },
  223. {
  224. "index" : 25,
  225. "hscan" : { "minimum" : 0.9400, "maximum" : 1.0000 },
  226. "vscan" : { "minimum" : 0.4983, "maximum" : 0.6683 }
  227. },
  228. {
  229. "index" : 26,
  230. "hscan" : { "minimum" : 0.9400, "maximum" : 1.0000 },
  231. "vscan" : { "minimum" : 0.6650, "maximum" : 0.8350 }
  232. },
  233. {
  234. "index" : 27,
  235. "hscan" : { "minimum" : 0.9400, "maximum" : 1.0000 },
  236. "vscan" : { "minimum" : 0.8317, "maximum" : 1.0000 }
  237. },
  238. {
  239. "index" : 28,
  240. "hscan" : { "minimum" : 0.9400, "maximum" : 1.0000 },
  241. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  242. },
  243. {
  244. "index" : 29,
  245. "hscan" : { "minimum" : 0.9223, "maximum" : 1.0000 },
  246. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  247. },
  248. {
  249. "index" : 30,
  250. "hscan" : { "minimum" : 0.8454, "maximum" : 0.9238 },
  251. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  252. },
  253. {
  254. "index" : 31,
  255. "hscan" : { "minimum" : 0.7685, "maximum" : 0.8469 },
  256. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  257. },
  258. {
  259. "index" : 32,
  260. "hscan" : { "minimum" : 0.6915, "maximum" : 0.7700 },
  261. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  262. },
  263. {
  264. "index" : 33,
  265. "hscan" : { "minimum" : 0.6146, "maximum" : 0.6931 },
  266. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  267. },
  268. {
  269. "index" : 34,
  270. "hscan" : { "minimum" : 0.5377, "maximum" : 0.6162 },
  271. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  272. },
  273. {
  274. "index" : 35,
  275. "hscan" : { "minimum" : 0.4608, "maximum" : 0.5392 },
  276. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  277. },
  278. {
  279. "index" : 36,
  280. "hscan" : { "minimum" : 0.3838, "maximum" : 0.4623 },
  281. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  282. },
  283. {
  284. "index" : 37,
  285. "hscan" : { "minimum" : 0.3069, "maximum" : 0.3854 },
  286. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  287. },
  288. {
  289. "index" : 38,
  290. "hscan" : { "minimum" : 0.2300, "maximum" : 0.3085 },
  291. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  292. },
  293. {
  294. "index" : 39,
  295. "hscan" : { "minimum" : 0.1531, "maximum" : 0.2315 },
  296. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  297. },
  298. {
  299. "index" : 40,
  300. "hscan" : { "minimum" : 0.0762, "maximum" : 0.1546 },
  301. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  302. },
  303. {
  304. "index" : 41,
  305. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0777 },
  306. "vscan" : { "minimum" : 0.9400, "maximum" : 1.0000 }
  307. }
  308. ],
  309.  
  310. /// The black border configuration, contains the following items:
  311. /// * enable : true if the detector should be activated
  312. /// * threshold : Value below which a pixel is regarded as black (value between 0.0 and 1.0)
  313. "blackborderdetector" :
  314. {
  315. "enable" : false,
  316. "threshold" : 0.005
  317. },
  318.  
  319. /// The configuration of the effect engine, contains the following items:
  320. /// * paths : An array with absolute location(s) of directories with effects
  321. /// * bootsequence : The effect selected as 'boot sequence'
  322. "effects" :
  323. {
  324. "paths" :
  325. [
  326. "/opt/hyperion/effects"
  327. ]
  328. },
  329.  
  330. "bootsequence" :
  331. {
  332. "effect" : "Rainbow swirl fast",
  333. "duration_ms" : 10000
  334. },
  335.  
  336. /// The configuration for the frame-grabber, contains the following items:
  337. /// * width : The width of the grabbed frames [pixels]
  338. /// * height : The height of the grabbed frames [pixels]
  339. /// * frequency_Hz : The frequency of the frame grab [Hz]
  340. // "framegrabber" :
  341. // {
  342. // "width" : 96,
  343. // "height" : 64,
  344. // "frequency_Hz" : 100.0
  345. // },
  346.  
  347. /// The configuration of the XBMC connection used to enable and disable the frame-grabber. Contains the following fields:
  348. /// * xbmcAddress : The IP address of the XBMC-host
  349. /// * xbmcTcpPort : The TCP-port of the XBMC-server
  350. /// * grabVideo : Flag indicating that the frame-grabber is on(true) during video playback
  351. /// * grabPictures : Flag indicating that the frame-grabber is on(true) during picture show
  352. /// * grabAudio : Flag indicating that the frame-grabber is on(true) during audio playback
  353. /// * grabMenu : Flag indicating that the frame-grabber is on(true) in the XBMC menu
  354. /// * grabScreensaver : Flag indicating that the frame-grabber is on(true) when XBMC is on screensaver
  355. /// * enable3DDetection : Flag indicating that the frame-grabber should switch to a 3D compatible modus if a 3D video is playing
  356. "xbmcVideoChecker" :
  357. {
  358. "xbmcAddress" : "127.0.0.1",
  359. "xbmcTcpPort" : 9090,
  360. "grabVideo" : true,
  361. "grabPictures" : true,
  362. "grabAudio" : true,
  363. "grabMenu" : false,
  364. "grabScreensaver" : true,
  365. "enable3DDetection" : true
  366. },
  367.  
  368. /// The configuration of the Json server which enables the json remote interface
  369. /// * port : Port at which the json server is started
  370. "jsonServer" :
  371. {
  372. "port" : 19444
  373. },
  374.  
  375. /// The configuration of the Proto server which enables the protobuffer remote interface
  376. /// * port : Port at which the protobuffer server is started
  377. // "protoServer" :
  378. // {
  379. // "port" : 19445
  380. // },
  381.  
  382. /// The configuration of the boblight server which enables the boblight remote interface
  383. /// * port : Port at which the boblight server is started
  384. // "boblightServer" :
  385. // {
  386. // "port" : 19333
  387. // },
  388.  
  389. "endOfJson" : "endOfJson"
  390. }
Advertisement
Add Comment
Please, Sign In to add comment