Advertisement
Ookpik

hyperion.config.json color range 0-49 and 50-99

May 24th, 2015
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 10.43 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"       : "ws2801",
  17.         "output"     : "/dev/spidev0.0",
  18.         "rate"       : 250000,
  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.  
  45. /// Paramètres pour les LED n°1 à la LED n°50
  46. "color" :
  47.     {
  48.         "transform" :
  49.         [
  50.             {
  51.                 "id"   : "default",
  52.                 "leds" : "0-49",
  53.                 "hsv" :
  54.                 {
  55.                     "saturationGain" : 1.0000,
  56.                     "valueGain"      : 1.0000
  57.                 },
  58.                 "red" :
  59.                 {
  60.                     "threshold"  : 0.0000,
  61.                     "gamma"      : 1.0000,
  62.                     "blacklevel" : 0.0000,
  63.                     "whitelevel" : 1.0000
  64.                 },
  65.                 "green" :
  66.                 {
  67.                     "threshold"  : 0.0000,
  68.                     "gamma"      : 1.0000,
  69.                     "blacklevel" : 0.0000,
  70.                     "whitelevel" : 1.0000
  71.                 },
  72.                 "blue" :
  73.                 {
  74.                     "threshold"  : 0.0000,
  75.                     "gamma"      : 1.0000,
  76.                     "blacklevel" : 0.0000,
  77.                     "whitelevel" : 1.0000
  78.                 }
  79.             }
  80.         ],
  81.         "smoothing" :
  82.         {
  83.             "type"            : "none",
  84.             "time_ms"         : 200,
  85.             "updateFrequency" : 20.0000
  86.         }
  87.     },
  88.  
  89. /// Paramètres pour les LED n°50 à la LED n°99
  90. /// C'est ici que tu modifieras les valeurs pour que ce soit moins rouge par exemple.
  91. "color" :
  92.     {
  93.         "transform" :
  94.         [
  95.             {
  96.                 "id"   : "default",
  97.                 "leds" : "50-99",
  98.                 "hsv" :
  99.                 {
  100.                     "saturationGain" : 1.0000,
  101.                     "valueGain"      : 1.0000
  102.                 },
  103.                 "red" :
  104.                 {
  105.                     "threshold"  : 0.0000,
  106.                     "gamma"      : 1.0000,
  107.                     "blacklevel" : 0.0000,
  108.                     "whitelevel" : 1.0000
  109.                 },
  110.                 "green" :
  111.                 {
  112.                     "threshold"  : 0.0000,
  113.                     "gamma"      : 1.0000,
  114.                     "blacklevel" : 0.0000,
  115.                     "whitelevel" : 1.0000
  116.                 },
  117.                 "blue" :
  118.                 {
  119.                     "threshold"  : 0.0000,
  120.                     "gamma"      : 1.0000,
  121.                     "blacklevel" : 0.0000,
  122.                     "whitelevel" : 1.0000
  123.                 }
  124.             }
  125.         ],
  126.         "smoothing" :
  127.         {
  128.             "type"            : "none",
  129.             "time_ms"         : 200,
  130.             "updateFrequency" : 20.0000
  131.         }
  132.     },
  133. /// Ici tu copies/colles les paramètres que tu as dans ton hyperion.config.json actuel
  134.     "leds" :
  135.     [
  136.         {
  137.             "index" : 0,
  138.             "hscan" : { "minimum" : 0.4375, "maximum" : 0.5000 },
  139.             "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
  140. /// À compléter jusqu'à 99
  141.             "index" : 99,
  142.             "hscan" : { "minimum" : 0.5000, "maximum" : 0.5625 },
  143.             "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
  144.         }
  145.     ],
  146.  
  147.     /// The black border configuration, contains the following items:
  148.     ///  * enable    : true if the detector should be activated
  149.     ///  * threshold : Value below which a pixel is regarded as black
  150.     "blackborderdetector" :
  151.     {
  152.         "enable" : true,
  153.         "threshold" : 0.01
  154.     },
  155.  
  156.     "effects" :
  157.     {
  158.         "paths" :
  159.         [
  160.             "/opt/hyperion/effects"
  161.         ]
  162.     },
  163.  
  164.     "bootsequence" :
  165.     {
  166.         "effect" : "Rainbow swirl fast",
  167.         "duration_ms" : 3000
  168.     },
  169.  
  170.     ///  The configuration for the frame-grabber, contains the following items:
  171.     ///   * width        : The width of the grabbed frames [pixels]
  172.     ///   * height       : The height of the grabbed frames [pixels]
  173.     ///   * frequency_Hz : The frequency of the frame grab [Hz]
  174.     "framegrabber" :
  175.     {
  176.         "width" : 64,
  177.         "height" : 64,
  178.         "frequency_Hz" : 10.0
  179.     },
  180.  
  181.     /// The configuration of the XBMC connection used to enable and disable the frame-grabber. Contains the following fields:
  182.     ///  * xbmcAddress  : The IP address of the XBMC-host
  183.     ///  * xbmcTcpPort  : The TCP-port of the XBMC-server
  184.     ///  * grabVideo    : Flag indicating that the frame-grabber is on(true) during video playback
  185.     ///  * grabPictures : Flag indicating that the frame-grabber is on(true) during picture show
  186.     ///  * grabAudio    : Flag indicating that the frame-grabber is on(true) during audio playback
  187.     ///  * grabMenu     : Flag indicating that the frame-grabber is on(true) in the XBMC menu
  188.     "xbmcVideoChecker" :
  189.     {
  190.         "xbmcAddress" : "127.0.0.1",
  191.         "xbmcTcpPort" : 9090,
  192.         "grabVideo" : true,
  193.         "grabPictures" : true,
  194.         "grabAudio" : true,
  195.         "grabMenu" : false,
  196.                 "grabScreensaver" : true,
  197.                 "enable3DDetection" : true
  198.     },
  199.  
  200.         /// Configuration for the embedded V4L2 grabber
  201.         ///  * device          : V4L2 Device to use [default="/dev/video0"]
  202.         ///  * input           : V4L2 input to use [default=0]
  203.         ///  * standard        : Video standard (no-change/PAL/NTSC) [default="no-change"]
  204.         ///  * width                : V4L2 width to set [default=-1]
  205.         ///  * height               : V4L2 height to set [default=-1]
  206.         ///  * frameDecimation      : Frame decimation factor [default=2]
  207.         ///  * sizeDecimation       : Size decimation factor [default=8]
  208.         ///  * priority             : Hyperion priority channel [default=800]
  209.         ///  * mode                 : 3D mode to use 2D/3DSBS/3DTAB (note: no autodetection) [default="2D"]
  210.         ///  * cropLeft             : Cropping from the left [default=0]
  211.         ///  * cropRight            : Cropping from the right [default=0]
  212.         ///  * cropTop              : Cropping from the top [default=0]
  213.         ///  * cropBottom           : Cropping from the bottom [default=0]
  214.         ///  * redSignalThreshold   : Signal threshold for the red channel between 0.0 and 1.0 [default=0.0]
  215.         ///  * greenSignalThreshold : Signal threshold for the green channel between 0.0 and 1.0 [default=0.0]      
  216.         ///  * blueSignalThreshold  : Signal threshold for the blue channel between 0.0 and 1.0 [default=0.0]
  217. //        "grabber-v4l2" :
  218. //        {
  219. //                "device" : "/dev/video0",
  220. //                "input" : 0,
  221. //                "standard" : "PAL",
  222. //                "width" : -1,
  223. //                "height" : -1,
  224. //                "frameDecimation" : 2,
  225. //                "sizeDecimation" : 8,
  226. //                "priority" : 800,
  227. //                "mode" : "2D",
  228. //                "cropLeft" : 10,
  229. //                "cropRight" : 10,
  230. //                "cropTop" : 1,
  231. //                "cropBottom" : 1,      
  232. //                "redSignalThreshold" : 0.1,
  233. //                "greenSignalThreshold" : 0.1,
  234. //                "blueSignalThreshold" : 0.1
  235. //        },
  236.  
  237.     /// The configuration of the Json server which enables the json remote interface
  238.     ///  * port : Port at which the json server is started
  239.     "jsonServer" :
  240.     {
  241.         "port" : 19444
  242.     },
  243.  
  244.     /// The configuration of the Proto server which enables the protobuffer remote interface
  245.     ///  * port : Port at which the protobuffer server is started
  246.     "protoServer" :
  247.     {
  248.         "port" : 19445
  249.     },
  250.  
  251.     /// The configuration of the boblight server which enables the boblight remote interface
  252.     ///  * port : Port at which the boblight server is started
  253. //  "boblightServer" :
  254. //  {
  255. //      "port" : 19333
  256. //  },
  257.  
  258.     "endOfJson" : "endOfJson"
  259. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement