Advertisement
Guest User

hyperion.config.jsonn

a guest
Jan 10th, 2016
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 10.91 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
  8.     /// APA102, Adalight, AmbiLed, Atmo, Hyperion-USBASP-WS2801, Hyperion-USBASP-WS2812, Lightberry, Lightpack, LPD6803, LPD8806, Multi-Lightpack, P9813, Paintpack, PhilipsHUE, PiBlaster, SEDU, Test, ThinkerForge, TPM2, WS2801, WS2812b, None)
  9.     /// * [device type specific configuration]
  10.     /// * 'colorOrder' : The order of the color bytes ('rgb', 'rbg', 'bgr', etc.).
  11.     "device" :
  12.     {
  13.         "name"       : "MyPi",
  14.         "type"       : "adalight",
  15.         "output"     : "/dev/ttyACM0",
  16.         "rate"     : 500000,
  17.         "delayAfterConnect"     : 000,
  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.     ///            - 'updateDelay'     The delay of the output to leds (in periods of smoothing)
  44.     "color" :
  45.     {
  46.         "transform" :
  47.         [
  48.             {
  49.                 "id"   : "default",
  50.                 "leds" : "*",
  51.                 "hsv" :
  52.                 {
  53.                     "saturationGain" : 3.6100,
  54.                     "valueGain"      : 0.5200
  55.                 },
  56.                 "red" :
  57.                 {
  58.                     "threshold"  : 0.0000,
  59.                     "gamma"      : 1.0000,
  60.                     "blacklevel" : 0.0000,
  61.                     "whitelevel" : 1.0000
  62.                 },
  63.                 "green" :
  64.                 {
  65.                     "threshold"  : 0.0000,
  66.                     "gamma"      : 1.0000,
  67.                     "blacklevel" : 0.0000,
  68.                     "whitelevel" : 0.6700
  69.                 },
  70.                 "blue" :
  71.                 {
  72.                     "threshold"  : 0.0000,
  73.                     "gamma"      : 1.0000,
  74.                     "blacklevel" : 0.0000,
  75.                     "whitelevel" : 0.5500
  76.                 }
  77.             }
  78.         ],
  79.         "smoothing" :
  80.         {
  81.             "type"            : "linear",
  82.             "time_ms"         : 200,
  83.             "updateFrequency" : 20.0000,
  84.             "updateDelay"     : 0
  85.         }
  86.     },
  87.  
  88.     /// The black border configuration, contains the following items:
  89.     ///  * enable    : true if the detector should be activated
  90.     ///  * threshold : Value below which a pixel is regarded as black (value between 0.0 and 1.0)
  91.     "blackborderdetector" :
  92.     {
  93.         "enable" : true,
  94.         "threshold" : 0.01
  95.     },
  96.  
  97.     /// The configuration of the effect engine, contains the following items:
  98.     ///  * paths        : An array with absolute location(s) of directories with effects
  99.     ///  * bootsequence : The effect selected as 'boot sequence'
  100.     "effects" :
  101.     {
  102.         "paths" :
  103.         [
  104.             "/storage/hyperion/effects"
  105.         ]
  106.     },
  107.  
  108. //  "bootsequence" :
  109. //  {
  110. //      "effect" : "Rainbow swirl fast",
  111. //      "duration_ms" : 3000
  112. //  },
  113.  
  114.     ///  The configuration for the frame-grabber, contains the following items:
  115.     ///   * width        : The width of the grabbed frames [pixels]
  116.     ///   * height       : The height of the grabbed frames [pixels]
  117.     ///   * frequency_Hz : The frequency of the frame grab [Hz]
  118.     "framegrabber" :
  119.     {
  120.         "width" : 64,
  121.         "height" : 64,
  122.         "frequency_Hz" : 10.0
  123.     },
  124.  
  125.     /// The configuration of the XBMC connection used to enable and disable the frame-grabber. Contains the following fields:
  126.     ///  * xbmcAddress       : The IP address of the XBMC-host
  127.     ///  * xbmcTcpPort       : The TCP-port of the XBMC-server
  128.     ///  * grabVideo         : Flag indicating that the frame-grabber is on(true) during video playback
  129.     ///  * grabPictures      : Flag indicating that the frame-grabber is on(true) during picture show
  130.     ///  * grabAudio         : Flag indicating that the frame-grabber is on(true) during audio playback
  131.     ///  * grabMenu          : Flag indicating that the frame-grabber is on(true) in the XBMC menu
  132.     ///  * grabScreensaver   : Flag indicating that the frame-grabber is on(true) when XBMC is on screensaver
  133.     ///  * enable3DDetection : Flag indicating that the frame-grabber should switch to a 3D compatible modus if a 3D video is playing
  134.     "xbmcVideoChecker" :
  135.     {
  136.         "xbmcAddress" : "10.0.10.20",
  137.         "xbmcTcpPort" : 9090,
  138.         "grabVideo" : true,
  139.         "grabPictures" : true,
  140.         "grabAudio" : true,
  141.         "grabMenu" : true,
  142.         "grabScreensaver" : true,
  143.         "enable3DDetection" : false
  144.     },
  145.  
  146.     /// The configuration of the Json server which enables the json remote interface
  147.     ///  * port : Port at which the json server is started
  148.     "jsonServer" :
  149.     {
  150.         "port" : 19444
  151.     },
  152.  
  153.     /// The configuration of the Proto server which enables the protobuffer remote interface
  154.     ///  * port : Port at which the protobuffer server is started
  155.     "protoServer" :
  156.     {
  157.         "port" : 19445
  158.     },
  159.  
  160.     /// The configuration of the boblight server which enables the boblight remote interface
  161.     ///  * port : Port at which the boblight server is started
  162. //  "boblightServer" :
  163. //  {
  164. //      "port" : 19333
  165. //  },
  166.  
  167.     /// Configuration for the embedded V4L2 grabber
  168.     ///  * device          : V4L2 Device to use [default="/dev/video0"]
  169.     ///  * input           : V4L2 input to use [default=0]
  170.     ///  * standard        : Video standard (no-change/PAL/NTSC) [default="no-change"]
  171.     ///  * width                : V4L2 width to set [default=-1]
  172.     ///  * height               : V4L2 height to set [default=-1]
  173.     ///  * frameDecimation      : Frame decimation factor [default=2]
  174.     ///  * sizeDecimation       : Size decimation factor [default=8]
  175.     ///  * priority             : Hyperion priority channel [default=800]
  176.     ///  * mode                 : 3D mode to use 2D/3DSBS/3DTAB (note: no autodetection) [default="2D"]
  177.     ///  * cropLeft             : Cropping from the left [default=0]
  178.     ///  * cropRight            : Cropping from the right [default=0]
  179.     ///  * cropTop              : Cropping from the top [default=0]
  180.     ///  * cropBottom           : Cropping from the bottom [default=0]
  181.     ///  * redSignalThreshold   : Signal threshold for the red channel between 0.0 and 1.0 [default=0.0]
  182.     ///  * greenSignalThreshold : Signal threshold for the green channel between 0.0 and 1.0 [default=0.0]
  183.     ///  * blueSignalThreshold  : Signal threshold for the blue channel between 0.0 and 1.0 [default=0.0]
  184. //  "grabber-v4l2" :
  185. //  {
  186. //      "device" : "/dev/video0",
  187. //      "input" : 0,
  188. //      "standard" : "no-change",
  189. //      "width" : -1,
  190. //      "height" : -1,
  191. //      "frameDecimation" : 2,
  192. //      "sizeDecimation" : 8,
  193. //      "priority" : 800,
  194. //      "mode" : "2D",
  195. //      "cropLeft" : 0,
  196. //      "cropRight" : 0,
  197. //      "cropTop" : 0,
  198. //      "cropBottom" : 0,
  199. //      "redSignalThreshold" : 0.0,
  200. //      "greenSignalThreshold" : 0.0,
  201. //      "blueSignalThreshold" : 0.0
  202. //  },
  203.  
  204.     ///  The configuration for each individual led. This contains the specification of the area
  205.     ///  averaged of an input image for each led to determine its color. Each item in the list
  206.     ///  contains the following fields:
  207.     ///  * index: The index of the led. This determines its location in the string of leds; zero
  208.     ///           being the first led.
  209.     ///  * hscan: The fractional part of the image along the horizontal used for the averaging
  210.     ///           (minimum and maximum inclusive)
  211.     ///  * vscan: The fractional part of the image along the vertical used for the averaging
  212.     ///           (minimum and maximum inclusive)
  213.     "leds" :
  214.     [
  215.         {
  216.             "index" : 0,
  217.             "hscan" : { "minimum" : 0.2060, "maximum" : 0.4020 },
  218.             "vscan" : { "minimum" : 0.9100, "maximum" : 0.9900 }
  219.         },
  220.         {
  221.             "index" : 1,
  222.             "hscan" : { "minimum" : 0.0100, "maximum" : 0.2060 },
  223.             "vscan" : { "minimum" : 0.9100, "maximum" : 0.9900 }
  224.         },
  225.         {
  226.             "index" : 2,
  227.             "hscan" : { "minimum" : 0.0100, "maximum" : 0.0500 },
  228.             "vscan" : { "minimum" : 0.6633, "maximum" : 0.9900 }
  229.         },
  230.         {
  231.             "index" : 3,
  232.             "hscan" : { "minimum" : 0.0100, "maximum" : 0.0500 },
  233.             "vscan" : { "minimum" : 0.3367, "maximum" : 0.6633 }
  234.         },
  235.         {
  236.             "index" : 4,
  237.             "hscan" : { "minimum" : 0.0100, "maximum" : 0.0500 },
  238.             "vscan" : { "minimum" : 0.0100, "maximum" : 0.3367 }
  239.         },
  240.         {
  241.             "index" : 5,
  242.             "hscan" : { "minimum" : 0.0100, "maximum" : 0.2060 },
  243.             "vscan" : { "minimum" : 0.0100, "maximum" : 0.0900 }
  244.         },
  245.         {
  246.             "index" : 6,
  247.             "hscan" : { "minimum" : 0.2060, "maximum" : 0.4020 },
  248.             "vscan" : { "minimum" : 0.0100, "maximum" : 0.0900 }
  249.         },
  250.         {
  251.             "index" : 7,
  252.             "hscan" : { "minimum" : 0.4020, "maximum" : 0.5980 },
  253.             "vscan" : { "minimum" : 0.0100, "maximum" : 0.0900 }
  254.         },
  255.         {
  256.             "index" : 8,
  257.             "hscan" : { "minimum" : 0.5980, "maximum" : 0.7940 },
  258.             "vscan" : { "minimum" : 0.0100, "maximum" : 0.0900 }
  259.         },
  260.         {
  261.             "index" : 9,
  262.             "hscan" : { "minimum" : 0.7940, "maximum" : 0.9900 },
  263.             "vscan" : { "minimum" : 0.0100, "maximum" : 0.0900 }
  264.         },
  265.         {
  266.             "index" : 10,
  267.             "hscan" : { "minimum" : 0.9500, "maximum" : 0.9900 },
  268.             "vscan" : { "minimum" : 0.0100, "maximum" : 0.3367 }
  269.         },
  270.         {
  271.             "index" : 11,
  272.             "hscan" : { "minimum" : 0.9500, "maximum" : 0.9900 },
  273.             "vscan" : { "minimum" : 0.3367, "maximum" : 0.6633 }
  274.         },
  275.         {
  276.             "index" : 12,
  277.             "hscan" : { "minimum" : 0.9500, "maximum" : 0.9900 },
  278.             "vscan" : { "minimum" : 0.6633, "maximum" : 0.9900 }
  279.         },
  280.         {
  281.             "index" : 13,
  282.             "hscan" : { "minimum" : 0.7940, "maximum" : 0.9900 },
  283.             "vscan" : { "minimum" : 0.9100, "maximum" : 0.9900 }
  284.         },
  285.         {
  286.             "index" : 14,
  287.             "hscan" : { "minimum" : 0.5980, "maximum" : 0.7940 },
  288.             "vscan" : { "minimum" : 0.9100, "maximum" : 0.9900 }
  289.         },
  290.         {   "index":15,
  291.             "hscan" : { "minimum" : 0.4020, "maximum" : 0.5980 },
  292.                         "vscan" : { "minimum" : 0.9100, "maximum" : 0.9900 }
  293.         }
  294.     ],
  295.  
  296.     "endOfJson" : "endOfJson"
  297. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement