Advertisement
W04

Untitled

W04
Nov 12th, 2019
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.23 KB | None | 0 0
  1.  
  2. # http://www.lightshowpi.org/
  3. #
  4. # SAMPLE CONFIGURATION FILE
  5. # -------------------------
  6. # This is a SAMPLE configuration file for the program. This file follows conventions
  7. # of a python config file. The variables defined below control variable aspects
  8. # of the program. To use this sample file, copy it to the config directory and rename
  9. # the file "overrides.cfg". This sample file only contains settings related to making
  10. # specific functions or hardware work that are outlined in the description below. You can
  11. # make changes to other settings by modifing the "config/defaults.cfg" file, or by adding
  12. # them directly to this file. NOTE: Full descriptions for each setting below can be found in
  13. # the "config/defaults.cfg" file.
  14. #
  15. # Author: Chris Usey (chris.usey@gmail.com)
  16. #
  17. # ----------------------------------------------
  18. # -- Model B AND mcp23017 Sample Config File --
  19. # ----------------------------------------------
  20. # This sample config file can be used as a starting point for configuring your
  21. # RaspberryPi Model B with a mcp23017 Port Expander to add 16 additional GPIO to your project.
  22. # This sample configures the RaspberryPi to use 8 GPIO of the RaspberryPi Model B and
  23. # an additional 16 GPIO of the mcp23017 Port expander for a total of 24 channels.
  24.  
  25. # mcp23017 Chip Addressing
  26. # The following details how you might wire up a mcp23017 port expander to the raspberry Pi
  27. #
  28. # RpiPin mcp23017 PINOUT RpiPin
  29. # _______________|_________________________________|_______________
  30. # | ___ ___ |
  31. # | | () | |
  32. # | GPB0 <-> | 1 28 | <-> GPA7 |
  33. # | GPB1 <-> | 2 27 | <-> GPA6 |
  34. # | GPB2 <-> | 3 26 | <-> GPA5 |
  35. # | GPB3 <-> | 4 25 | <-> GPA4 |
  36. # | GPB4 <-> | 5 24 | <-> GPA3 |
  37. # | GPB5 <-> | 6 23 | <-> GPA2 |
  38. # | GPB6 <-> | 7 23 | <-> GPA1 |
  39. # | GPB7 <-> | 8 22 | <-> GPA0 |
  40. # 3.3v | VDD --> | 9 20 | --> INTA |
  41. # GND | VSS --> | 10 19 | --> INTB |
  42. # | NC --- | 11 18 | --> RESET | 3.3v
  43. # 5 (SCL) | SCL --> | 12 17 | <-- A2 | GND
  44. # 3 (SDA) | SDA <-> | 13 16 | <-- A1 | GND
  45. # | NC --- | 14 15 | <-- A0 | GND
  46. # | |________| |
  47. #
  48. #
  49. # PINS A0,A1,A2 determine the address assigned to the device. The diagram above sets the address i2c_address
  50. # to 0x20. To achieve a different address set the pins as follows:
  51. #
  52. # 0x20 = A0(GND) A1(GND) A2(GND)
  53. # 0x21 = A0(GND) A1(GND) A2(3.3v)
  54. # 0x22 = A0(GND) A1(3.3v) A2(GND)
  55. # 0x23 = A0(GND) A1(3.3v) A2(3.3v)
  56. # 0x24 = A0(3.3v) A1(GND) A2(GND)
  57. # 0x25 = A0(3.3v) A1(GND) A2(3.3v)
  58. # 0x26 = A0(3.3v) A1(3.3v) A2(GND)
  59. # 0x27 = A0(3.3v) A1(3.3v) A2(3.3v)
  60.  
  61.  
  62.  
  63. [hardware]
  64.  
  65. # Enable the mcp23017 port expander and set it's pin base as 65 with a chip address of 0x20
  66. # for more information on chip addressing see notes above.
  67. devices = {
  68. "mcp23017": [
  69. {
  70. "pinBase": "65",
  71. "i2cAddress": "0x20"
  72. }
  73. ]
  74. }
  75.  
  76. # GPIO Pins
  77. gpio_pins = 0,1,2,3,4,5,6,7,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80
  78. # Set the mode the pins should be configured in, namely "pwm" for fading in and
  79. # out based upon the frequency response, or "onoff" for an on off switching
  80. # effect when crossing a median frequency response per channel.
  81. #
  82. # Note: Mechanical relays will likely fail much sooner in "pwm" mode, it is
  83. # suggested to only use pwm mode if using solid state relays (SSR).
  84. #
  85. # You can configure each pin individually, for example:
  86. #pin_modes = onoff,onoff,pwm,pwm,pwm,onoff,onoff
  87. #
  88. # Or you can simply set all pins to the same mode:
  89. pin_modes = onoff
  90.  
  91. # We use the wiringPi's software pwm library for "pwm" fading:
  92. #
  93. # https://projects.drogon.net/raspberry-pi/wiringpi/software-pwm-library/
  94. #
  95. # TODO(todd giles): Add a page to the wiki with examples of different types of lights and
  96. # relays and the effect produced for various PWM ranges. The text below should be taken
  97. # with a grain of salt as I have not been able to test as completely as I'd like to yet.
  98. #
  99. # Change the pwm range used for this software pwm by changing this setting. The optimal
  100. # setting really depends on your hardware setup. If you are using zero-cross relays and
  101. # driving an AC load then using a pwm range of 500 gives decent results (flickering
  102. # effect for many led lights with input rectifiers, and a decent fade for incandescents).
  103. # A range of 500 generates a 20Hz pwm frequency.
  104. #
  105. # If you have random cross relays that can shut-off / on at any time then going for a
  106. # 60 Hz pwm frequency can be advantageous, although timing this to the actual zero crossings
  107. # of the power line used will give the best fading effect - again with incandescent bulbs.
  108. # A range of 167 approximately generates a 60Hz pwm frequency.
  109. #
  110. # If you are attempting to fade a DC led load then the default range of 100 which gives a
  111. # 100Hz pwm frequency works fine.
  112. pwm_range = 100
  113.  
  114. # If you are using a piGlow set this to True and use the example in lightshowpi/contrib
  115. # set device and gpio_pins
  116. piglow = False
  117.  
  118. [configs]
  119. # Define more config files for additional functionality
  120.  
  121. # Add one or more LED RGB Pixel configuration file(s) see led1.defaults.cfg
  122. # copy led1.defaults.cfg to led1.cfg, customize, and set led_config = led1.cfg
  123. # SPI ( direct from Pi pins ), Serial USB ( AllPixel, Arduino ), or sACN ( network device )
  124. # led_config = led1.cfg
  125. # led_config = led1.cfg,led2.cfg
  126. led_config =
  127.  
  128. # Turn on multiprocessing for LED processes ( experimental ) default = False
  129. led_multiprocess = False
  130.  
  131. [fm]
  132. # By setting fm to true it will output the fm signal on pin 7 (GPCLK0)
  133. # otherwise will result in output through the line out port
  134. # frequency is the fm channel to play on
  135. fm = False
  136. frequency = 100.1
  137.  
  138. # Display RDS text on supported radios (Raspberry Pi 2 and newer supported)
  139. # Program Service Name (Most radios support this)
  140. # Strings longer than 8 characters will display in increments of 8 characters
  141. program_service_name = LSPi
  142. # Set the wait (in seconds) before continuing onto the next 8 characters
  143. ps_increment_delay = 3.5
  144.  
  145. # Radio text - Limited to 64 characters
  146. # Set as playlist to display the name of the current playing song when using a playlist
  147. radio_text = playlist
  148.  
  149. [lightshow]
  150. # We support the following modes for running light shows:
  151.  
  152. # ---------------------------------------------------------------
  153. # 'playlist' mode specific configurations for the lightshow
  154. # ---------------------------------------------------------------
  155. # Play song files on the RPi from the playlist as defined below, with
  156. # the preshow defined before each song. (default)
  157. mode = playlist
  158.  
  159. # The playlist_path defines the path to the .playlist file. The .playlist file
  160. # is a text file that contains a list of what songs should be included in the show
  161. # and is in the format:
  162. # [song_name1] <tab> [/full/path/to/song]
  163. # [song_name2] <tab> [/full/path/to/song]
  164. # A sample of how this should be configured can be found in $SYNCHRONIZED_LIGHTS_HOME/music/sample/
  165. # To create your own playlist simply create a .playlist file with the songs desired and set the
  166. # playlist_path accordingly.
  167.  
  168. # SMS NOTE: the song name that you define in the playlist can be anything you desire, the song name
  169. # is what users will see when listing the songs via SMS.
  170. playlist_path = $SYNCHRONIZED_LIGHTS_HOME/music/sample/.playlist
  171.  
  172. # Set the following setting to 'yes' to randomize playback of songs from the
  173. # playlist. Default is to play the songs in the order listed in the playlist.
  174. randomize_playlist = no
  175.  
  176. # Set songname_command to any command that can use the first argument as the song name
  177. # Leave blank to disable
  178. # See documentation in tweet.py to configure Twitter
  179. #songname_command = python $SYNCHRONIZED_LIGHTS_HOME/py/tweet.py
  180. #songname_command = echo
  181. songname_command =
  182.  
  183. # ---------------------------------------------------------------
  184. # 'audio-in' mode specific configurations for the lightshow
  185. # ---------------------------------------------------------------
  186. # Control the lightshow from an audio stream coming from a usb-audio dongle
  187. # See http://lightshowpi.org/usb-audio-in-support/ for
  188. # more details on using audio-in mode.
  189. # mode = audio-in
  190.  
  191. # The name of the input audio card to use, by default use the default system
  192. # audio input device. You can override this to another card by setting it to the
  193. # name found from the audio_in_cards.py script (in tools directory).
  194. audio_in_card = default
  195.  
  196. # ---------------------------------------------------------------
  197. # 'stream-in' mode specific configurations for the lightshow
  198. # ---------------------------------------------------------------
  199. # Control the lightshow from an audio stream coming from a streaming source
  200. # You will need to set input_channels = 2 and input_sample_rate = ( usually 44100 )
  201. # mode = stream-in
  202.  
  203. # this example will play a shoutcast/icecast stream
  204. stream_command_string = sudo mpg123 --stdout http://193.34.51.115:80
  205.  
  206. # Example using Shairport Sync to stream AirPlay https://github.com/mikebrady/shairport-sync
  207. # stream_command_string = shairport-sync -v -o stdout
  208.  
  209. # You can also use a fifo to get streams like Pandora from players like pianobar
  210.  
  211. # stream_command_string = pianobar
  212. # NOTE: To use pianobar you must set it up to auto login and auto play a station
  213. # refer to this post for an example pianobar config to do this
  214. # http://ubuntuforums.org/showthread.php?t=1533357&p=9746309#post9746309
  215.  
  216. # A basic pianobar config that will allow you to login and autostart a station
  217. # is included in lightshowpi/config/contrib
  218. # You will need to place in the root users folder
  219. # /root/.config/pianobar/config
  220.  
  221. # lightshow fifo settings. Used with stream-in option.
  222.  
  223. # To use a fifo you will need to add an alsa plugin to /etc/asound.conf
  224. # A copy of the plugin is included in lightshowpi/config/contrib
  225. use_fifo = False
  226.  
  227. # Song count and exit. Used with stream-in option.
  228. #
  229. # Set your stream_song_delim to match a pattern in your stream output.
  230. # examples are provided for pianobar and icecast metadata updates.
  231. # occurences of these patterns will indicate a new song.
  232. # stream_song_delim = |> "
  233. stream_song_delim = ICY-META: StreamTitle=
  234. # Set stream_song_exit_count = number of songs to play before exiting. zero disables.
  235. stream_song_exit_count = 0
  236.  
  237. # ---------------------------------------------------------------
  238. # mode specific configurations shared by audio-in and stream-in
  239. # ---------------------------------------------------------------
  240. # The number of input channels, usb dongle or stream, typically 1 or 2:
  241. # 1 - mono / mic input
  242. # 2 - stereo input / stream
  243. input_channels = 1
  244.  
  245. # The rate at which to sample input from the usb dongle or stream
  246. # 48000 - mic input
  247. # 44100 - stream input
  248. input_sample_rate = 48000
  249.  
  250. # ---------------------------------------------------------------
  251. # audio_out_card configuration for the lightshow
  252. # ---------------------------------------------------------------
  253. # The name of the output audio card to use, by default use the default system
  254. # audio output device. You can override this to another card by setting it to the
  255. # name found from the audio_in_cards.py script (in tools directory).
  256. # Another way to get the name of the card to use and the proper format to use is to run
  257. # aplay -L | grep default
  258. # on the command line and copy the part of the output you need, as an example this command
  259. # tells me that the default Alsa card built into the RPI is
  260. # sysdefault:CARD=ALSA
  261. # and that my usb sound card is
  262. # sysdefault:CARD=Device
  263.  
  264. # If you are using a usb sound card and do not want to set is as the default,
  265. # you can just set it here and not have to edit your alsa-base.conf / alsa.conf files
  266. # All of this applies to audio_in_card as well
  267. audio_out_card = default
  268.  
  269. # ---------------------------------------------------------------
  270. # preshow config
  271. # ---------------------------------------------------------------
  272. # Control the lights between songs. You can turn the lights on and off a specified number of
  273. # seconds an arbitrary number of times and play and audio file with the preshow_configuration setting.
  274. # If no preshow_configuration is defined, songs will be played one after another without any delay.
  275. # Individual channels can be controlled per transition defined by adding the channel_control option.
  276. # The transition type will specify if all lights should be turned on, or turned off, and the
  277. # channel_control will override the transition type so that specific channels can be controlled
  278. # regardless of the transition type. Channels defined in the channel_control list are 1 based
  279. # (i.e. the first channel starts at 1) The preshow_configuration is defined as a JSON formatted object.
  280. # If defining the object on more than one line, pay attention to spacing and tabs as the object
  281. # should follow python conventions for indentation. If you get an error, chances are your object is
  282. # not formatted correctly or your indentation is not correct. You can check if your JSON is valid by
  283. # using an online validator such as http://jsonlint.com.
  284.  
  285. # SPECIAL NOTE: Defining a channel_control WILL supersede any channels that are defined in always_on_channels
  286. # or always_off_channels below.
  287.  
  288. #The syntax is:
  289. #preshow_configuration =
  290. # {
  291. # "transitions": [
  292. # {
  293. # "type": "< off|on >",
  294. # "duration": < seconds >,
  295. # "channel_control": {
  296. # "< off|on >": [< channel >,< channel >,....]
  297. # }
  298. # },
  299. # {
  300. # "type": "< off|on >",
  301. # "duration": < seconds >,
  302. # "channel_control": {
  303. # "< off|on >": [< channel >,< channel >,....]
  304. # }
  305. # }
  306. # ],
  307. # "audio_file": "</path/to/audio_file> or null if no audio"
  308. # }
  309.  
  310. # Turn the lights on for 30 seconds, leaving channel 3 off during the "on" transition, then
  311. # turn the lights off for 5 seconds, leaving channel 1 and 3 on during the "off" transition
  312. #preshow_configuration =
  313. # {
  314. # "transitions": [
  315. # {
  316. # "type": "on",
  317. # "duration": 30,
  318. # "channel_control": {
  319. # "off": [3]
  320. # }
  321. # },
  322. # {
  323. # "type": "off",
  324. # "duration": 5,
  325. # "channel_control": {
  326. # "on": [1,3]
  327. # }
  328. # }
  329. # ]
  330. # }
  331.  
  332. # You also have the option to run a custom script that will do anything you can
  333. # think of. We have included a few examples in $SYNCHRONIZED_LIGHTS_HOME/py/example_scripts
  334. # to use this feature
  335. #preshow_script = /full/path/to/your/script.py
  336. # this will override the preshow_configuration
  337. # and use the specified script
  338. # Disable the preshow altogether:
  339. #preshow_script =
  340. #preshow_configuration =
  341.  
  342. # Default is to be on for 10 seconds and off for 1 with no channel_control overrides
  343. # no audio played.
  344. preshow_script =
  345. preshow_configuration =
  346. {
  347. "transitions": [
  348. {
  349. "type": "on",
  350. "duration": 10,
  351. "channel_control": {
  352. }
  353. },
  354. {
  355. "type": "off",
  356. "duration": 1,
  357. "channel_control": {
  358. }
  359. }
  360. ],
  361. "audio_file": null
  362. }
  363.  
  364. # ---------------------------------------------------------------
  365. # postshow config
  366. # ---------------------------------------------------------------
  367. # postshow configuration is identical to the preshow configuration
  368. # see above for syntax
  369. # Default is to be disabled
  370. # no audio played.
  371. postshow_script =
  372. postshow_configuration =
  373.  
  374. # ---------------------------------------------------------------
  375. # common lightshow configuration options (affects multiple modes)
  376. # ---------------------------------------------------------------
  377.  
  378. # Override channels to be always on, always off, or inverted. inverted channels
  379. # will turn off when music is played, and on otherwise. These lists are 1
  380. # based (i.e. the first channel starts at 1).
  381.  
  382. # Always keep channels 2 and 6 on:
  383. #always_on_channels = 2,6
  384.  
  385. # Always keep channel 5 off:
  386. #always_off_channels = 5
  387.  
  388. # Invert the output for channel 4 and 8:
  389. #invert_channels = 4,8
  390.  
  391. # Default (-1) disables each of these settings
  392. always_on_channels = -1
  393. always_off_channels = -1
  394. invert_channels = -1
  395.  
  396. # Allow lights to become less "blinky" by fading out after a peak response
  397. # Typical values should be in the range of 0.05 to 0.20
  398. # Smaller values will cause the lights to remain on longer
  399. # Setting decay_factor to 0 will disable this functionality
  400. decay_factor = 0
  401.  
  402. # ---------------------------------------------------------------
  403. # attenuate percentage
  404. # ---------------------------------------------------------------
  405.  
  406. # Lower the response value for the lights by a percentage
  407. # Typical values should be in the range of 20-50
  408. # Higher values will cause the lights to be more off than on in onoff mode
  409. # Setting attenuate_pct to 0 will disable this functionality
  410. attenuate_pct = 0
  411.  
  412. # ---------------------------------------------------------------
  413. # Standard Deviation
  414. # ---------------------------------------------------------------
  415.  
  416. # Once the mean audio level and standard deviation is calculated for a channel
  417. # the standard deviation is used to determine the range of audio levels that
  418. # change the brightness level of the light(s) on that channel (presuming PWM is enabled).
  419. #
  420. # If the audio level is less than (mean - SD_low), lights will be off.
  421. # If the audio level is more than (mean + SD_high), lights will be at maximum brightness.
  422. # Between these two values, the brightness will be set proportionate to where the audio
  423. # level falls in this range.
  424. #
  425. # SD_low=0.5 and SD_high=0.75 preserve the original behavior by default.
  426.  
  427. SD_low = 0.5
  428. SD_high = 0.75
  429.  
  430. # light_delay is the number of seconds the light display is delayed from the input audio
  431. # use zero for an audio device output. Typically this is less than 1.0
  432. light_delay = 0.0
  433.  
  434. # Set the logging level of the lightshow module
  435. # DEBUG
  436. # INFO
  437. # WARNING
  438. # ERROR
  439. # CRITICAL
  440. log_level = INFO
  441.  
  442. [audio_processing]
  443. # Note: You may have to delete the song cache after changing these settings.
  444.  
  445. chunk_size = 2048
  446.  
  447. # The following values control the frequencies to which the channels will
  448. # respond. With min_frequency being the lowest frequency for which a channel
  449. # will be activated and max_frequency being the max frequency for which a
  450. # channel will be activated.
  451.  
  452. # The frequency range will be evenly divided between all the channels defined
  453. # in gpio_pins.
  454.  
  455. # Note that custom_channel_frequencies overrides these settings.
  456. min_frequency = 20
  457. max_frequency = 15000
  458.  
  459. # The following setting can be used to custom map the channels, in effect
  460. # this can programmatically allow you to switch a specific channel of
  461. # lights to a different frequency without having to physically rewire the
  462. # channels.
  463.  
  464. # For example: Imagine we have 8 channel's output that are connected to
  465. # corresponding gpio_pins. When the frequencies are mapped without using
  466. # custom_channel_mapping, and with a channel mapping defined as:
  467. #custom_channel_mapping = 1,2,3,4,5,6,7,8
  468. # the lowest frequency is assigned to channel 1, the next highest to channel
  469. # 2, and so on until the highest value is mapped to channel 8 (the 8th pin
  470. # defined in gpio_pins).
  471.  
  472. # Now say you wanted your THIRD channel to have the lowest frequency, without
  473. # using custom_channel_mapping you would have to physically rewire channel 3.
  474. # With custom channel mapping you simply define:
  475. #custom_channel_mapping = 1,2,1,4,5,6,7,8
  476. # Now both channel 1 and channel 3 will activated when the lowest frequency is
  477. # played. custom_channel_mapping must be the same size as gpio_pins.
  478.  
  479. # If you want to create a mirroring effect for the lights define:
  480. #custom_channel_mapping = 1,2,3,4,4,3,2,1
  481. # With custom channel mapping the program will only calculate and distribute
  482. # frequencies for the highest channel listed in custom_channel_mapping. So in
  483. # this mirroring example, the program will evenly distribute the frequencies.
  484.  
  485. # The default is not to define custom channel mapping and let the program
  486. # map the channels 1:1
  487. custom_channel_mapping =
  488.  
  489.  
  490. # Defining custom_channel_frequencies overrides the min_frequency and
  491. # max_frequency settings, allowing you to define a custom list of frequencies
  492. # that should be utilized for each channel. The list must be the size of
  493. # (gpio_pins + 1) or if custom_channel_mapping is being used it must be the
  494. # size of the max value + 1 in the custom_channel_mapping list.
  495. #custom_channel_frequencies = 0,156,313,625,1250,2500,5000,10000,15000
  496. # Raspberry Pi Model B+
  497. #custom_channel_frequencies = 0,833,1666,2499,3332,4165,4998,5831,6664,7497,8330,9163,10829,11662,12495,13328,14161,15000
  498. custom_channel_frequencies =
  499.  
  500. [sms]
  501. # If you desire to use SMS set to True, otherwise set this variable to False
  502. enable = False
  503.  
  504. # Set the logging level of the sms module
  505. # DEBUG
  506. # INFO
  507. # WARNING
  508. # ERROR
  509. # CRITICAL
  510. log_level = INFO
  511.  
  512. # All enabled sms commands must be defined here, otherwise they will be
  513. # reported as errors when requested. Note: Each command must be defined in the
  514. # 'py/sms_commands.py' file as a function. See that file for examples.
  515. commands = help,volume,play,vote,list
  516.  
  517. # Commands can have aliases defined here. IMPORTANT: Make sure that the
  518. # aliases are defined with the longest aliases first, otherwise the shorter
  519. # alias may win out and pass along part of the longer alias as if it were
  520. # an argument to the command (e.g. vol, v and not v, vol)
  521. #
  522. # TODO(todd giles): Add auto-aliases based upon best match from all commands
  523. help_aliases = h
  524. volume_aliases = vol, v
  525. play_aliases = p, next, n
  526. list_aliases = l, songs
  527.  
  528. # Short description of each command (returned in help request). Leave
  529. # the description blank to not have it returned in help requests.
  530. help_description =
  531. volume_description = vol<level>: vol+, vol-, v95
  532. play_description = play<song#>: play3, p3
  533. vote_description = vote<song#>: vote1, or simply 1
  534. list_description = list: lists all songs
  535.  
  536. # Configuration options for the list command.
  537. # Note: There is a SMS character limit for most carriers, your message may
  538. # still be chopped into multiple text's.
  539. # The number of songs to return per sms message
  540. list_songs_per_sms = 4
  541. # The number of songs to return in a list
  542. list_songs_per_page = 4
  543.  
  544.  
  545. # The default command is the command assumed when the sms message doesn't
  546. # match any given command or command alias.
  547. default_command = vote
  548.  
  549. # Multiple groups can be defined to fine tune which users can execute
  550. # which actions. For each group defined, you should also define a
  551. # group_name_users to list all users in the group as well as
  552. # group_name_commands to list all commands the group can perform.
  553. groups = admin,guest,voting
  554.  
  555. # For each group defined above, include the cell # for each member of
  556. # the group. A cell # can be in multiple groups. Note the format of the
  557. # numbers: "+15555555555:". The special term 'all' can be used to create
  558. # groups that apply to all cell #'s.
  559. admin_users = +11111111111:,+12222222222:
  560. guest_users = +13333333333:
  561. voting_users = all
  562.  
  563. # Specify which commands each group has access to. Each command must be
  564. # defined in 'commands' above. The special term 'all' includes all defined
  565. # commands.
  566. admin_commands = all
  567. guest_commands = play
  568. voting_commands = help,vote,list
  569.  
  570. # For each group defined above, throttling of commands can be achieved
  571. # by defining [command]:<command limit> for each command and limit you
  572. # wish to place a throttle on. Each command must be defined in 'commands'
  573. # above. The special term 'all' can be used to place an overall throttle on
  574. # group as a whole, and will limit the group to a specific number of commands
  575. # than can be used during 'throttle_time_limit_seconds'. Note that the order in which
  576. # 'groups' above is important (see note for groups above). If a user is defined
  577. # in more than one group, the user will be throttled at the highest group level.
  578. # that they belong to.
  579. throttle_time_limit_seconds = 3200
  580. admin_throttle = all:100
  581. guest_throttle = play:10,vote:60,all:100
  582. voting_throttle = vote:10,all:100
  583.  
  584. # Add users who are abusing your system to this blacklist, and their commands
  585. # will all be ignored by the application.
  586. blacklist = +14444444444:,+15555555555:
  587.  
  588. # The response given to an unknown command (i.e. the default command does
  589. # not know how to handle it, and it doesn't match any other commands).
  590. unknown_command_response = Hrm, not sure what you needed, try texting 'help' ...
  591.  
  592. # The response given to an unauthorized request.
  593. unauthorized_response = Hrm, not sure what you needed, try texting 'help' ...
  594.  
  595. # The response given when throttle limits have been reached
  596. throttle_limit_reached_response = Thank you, but the system has reached its maximum number of requests for the time being. Please try again in a little while.
  597.  
  598.  
  599. [network]
  600. #network streaming
  601. # The default mode for network streaming is be turned "off".
  602. # For your pi to broadcast or receive you must set one pi in your network to
  603. # be the server and any number to be clients
  604. # options off, server, client, serverjson
  605. networking = off
  606.  
  607. # default port is 8888
  608. # you can set this to any port of your choosing, just make sure that it
  609. # does not interfere with other systems that might be on your network
  610. # If you do change the default, you must change it on all systems that
  611. # you have setup, the server pi and any client pi
  612. port = 8888
  613.  
  614. # The buffer option determines the length of your receive buffer
  615. # if the buffer is to small you will receive pickle errors (data is pickled
  616. # before sending) if the buffer is to large it can cause your show to go out of
  617. # sync. The default is 1024 and is large enough for 16 channels. If you add
  618. # more channels you will need to increase this value. It is best to use a
  619. # multiple of 8
  620. buffer = 1024
  621.  
  622. # Channels
  623. # Affects clients only
  624. #
  625. # The clients default default behavior is for a client to mirror the lightshow
  626. # with all available channels available to the client. This also assumes the
  627. # server and the client have at the least the same number of channels defined.
  628. # The server can have more channels defined, but the client cannot, at least
  629. # for this default configuration to work.
  630. #
  631. # You can have more channels on the client but you must index them to one of the
  632. # existing channels being broadcast by the server.
  633. # Example
  634. # channels = 0,1,2,3,4,5,6,7,0,1,2,3,4,5,6,7
  635. #
  636. # The channels option is index based and starts at 0, this means that the pin numbers
  637. # in the gpio_pins options does not matter, only the index number does.
  638. # It starts at 0 and will increase by one for each channel.
  639. # 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,etc..........
  640. #
  641. # You can omit channels and even duplicate channels.
  642. # Examples
  643.  
  644. # If a server has 32 channels it will broadcast the data for all 32 channels,
  645. # but if a client only has 8 channels it will only playback the data for the first
  646. # 8 channels, also clients can not playback data for more channels then the server
  647. # can supply so having a client with 16 channels and a server with only 8 is not very
  648. # useful in a simple mirroring setup.
  649. # Use this setting to tell your client which channels to use
  650. # channels are list based and start at 0
  651. # 0,1,2,3,4,5,6,7 = 8 channels
  652. # 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 = 16 channels
  653. #
  654. # These channels must be defined on you server, but do not need to be real channels
  655. # You can simply add virtual channels to your server by adding to gpio_pins option
  656. # in the "[hardware]" section.
  657. # Define your real channels first, then add any number of virtual channels that you
  658. # want after that
  659. # example
  660. # you have 8 real channels on your server, and add 8 virtual channels to display
  661. # on your client
  662. # on the server do this
  663. # gpio_pins = 0,1,2,3,4,5,6,7,100,101,102,103,104,105,106,107
  664. # just pick unused pin numbers, 100 seems like a good place to start as pins
  665. # above 100 do not exist, you can use any starting point you wish, but I recommend
  666. # following the guidelines for using expander chips as a starting point
  667. # After that you can send the virtual channels to your client and they will be displayed
  668. #
  669. # These channels will be mapped to the channels on the client
  670. # in order, starting with the first available channel on the client
  671. # The incoming channels from the server wil be mapped as you list them
  672. #
  673. # One last option is to not use a channel on the client
  674. # just insert a negative number as the input channel and it will no
  675. # longer be used. Use any number less then 0 (negative)
  676. # in this example channels 2 4 and 6 on the client will not be used
  677. # channels = 0,1,-2,3,-4,5,-6,7
  678.  
  679. channels =
  680.  
  681. [terminal]
  682. # This boolean if set to True will disable sending brightness values to your hardware,
  683. # and instead send them to a curses based terminal window renderer that will dynamically
  684. # render columns of channel brightness values.
  685. # https://docs.python.org/2/howto/curses.html
  686. # https://en.wikipedia.org/wiki/Curses_(programming_library)
  687. # This allows you to shake out the audio to brightness pipeline without having to hang
  688. # your hardware off the pi.
  689. # Launch synchonized_lights.py with the same command line as you normally would, and the
  690. # active terminal will be used to render.
  691. # The curses instance is launched in a way that ensures any runtime errors or tracebacks
  692. # are still dumped on return to the normal command line.
  693. enabled = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement