Advertisement
Guest User

Untitled

a guest
Mar 25th, 2016
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.10 KB | None | 0 0
  1. // Automatically generated configuration file for 'Hyperion daemon'
  2. // Generated by: HyperCon (The Hyperion deamon configuration file builder)
  3. // Created with HyperCon V1.01.0 (21.03.2016)
  4.  
  5. {
  6. /// Device configuration contains the following fields:
  7. /// * 'name' : The user friendly name of the device (only used for display purposes)
  8. /// * 'type' : The type of the device or leds (known types for now are
  9. /// ---------SPI---------, APA102, WS2801, P9813, LPD6803, LPD8806, ---------PWM---------, WS2812b (just RPi1), WS281X (RPi1, RPi2, RPi3), --------OTHER--------, PhilipsHUE, AtmoOrb, PiBlaster, Tinkerforge, UDP, FadeCandy, SEDU, TPM2, USBASP-WS2801, USBASP-WS2812, ------3rd PARTY------, Adalight, AdalightAPA102, AmbiLed, Atmo, Lightpack, Multi-Lightpack, Paintpack, Test, None)
  10. /// * [device type specific configuration]
  11. /// * 'colorOrder' : The order of the color bytes ('rgb', 'rbg', 'bgr', etc.).
  12. "device" :
  13. {
  14. "name" : "MyHyperionConfig",
  15. "type" : "philipshue",
  16. "output" : "192.168.178.56",
  17. "transitiontime" : 10, <—- hoher Wert zur Lag-Kompensation
  18. "switchOffOnBlack" : true,
  19. "username" : "nb7eWEjwtpAWqX7A2E8xaodUxYFt2Tvh-lwNFPA9",
  20. "colorOrder" : "rgb"
  21. },
  22.  
  23. /// Color manipulation configuration used to tune the output colors to specific surroundings.
  24. /// The configuration contains a list of color-transforms. Each transform contains the
  25. /// following fields:
  26. /// * '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
  27. /// (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
  28. /// tuning parameters:
  29. /// - 'saturationGain' The gain adjustement of the saturation
  30. /// - 'valueGain' The gain adjustement of the value
  31. /// * 'red'/'green'/'blue' : The manipulation in the Red-Green-Blue color domain with the
  32. /// following tuning parameters for each channel:
  33. /// - 'threshold' The minimum required input value for the channel to be on
  34. /// (else zero)
  35. /// - 'gamma' The gamma-curve correction factor
  36. /// - 'blacklevel' The lowest possible value (when the channel is black)
  37. /// - 'whitelevel' The highest possible value (when the channel is white)
  38. ///
  39. /// Next to the list with color transforms there is also a smoothing option.
  40. /// * 'smoothing' : Smoothing of the colors in the time-domain with the following tuning
  41. /// parameters:
  42. /// - 'type' The type of smoothing algorithm ('linear' or 'none')
  43. /// - 'time_ms' The time constant for smoothing algorithm in milliseconds
  44. /// - 'updateFrequency' The update frequency of the leds in Hz
  45. /// - 'updateDelay' The delay of the output to leds (in periods of smoothing)
  46. "color" :
  47. {
  48. "correction" :
  49. [
  50. {
  51. "id" : "default",
  52. "leds" : "*",
  53. "correctionValues" :
  54. {
  55. "red" : 255,
  56. "green" : 255,
  57. "blue" : 255
  58. }
  59. }
  60. ],
  61. "temperature" :
  62. [
  63. {
  64. "id" : "default",
  65. "leds" : "*",
  66. "temperatureValues" :
  67. {
  68. "red" : 255,
  69. "green" : 255,
  70. "blue" : 255
  71. }
  72. }
  73. ],
  74. "transform" :
  75. [
  76. {
  77. "id" : "default",
  78. "leds" : "*",
  79. "hsv" :
  80. {
  81. "saturationGain" : 1.5000,
  82. "valueGain" : 0.8000
  83. },
  84. "hsl" :
  85. {
  86. "saturationGain" : 1.0000,
  87. "luminanceGain" : 1.0000
  88. },
  89. "red" :
  90. {
  91. "threshold" : 0.0000,
  92. "gamma" : 1.0000,
  93. "blacklevel" : 0.0000,
  94. "whitelevel" : 1.0000
  95. },
  96. "green" :
  97. {
  98. "threshold" : 0.0000,
  99. "gamma" : 1.0000,
  100. "blacklevel" : 0.0000,
  101. "whitelevel" : 1.0000
  102. },
  103. "blue" :
  104. {
  105. "threshold" : 0.0000,
  106. "gamma" : 1.0000,
  107. "blacklevel" : 0.0000,
  108. "whitelevel" : 1.0000
  109. }
  110. }
  111. ],
  112.  
  113. "smoothing" :
  114. {
  115. "type" : "none",
  116. "time_ms" : 200,
  117. "updateFrequency" : 20.0000,
  118. "updateDelay" : 0
  119. }
  120. },
  121.  
  122. /// The black border configuration, contains the following items:
  123. /// * enable : true if the detector should be activated
  124. /// * threshold : Value below which a pixel is regarded as black (value between 0.0 and 1.0)
  125. /// * unknownFrameCnt : Number of frames without any detection before the border is set to 0 (default 600)
  126. /// * borderFrameCnt : Number of frames before a consistent detected border gets set (default 50)
  127. /// * maxInconsistentCnt : Number of inconsistent frames that are ignored before a new border gets a chance to proof consistency
  128. /// * blurRemoveCnt : Number of pixels that get removed from the detected border to cut away blur (default 1)
  129. /// * mode : Border detection mode (values=default,classic,osd)
  130. "blackborderdetector" :
  131. {
  132. "enable" : true,
  133. "threshold" : 0.0,
  134. "unknownFrameCnt" : 600,
  135. "borderFrameCnt" : 50,
  136. "maxInconsistentCnt" : 10,
  137. "blurRemoveCnt" : 1,
  138. "mode" : "default"
  139. },
  140.  
  141. /// The configuration of the effect engine, contains the following items:
  142. /// * paths : An array with absolute location(s) of directories with effects
  143. /// * color : Set static color after boot -> set effect to "" (empty) and input the values [R,G,B] and set duration_ms NOT to 0 (use 1) instead
  144. /// * effect : The effect selected as 'boot sequence'
  145. /// * duration_ms : The duration of the selected effect (0=endless)
  146. /// * priority : The priority of the selected effect/static color (default=990) HINT: lower value result in HIGHER priority!
  147. "effects" :
  148. {
  149. "paths" :
  150. [
  151. "/storage/hyperion/effects"
  152. ]
  153. },
  154.  
  155. // "bootsequence" :
  156. // {
  157. // "color" : [0,0,0],
  158. // "effect" : "Rainbow swirl fast",
  159. // "duration_ms" : 3000,
  160. // "priority" : 990
  161. // },
  162.  
  163. /// The configuration of the Json/Proto forwarder. Forward messages to multiple instances of Hyperion on same and/or other hosts
  164. /// 'proto' is mostly used for video streams and 'json' for effects
  165. /// * proto : Proto server adress and port of your target. Syntax:[IP:PORT] -> ["127.0.0.1:19447"] or more instances to forward ["127.0.0.1:19447","192.168.0.24:19449"]
  166. /// * json : Json server adress and port of your target. Syntax:[IP:PORT] -> ["127.0.0.1:19446"] or more instances to forward ["127.0.0.1:19446","192.168.0.24:19448"]
  167. /// HINT: If you redirect to "127.0.0.1" (localhost) you could start a second hyperion with another device/led config!
  168. /// Be sure your client(s) is/are listening on the configured ports. The second Hyperion (if used) also needs to be configured! (HyperCon -> External -> Json Server/Proto Server)
  169. // "forwarder" :
  170. // {
  171. // "proto" : ["127.0.0.1:19447"],
  172. // "json" : ["127.0.0.1:19446"]
  173. // },
  174.  
  175. /// The configuration for the frame-grabber, contains the following items:
  176. /// * width : The width of the grabbed frames [pixels]
  177. /// * height : The height of the grabbed frames [pixels]
  178. /// * frequency_Hz : The frequency of the frame grab [Hz]
  179. /// * priority : The priority of the frame-gabber (Default=900) HINT: lower value result in HIGHER priority!
  180. /// * ATTENTION : Power-of-Two resolution is not supported and leads to unexpected behaviour!
  181. // "framegrabber" :
  182. // {
  183. // "width" : 80,
  184. // "height" : 45,
  185. // "frequency_Hz" : 10.0,
  186. // "priority" : 900
  187. // },
  188.  
  189. /// The configuration of the Kodi connection used to enable and disable the frame-grabber. Contains the following fields:
  190. /// * xbmcAddress : The IP address of the Kodi-host
  191. /// * xbmcTcpPort : The TCP-port of the Kodi-server
  192. /// * grabVideo : Flag indicating that the frame-grabber is on(true) during video playback
  193. /// * grabPictures : Flag indicating that the frame-grabber is on(true) during picture show
  194. /// * grabAudio : Flag indicating that the frame-grabber is on(true) during audio playback
  195. /// * grabMenu : Flag indicating that the frame-grabber is on(true) at the Kodi menu
  196. /// * grabScreensaver : Flag indicating that the frame-grabber is on(true) when Kodi is on screensaver
  197. /// * enable3DDetection : Flag indicating that the frame-grabber should switch to a 3D compatible modus if a 3D video is playing
  198. // "xbmcVideoChecker" :
  199. // {
  200. // "xbmcAddress" : "127.0.0.1",
  201. // "xbmcTcpPort" : 9090,
  202. // "grabVideo" : true,
  203. // "grabPictures" : true,
  204. // "grabAudio" : true,
  205. // "grabMenu" : false,
  206. // "grabScreensaver" : true,
  207. // "enable3DDetection" : true
  208. // },
  209.  
  210. /// The configuration of the Json server which enables the json remote interface
  211. /// * port : Port at which the json server is started
  212. "jsonServer" :
  213. {
  214. "port" : 19446
  215. },
  216.  
  217. /// The configuration of the Proto server which enables the protobuffer remote interface
  218. /// * port : Port at which the protobuffer server is started
  219. "protoServer" :
  220. {
  221. "port" : 19447
  222. },
  223.  
  224. /// The configuration of the boblight server which enables the boblight remote interface
  225. /// * port : Port at which the boblight server is started
  226. /// * priority: Priority of the boblight server (Default=900) HINT: lower value result in HIGHER priority!
  227. // "boblightServer" :
  228. // {
  229. // "port" : 19333,
  230. // "priority" : 900
  231. // },
  232.  
  233. /// Configuration for the embedded V4L2 grabber
  234. /// * device : V4L2 Device to use [default="/dev/video0"]
  235. /// * input : V4L2 input to use [default=0]
  236. /// * standard : Video standard (no-change/PAL/NTSC) [default="no-change"]
  237. /// * width : V4L2 width to set [default=-1]
  238. /// * height : V4L2 height to set [default=-1]
  239. /// * frameDecimation : Frame decimation factor [default=2]
  240. /// * sizeDecimation : Size decimation factor [default=8]
  241. /// * priority : Hyperion priority channel [default=800]
  242. /// * mode : 3D mode to use 2D/3DSBS/3DTAB (note: no autodetection) [default="2D"]
  243. /// * cropLeft : Cropping from the left [default=0]
  244. /// * cropRight : Cropping from the right [default=0]
  245. /// * cropTop : Cropping from the top [default=0]
  246. /// * cropBottom : Cropping from the bottom [default=0]
  247. /// * redSignalThreshold : Signal threshold for the red channel between 0.0 and 1.0 [default=0.0]
  248. /// * greenSignalThreshold : Signal threshold for the green channel between 0.0 and 1.0 [default=0.0]
  249. /// * blueSignalThreshold : Signal threshold for the blue channel between 0.0 and 1.0 [default=0.0]
  250. // "grabber-v4l2" :
  251. // {
  252. // "device" : "/dev/video1",
  253. // "input" : 0,
  254. // "standard" : "no-change",
  255. // "width" : -1,
  256. // "height" : -1,
  257. // "frameDecimation" : 2,
  258. // "sizeDecimation" : 8,
  259. // "priority" : 800,
  260. // "mode" : "2D",
  261. // "cropLeft" : 0,
  262. // "cropRight" : 0,
  263. // "cropTop" : 0,
  264. // "cropBottom" : 0,
  265. // "redSignalThreshold" : 0.0,
  266. // "greenSignalThreshold" : 0.0,
  267. // "blueSignalThreshold" : 0.0
  268. // },
  269.  
  270. /// The configuration for each individual led. This contains the specification of the area
  271. /// averaged of an input image for each led to determine its color. Each item in the list
  272. /// contains the following fields:
  273. /// * index: The index of the led. This determines its location in the string of leds; zero
  274. /// being the first led.
  275. /// * hscan: The fractional part of the image along the horizontal used for the averaging
  276. /// (minimum and maximum inclusive)
  277. /// * vscan: The fractional part of the image along the vertical used for the averaging
  278. /// (minimum and maximum inclusive)
  279. "leds" :
  280. [
  281. {
  282. "index" : 0,
  283. "hscan" : { "minimum" : 0.8500, "maximum" : 1.0000 },
  284. "vscan" : { "minimum" : 0.0000, "maximum" : 1.0000 }
  285. }
  286. // {
  287. // "index" : 1,
  288. // "hscan" : { "minimum" : 0.8500, "maximum" : 1.0000 },
  289. // "vscan" : { "minimum" : 0.0000, "maximum" : 1.0000 }
  290. // }
  291. ],
  292.  
  293. "endOfJson" : "endOfJson"
  294. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement