Guest User

Untitled

a guest
Nov 16th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.12 KB | None | 0 0
  1. // Automatically generated configuration file for 'Hyperion daemon' // Generated by: HyperCon (The Hyperion deamon configuration file builder
  2.  
  3. {
  4. /// Device configuration contains the following fields:
  5. /// * 'name' : The user friendly name of the device (only used for display purposes)
  6. /// * 'type' : The type of the device or leds (known types for now are 'ws2801', 'ldp8806',
  7. /// 'lpd6803', 'sedu', 'adalight', 'lightpack', 'test' and 'none')
  8. /// * 'output' : The output specification depends on selected device. This can for example be the
  9. /// device specifier, device serial number, or the output file name
  10. /// * 'rate' : The baudrate of the output to the device
  11. /// * 'colorOrder' : The order of the color bytes ('rgb', 'rbg', 'bgr', etc.).
  12. "device" :
  13. {
  14. "name" : "MyPi",
  15. "type" : "lightberry",
  16. "output" : "/dev/spidev0.0",
  17. "rate" : 1000000,
  18. "colorOrder" : "rgb"
  19. },
  20.  
  21. /// Color manipulation configuration used to tune the output colors to specific surroundings.
  22. /// The configuration contains a list of color-transforms. Each transform contains the
  23. /// following fields:
  24. /// * '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
  25. /// (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
  26. /// tuning parameters:
  27. /// - 'saturationGain' The gain adjustement of the saturation
  28. /// - 'valueGain' The gain adjustement of the value
  29. /// * 'red'/'green'/'blue' : The manipulation in the Red-Green-Blue color domain with the
  30. /// following tuning parameters for each channel:
  31. /// - 'threshold' The minimum required input value for the channel to be on
  32. /// (else zero)
  33. /// - 'gamma' The gamma-curve correction factor
  34. /// - 'blacklevel' The lowest possible value (when the channel is black)
  35. /// - 'whitelevel' The highest possible value (when the channel is white)
  36. ///
  37. /// Next to the list with color transforms there is also a smoothing option.
  38. /// * 'smoothing' : Smoothing of the colors in the time-domain with the following tuning
  39. /// parameters:
  40. /// - 'type' The type of smoothing algorithm ('linear' or 'none')
  41. /// - 'time_ms' The time constant for smoothing algorithm in milliseconds
  42. /// - 'updateFrequency' The update frequency of the leds in Hz
  43. "color" :
  44. {
  45. "transform" :
  46. [
  47. {
  48. "id" : "default",
  49. "leds" : "*",
  50. "hsv" :
  51. {
  52. "saturationGain" : 1.0000,
  53. "valueGain" : 1.0000
  54. },
  55. "red" :
  56. {
  57. "threshold" : 0.0400,
  58. "gamma" : 1.8000,
  59. "blacklevel" : 0.0000,
  60. "whitelevel" : 1.0000
  61. },
  62. "green" :
  63. {
  64. "threshold" : 0.0450,
  65. "gamma" : 1.8000,
  66. "blacklevel" : 0.0000,
  67. "whitelevel" : 0.8000
  68. },
  69. "blue" :
  70. {
  71. "threshold" : 0.0400,
  72. "gamma" : 1.7000,
  73. "blacklevel" : 0.0000,
  74. "whitelevel" : 0.8000
  75. }
  76. }
  77. ],
  78. "smoothing" :
  79. {
  80. "type" : "linear",
  81. "time_ms" : 100,
  82. "updateFrequency" : 20.0000
  83. }
  84. },
  85.  
  86. /// The configuration for each individual led. This contains the specification of the area
  87. /// averaged of an input image for each led to determine its color. Each item in the list
  88. /// contains the following fields:
  89. /// * index: The index of the led. This determines its location in the string of leds; zero
  90. /// being the first led.
  91. /// * hscan: The fractional part of the image along the horizontal used for the averaging
  92. /// (minimum and maximum inclusive)
  93. /// * vscan: The fractional part of the image along the vertical used for the averaging
  94. /// (minimum and maximum inclusive)
  95. "leds" :
  96. [
  97. {
  98. "index" : 0,
  99. "hscan" : { "minimum" : 0.9300, "maximum" : 1.0000 },
  100. "vscan" : { "minimum" : 0.8750, "maximum" : 1.0000 }
  101. },
  102. {
  103. "index" : 1,
  104. "hscan" : { "minimum" : 0.9300, "maximum" : 1.0000 },
  105. "vscan" : { "minimum" : 0.7500, "maximum" : 0.8750 }
  106. },
  107. {
  108. "index" : 2,
  109. "hscan" : { "minimum" : 0.9300, "maximum" : 1.0000 },
  110. "vscan" : { "minimum" : 0.6250, "maximum" : 0.7500 }
  111. },
  112. {
  113. "index" : 3,
  114. "hscan" : { "minimum" : 0.9300, "maximum" : 1.0000 },
  115. "vscan" : { "minimum" : 0.5000, "maximum" : 0.6250 }
  116. },
  117. {
  118. "index" : 4,
  119. "hscan" : { "minimum" : 0.9300, "maximum" : 1.0000 },
  120. "vscan" : { "minimum" : 0.3750, "maximum" : 0.5000 }
  121. },
  122. {
  123. "index" : 5,
  124. "hscan" : { "minimum" : 0.9300, "maximum" : 1.0000 },
  125. "vscan" : { "minimum" : 0.2500, "maximum" : 0.3750 }
  126. },
  127. {
  128. "index" : 6,
  129. "hscan" : { "minimum" : 0.9300, "maximum" : 1.0000 },
  130. "vscan" : { "minimum" : 0.1250, "maximum" : 0.2500 }
  131. },
  132. {
  133. "index" : 7,
  134. "hscan" : { "minimum" : 0.9300, "maximum" : 1.0000 },
  135. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1250 }
  136. },
  137. {
  138. "index" : 8,
  139. "hscan" : { "minimum" : 0.9286, "maximum" : 1.0000 },
  140. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  141. },
  142. {
  143. "index" : 9,
  144. "hscan" : { "minimum" : 0.8571, "maximum" : 0.9286 },
  145. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  146. },
  147. {
  148. "index" : 10,
  149. "hscan" : { "minimum" : 0.7857, "maximum" : 0.8571 },
  150. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  151. },
  152. {
  153. "index" : 11,
  154. "hscan" : { "minimum" : 0.7143, "maximum" : 0.7857 },
  155. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  156. },
  157. {
  158. "index" : 12,
  159. "hscan" : { "minimum" : 0.6429, "maximum" : 0.7143 },
  160. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  161. },
  162. {
  163. "index" : 13,
  164. "hscan" : { "minimum" : 0.5714, "maximum" : 0.6429 },
  165. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  166. },
  167. {
  168. "index" : 14,
  169. "hscan" : { "minimum" : 0.5000, "maximum" : 0.5714 },
  170. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  171. },
  172. {
  173. "index" : 15,
  174. "hscan" : { "minimum" : 0.4286, "maximum" : 0.5000 },
  175. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  176. },
  177. {
  178. "index" : 16,
  179. "hscan" : { "minimum" : 0.3571, "maximum" : 0.4286 },
  180. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  181. },
  182. {
  183. "index" : 17,
  184. "hscan" : { "minimum" : 0.2857, "maximum" : 0.3571 },
  185. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  186. },
  187. {
  188. "index" : 18,
  189. "hscan" : { "minimum" : 0.2143, "maximum" : 0.2857 },
  190. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  191. },
  192. {
  193. "index" : 19,
  194. "hscan" : { "minimum" : 0.1429, "maximum" : 0.2143 },
  195. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  196. },
  197. {
  198. "index" : 20,
  199. "hscan" : { "minimum" : 0.0714, "maximum" : 0.1429 },
  200. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  201. },
  202. {
  203. "index" : 21,
  204. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0714 },
  205. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1000 }
  206. },
  207. {
  208. "index" : 22,
  209. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0700 },
  210. "vscan" : { "minimum" : 0.0000, "maximum" : 0.1250 }
  211. },
  212. {
  213. "index" : 23,
  214. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0700 },
  215. "vscan" : { "minimum" : 0.1250, "maximum" : 0.2500 }
  216. },
  217. {
  218. "index" : 24,
  219. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0700 },
  220. "vscan" : { "minimum" : 0.2500, "maximum" : 0.3750 }
  221. },
  222. {
  223. "index" : 25,
  224. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0700 },
  225. "vscan" : { "minimum" : 0.3750, "maximum" : 0.5000 }
  226. },
  227. {
  228. "index" : 26,
  229. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0700 },
  230. "vscan" : { "minimum" : 0.5000, "maximum" : 0.6250 }
  231. },
  232. {
  233. "index" : 27,
  234. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0700 },
  235. "vscan" : { "minimum" : 0.6250, "maximum" : 0.7500 }
  236. },
  237. {
  238. "index" : 28,
  239. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0700 },
  240. "vscan" : { "minimum" : 0.7500, "maximum" : 0.8750 }
  241. },
  242. {
  243. "index" : 29,
  244. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0700 },
  245. "vscan" : { "minimum" : 0.8750, "maximum" : 1.0000 }
  246. },
  247. {
  248. "index" : 30,
  249. "hscan" : { "minimum" : 0.0000, "maximum" : 0.0714 },
  250. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  251. },
  252. {
  253. "index" : 31,
  254. "hscan" : { "minimum" : 0.0714, "maximum" : 0.1429 },
  255. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  256. },
  257. {
  258. "index" : 32,
  259. "hscan" : { "minimum" : 0.1429, "maximum" : 0.2143 },
  260. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  261. },
  262. {
  263. "index" : 33,
  264. "hscan" : { "minimum" : 0.2143, "maximum" : 0.2857 },
  265. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  266. },
  267. {
  268. "index" : 34,
  269. "hscan" : { "minimum" : 0.2857, "maximum" : 0.3571 },
  270. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  271. },
  272. {
  273. "index" : 35,
  274. "hscan" : { "minimum" : 0.3571, "maximum" : 0.4286 },
  275. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  276. },
  277. {
  278. "index" : 36,
  279. "hscan" : { "minimum" : 0.4286, "maximum" : 0.5000 },
  280. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  281. },
  282. {
  283. "index" : 37,
  284. "hscan" : { "minimum" : 0.5000, "maximum" : 0.5714 },
  285. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  286. },
  287. {
  288. "index" : 38,
  289. "hscan" : { "minimum" : 0.5714, "maximum" : 0.6429 },
  290. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  291. },
  292. {
  293. "index" : 39,
  294. "hscan" : { "minimum" : 0.6429, "maximum" : 0.7143 },
  295. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  296. },
  297. {
  298. "index" : 40,
  299. "hscan" : { "minimum" : 0.7143, "maximum" : 0.7857 },
  300. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  301. },
  302. {
  303. "index" : 41,
  304. "hscan" : { "minimum" : 0.7857, "maximum" : 0.8571 },
  305. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  306. },
  307. {
  308. "index" : 42,
  309. "hscan" : { "minimum" : 0.8571, "maximum" : 0.9286 },
  310. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  311. },
  312. {
  313. "index" : 43,
  314. "hscan" : { "minimum" : 0.9286, "maximum" : 1.0000 },
  315. "vscan" : { "minimum" : 0.9000, "maximum" : 1.0000 }
  316. }
  317. ],
  318.  
  319. /// The black border configuration, contains the following items:
  320. /// * enable : true if the detector should be activated
  321. /// * threshold : Value below which a pixel is regarded as black (value between 0.0 and 1.0)
  322. "blackborderdetector" :
  323. {
  324. "enable" : true,
  325. "threshold" : 0.2
  326. },
  327.  
  328. /// The configuration of the effect engine, contains the following items:
  329. /// * paths : An array with absolute location(s) of directories with effects
  330. /// * bootsequence : The effect selected as 'boot sequence'
  331. "effects" :
  332. {
  333. "paths" :
  334. [
  335. "/opt/hyperion/effects"
  336. ]
  337. },
  338.  
  339. "bootsequence" :
  340. {
  341. "effect" : "Rainbow swirl fast",
  342. "duration_ms" : 5000
  343. },
  344.  
  345. /// The configuration for the frame-grabber, contains the following items:
  346. /// * width : The width of the grabbed frames [pixels]
  347. /// * height : The height of the grabbed frames [pixels]
  348. /// * frequency_Hz : The frequency of the frame grab [Hz]
  349. "framegrabber" :
  350. {
  351. "width" : 64,
  352. "height" : 64,
  353. "frequency_Hz" : 10.0
  354. },
  355.  
  356. /// The configuration of the XBMC connection used to enable and disable the frame-grabber. Contains the following fields:
  357. /// * xbmcAddress : The IP address of the XBMC-host
  358. /// * xbmcTcpPort : The TCP-port of the XBMC-server
  359. /// * grabVideo : Flag indicating that the frame-grabber is on(true) during video playback
  360. /// * grabPictures : Flag indicating that the frame-grabber is on(true) during picture show
  361. /// * grabAudio : Flag indicating that the frame-grabber is on(true) during audio playback
  362. /// * grabMenu : Flag indicating that the frame-grabber is on(true) in the XBMC menu
  363. /// * grabScreensaver : Flag indicating that the frame-grabber is on(true) when XBMC is on screensaver
  364. /// * enable3DDetection : Flag indicating that the frame-grabber should switch to a 3D compatible modus if a 3D video is playing
  365. ///"xbmcVideoChecker" :
  366. ///{
  367. /// "xbmcAddress" : "127.0.0.1",
  368. /// "xbmcTcpPort" : 9090,
  369. /// "grabVideo" : true,
  370. /// "grabPictures" : true,
  371. /// "grabAudio" : true,
  372. /// "grabMenu" : false,
  373. /// "grabScreensaver" : true,
  374. /// "enable3DDetection" : true
  375. ///},
  376.  
  377. /// Configuration for the embedded V4L2 grabber
  378. /// * device : V4L2 Device to use [default="/dev/video0"]
  379. /// * input : V4L2 input to use [default=0]
  380. /// * standard : Video standard (no-change/PAL/NTSC) [default="no-change"]
  381. /// * width : V4L2 width to set [default=-1]
  382. /// * height : V4L2 height to set [default=-1]
  383. /// * frameDecimation : Frame decimation factor [default=2]
  384. /// * sizeDecimation : Size decimation factor [default=8]
  385. /// * priority : Hyperion priority channel [default=800]
  386. /// * mode : 3D mode to use 2D/3DSBS/3DTAB (note: no autodetection) [default="2D"]
  387. /// * cropLeft : Cropping from the left [default=0]
  388. /// * cropRight : Cropping from the right [default=0]
  389. /// * cropTop : Cropping from the top [default=0]
  390. /// * cropBottom : Cropping from the bottom [default=0]
  391. /// * redSignalThreshold : Signal threshold for the red channel between 0.0 and 1.0 [default=0.0]
  392. /// * greenSignalThreshold : Signal threshold for the green channel between 0.0 and 1.0 [default=0.0]
  393. /// * blueSignalThreshold : Signal threshold for the blue channel between 0.0 and 1.0 [default=0.0]
  394. /// "grabber-v4l2" :
  395. /// {
  396. /// "device" : "/dev/video0",
  397. /// "input" : 0,
  398. /// "standard" : "PAL",
  399. /// "width" : 360,
  400. /// "height" : 288,
  401. /// "frameDecimation" : 4,
  402. /// "sizeDecimation" : 8,
  403. /// "priority" : 1100,
  404. /// "mode" : "2D",
  405. /// "cropLeft" : 5,
  406. /// "cropRight" : 9,
  407. /// "cropTop" : 5,
  408. /// "cropBottom" : 6
  409. /// "redSignalThreshold" : 0.2,
  410. /// "greenSignalThreshold" : 0.2,
  411. /// "blueSignalThreshold" : 0.2
  412. ///
  413. /// },
  414.  
  415. /// The configuration of the Json server which enables the json remote interface
  416. /// * port : Port at which the json server is started
  417. "jsonServer" :
  418. {
  419. "port" : 19444
  420. },
  421.  
  422. /// The configuration of the Proto server which enables the protobuffer remote interface
  423. /// * port : Port at which the protobuffer server is started
  424. "protoServer" :
  425. {
  426. "port" : 19445
  427. },
  428.  
  429. /// The configuration of the boblight server which enables the boblight remote interface
  430. /// * port : Port at which the boblight server is started
  431. // "boblightServer" :
  432. // {
  433. // "port" : 19333
  434. // },
  435.  
  436. "endOfJson" : "endOfJson"
  437. }
Advertisement
Add Comment
Please, Sign In to add comment