Advertisement
Guest User

hyperion config

a guest
Feb 9th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 7.31 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"       : "piblaster",
  17.         "output"     : "/dev/pi-blaster",
  18.         "assignment" : " r  g b "
  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.0000,
  58.                     "gamma"      : 1.0000,
  59.                     "blacklevel" : 0.0000,
  60.                     "whitelevel" : 1.0000
  61.                 },
  62.                 "green" :
  63.                 {
  64.                     "threshold"  : 0.0000,
  65.                     "gamma"      : 1.0000,
  66.                     "blacklevel" : 0.0000,
  67.                     "whitelevel" : 1.0000
  68.                 },
  69.                 "blue" :
  70.                 {
  71.                     "threshold"  : 0.0000,
  72.                     "gamma"      : 1.0000,
  73.                     "blacklevel" : 0.0000,
  74.                     "whitelevel" : 1.0000
  75.                 }
  76.             }
  77.         ],
  78.         "smoothing" :
  79.         {
  80.             "type"            : "none",
  81.             "time_ms"         : 200,
  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.0000, "maximum" : 1.0000 },
  100.             "vscan" : { "minimum" : 0.0000, "maximum" : 1.0000 }
  101.         },
  102.         {
  103.             "index" : 1,
  104.             "hscan" : { "minimum" : 0.0000, "maximum" : 1.0000 },
  105.             "vscan" : { "minimum" : 0.0000, "maximum" : 1.0000 }
  106.         },
  107.         {
  108.             "index" : 2,
  109.             "hscan" : { "minimum" : 0.0000, "maximum" : 1.0000 },
  110.             "vscan" : { "minimum" : 0.0000, "maximum" : 1.0000 }
  111.         }
  112.     ],
  113.  
  114.     /// The black border configuration, contains the following items:
  115.     ///  * enable    : true if the detector should be activated
  116.     ///  * threshold : Value below which a pixel is regarded as black (value between 0.0 and 1.0)
  117.     "blackborderdetector" :
  118.     {
  119.         "enable" : true,
  120.         "threshold" : 0.01
  121.     },
  122.  
  123.     /// The configuration of the effect engine, contains the following items:
  124.     ///  * paths        : An array with absolute location(s) of directories with effects
  125.     ///  * bootsequence : The effect selected as 'boot sequence'
  126.     "effects" :
  127.     {
  128.         "paths" :
  129.         [
  130.             "/opt/hyperion/effects"
  131.         ]
  132.     },
  133.  
  134.     "bootsequence" :
  135.     {
  136.         "effect" : "Rainbow swirl fast",
  137.         "duration_ms" : 3000
  138.     },
  139.  
  140.     ///  The configuration for the frame-grabber, contains the following items:
  141.     ///   * width        : The width of the grabbed frames [pixels]
  142.     ///   * height       : The height of the grabbed frames [pixels]
  143.     ///   * frequency_Hz : The frequency of the frame grab [Hz]
  144. //  "framegrabber" :
  145. //  {
  146. //      "width" : 64,
  147. //      "height" : 64,
  148. //      "frequency_Hz" : 10.0
  149. //  },
  150.  
  151.     /// The configuration of the XBMC connection used to enable and disable the frame-grabber. Contains the following fields:
  152.     ///  * xbmcAddress       : The IP address of the XBMC-host
  153.     ///  * xbmcTcpPort       : The TCP-port of the XBMC-server
  154.     ///  * grabVideo         : Flag indicating that the frame-grabber is on(true) during video playback
  155.     ///  * grabPictures      : Flag indicating that the frame-grabber is on(true) during picture show
  156.     ///  * grabAudio         : Flag indicating that the frame-grabber is on(true) during audio playback
  157.     ///  * grabMenu          : Flag indicating that the frame-grabber is on(true) in the XBMC menu
  158.     ///  * grabScreensaver   : Flag indicating that the frame-grabber is on(true) when XBMC is on screensaver
  159.     ///  * enable3DDetection : Flag indicating that the frame-grabber should switch to a 3D compatible modus if a 3D video is playing
  160. //  "xbmcVideoChecker" :
  161. //  {
  162. //      "xbmcAddress" : "127.0.0.1",
  163. //      "xbmcTcpPort" : 9090,
  164. //      "grabVideo" : true,
  165. //      "grabPictures" : true,
  166. //      "grabAudio" : true,
  167. //      "grabMenu" : false,
  168. //      "grabScreensaver" : true,
  169. //      "enable3DDetection" : true
  170. //  },
  171.  
  172.     /// The configuration of the Json server which enables the json remote interface
  173.     ///  * port : Port at which the json server is started
  174.     "jsonServer" :
  175.     {
  176.         "port" : 19444
  177.     },
  178.  
  179.     /// The configuration of the Proto server which enables the protobuffer remote interface
  180.     ///  * port : Port at which the protobuffer server is started
  181.     "protoServer" :
  182.     {
  183.         "port" : 19445
  184.     },
  185.  
  186.     /// The configuration of the boblight server which enables the boblight remote interface
  187.     ///  * port : Port at which the boblight server is started
  188. //  "boblightServer" :
  189. //  {
  190. //      "port" : 19333
  191. //  },
  192.  
  193.     "endOfJson" : "endOfJson"
  194. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement