Advertisement
Guest User

mopidy_conf_kof

a guest
Jan 18th, 2016
2,338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.00 KB | None | 0 0
  1. #################################
  2. # Pi MusicBox / Mopidy Settings #
  3. #################################
  4. #
  5. # Edit the settings of your MusicBox and the Mopidy music server here
  6. # This is a file read by both the MusicBox startup-scripts and Mopidy.
  7. # For more info on the settings of Mopidy: http://docs.mopidy.com/en/latest/config/
  8. # or the particular extenion's GitHub page
  9. #
  10. # Every line starting with a # is a comment, it does not do anything until you remove the #
  11.  
  12. # --------------------
  13. # | Network Settings |
  14. # --------------------
  15. [network]
  16. # Settings for your WiFi network, if you use a (supported) wifi-dongle
  17. # Only supports WPA security, no WEP or access points without security (dive into the command line for that!)
  18. # wifi_network = ""
  19. # wifi_password = ""
  20.  
  21. # Set the name of the MusicBox.
  22. # In this way you can identify and access different devices on the same network e.g. across different rooms.
  23. # A MusicBox device named kitchen would be accessible from a web browser at http://kitchen.local/, from an MPD
  24. # client at kitchen.local and advertised as kitchen on AirTunes.
  25. # The name is restricted to a maximum of 9 alphanumeric characters (no spaces, dots, etc).
  26. # You can even have different devices with different Spotify accounts when needed.
  27. name = boitason
  28.  
  29. # Mount Windows Network Drive on boot (via samba/cifs)
  30. # The address is exactly how Samba mount works: //servername/mountpoint/directory
  31. # e.g. //192.168.1.5/musicmount or //server.local/shared/music
  32. # if the mount needs a username/password, also set it (leave empty for guest-access)
  33. # Don't forget to let Mopidy/MusicBox scan the contents at first boot (see below)
  34. mount_address = ""
  35. mount_user = ""
  36. mount_password = ""
  37.  
  38. # Here you can change the default workgroup of the Windows network.
  39. # This will set the workgroup to the name you want
  40. workgroup = WORKGROUP
  41.  
  42. # Enable this to allow remote login via SSH on MusicBox
  43. enable_ssh = true
  44.  
  45. # By default, MusicBox waits for the network to come up, since there is not much to do without a network.
  46. # If you want to skip this, e.g. for testing purposes, uncomment this line
  47. wait_for_network = true
  48.  
  49. # -----------
  50. # | Last.fm |
  51. # -----------
  52. # https://github.com/mopidy/mopidy-scrobbler
  53. # Supply your credentials to scrobble tracks to Last.fm
  54. [scrobbler]
  55. enabled = true
  56. username = #########
  57. password = #########
  58.  
  59. # -----------
  60. # | YouTube |
  61. # -----------
  62. # https://github.com/dz0ny/mopidy-youtube
  63. # Play music from Youtube
  64. [youtube]
  65. enabled = true
  66.  
  67. # ----------------
  68. # | TuneIn Radio |
  69. # ----------------
  70. # https://github.com/kingosticks/mopidy-tunein
  71. # Play radio stations from TuneIn
  72. [tunein]
  73. enabled = true
  74.  
  75. # ------------------------
  76. # | The Internet Archive |
  77. # ------------------------
  78. # http://mopidy-internetarchive.readthedocs.org/en/latest/config.html
  79. # Listen to sounds and music from the Internet Archive
  80. [internetarchive]
  81. enabled = true
  82.  
  83. # -----------
  84. # | Soma FM |
  85. # -----------
  86. # https://github.com/AlexandrePTJ/mopidy-somafm
  87. # Play radio stations from Soma FM
  88. [somafm]
  89. enabled = true
  90. encoding = mp3
  91. quality = fast
  92.  
  93. # -----------
  94. # | Podcast |
  95. # -----------
  96. # https://github.com/tkem/mopidy-podcast
  97. # Play podcasts from different sources
  98. [podcast]
  99. # Note: You cannot add settings for [podcast-itunes] or [podcast-gpodder]
  100. # because it breaks the startup script (won't read dashes in section names
  101. enabled = false
  102. feeds = ""
  103.  
  104. # ---------------------
  105. # | MusicBox Settings |
  106. # ---------------------
  107. [musicbox]
  108. # To secure your device, change the default password to something else.
  109. # For security, the value in this file will be automatically cleaned out when the password is set in MusicBox
  110. root_password = ""
  111.  
  112. # Automatically resize the filesystem and use all available space on your SD card.
  113. # Use at your own risk, you could lose data on your card.
  114. # (If so, you can put the original MusicBox image on it again and start over)
  115. resize_once = false
  116.  
  117. # Scan on startup for new music files on the SD card or the network shares (could take a while!).
  118. # Local files work ok for moderate size collections. Large music database sizes could cause problems.
  119. # IMPORTANT: if you enable scan_always this will scan on every boot.
  120. # If your music doesn't change or you only stream music set scan_once instead.
  121. #scan_once = true
  122. scan_always = true
  123.  
  124. # MusicBox can automatically start playing a stream/song after startup.
  125. # It will wait a number of seconds before trying to do so for the system to first become ready.
  126. # The wait required varies per device, network and configuration so if it doesn't work then increase the time.
  127. # e.g. autoplay = http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3 or local:track:MusicBox/Music%20File.mp3 (on the SD Card)
  128. autoplay = ""
  129. autoplaywait = 60
  130.  
  131. # -------------
  132. # | Streaming |
  133. # -------------
  134. # Set these options to enable streaming to Pi MusicBox
  135. # AirTunes (using Shairport-sync):
  136. enable_shairport = true
  137.  
  138. # DLNA/uPnP/OpenHome (using upmpdcli):
  139. enable_upnp = true
  140.  
  141. # ------------------
  142. # | Audio Settings |
  143. # ------------------
  144. # Because of limitations with some USB-DACs, MusicBox downsamples USB sound to 44k by default. Set to false to disable.
  145. downsample_usb = true
  146.  
  147. # Set default audio output. This overrides the automatic detection (which sets to usb audio if an usb audio device
  148. # is found, else to hdmi (if hdmi is connected at boot), and otherwise just to the analog out).
  149. # i2s cards (e.g. HifiBerry etc) are not detected automatically and must be explicitly set here.
  150. # Options: analog, hdmi, usb, hifiberry_dac, hifiberry_digi, hifiberry_dacplus, hifiberry_amp, iqaudio_dac
  151. output = ""
  152.  
  153. [audio]
  154. # Set the startup volume of MusicBox
  155. # Values: from 0 to 100
  156. mixer_volume = 85
  157.  
  158. # --------------------------------------------------------------------------
  159. # | OTHER Settings |
  160. # | You probably don't want to edit the settings below this line. Really. |
  161. # | Unless you know what you're doing, or you want to change the webclient |
  162. # --------------------------------------------------------------------------
  163. # This sets the gstreamer buffer. It's a bit tricky...
  164. # If you have problems with stuttering sound, try other values here, like:
  165. # or
  166. #output = alsasink buffer-time=300000 latency-time=20000
  167. #output = alsasink buffer-time=200000 latency-time=10000
  168. output = alsasink
  169.  
  170. mixer = software
  171.  
  172. # Optionally, you can use alsamixer. This enables you to use hardware mixers of usb/audiocards.
  173. # Set the previous setting to:
  174. #mixer = alsamixer
  175. # And set the card and contol below. E.g.
  176. #card = 1
  177. #control = Master
  178. # Run the command 'amixer scontrols' from the commandline to list available controls on your system
  179. # See https://github.com/mopidy/mopidy-alsamixer
  180.  
  181. # ---------------
  182. # | Alsamixer |
  183. # ---------------
  184.  
  185. #[alsamixer]
  186. #card =
  187. #control =
  188.  
  189. [stream]
  190. enabled = true
  191.  
  192. [http]
  193. enabled = true
  194. hostname = ::
  195. port = 6680
  196. #Disable zeroconf
  197. zeroconf = $hostname
  198.  
  199. # -------------
  200. # | Webclient |
  201. # -------------
  202. # Here you can change the default webclient
  203. # options: /opt/webclient /opt/moped
  204. #static_dir = /opt/webclient
  205.  
  206. [musicbox_webclient]
  207. enabled = true
  208.  
  209. [websettings]
  210. enabled = true
  211. musicbox = true
  212. config_file = /boot/config/settings.ini
  213.  
  214. [mpd]
  215. enabled = true
  216. hostname = 0.0.0.0
  217. port = 6600
  218.  
  219. [logging]
  220. config_file = /etc/mopidy/logging.conf
  221. debug_file = /var/log/mopidy/mopidy.log
  222.  
  223. [local-sqlite]
  224. enabled = true
  225. # top-level directories for browsing, as <name> <uri>
  226. directories = ""
  227. Albums local:directory?type = album
  228. Artists local:directory?type = artist&role=albumartist
  229. Composers local:directory?type = artist&role=composer
  230. Genres local:directory?type = genre
  231. Performers local:directory?type = artist&role=performer
  232. Release Years local:directory?type = date&format=%25Y
  233. Tracks local:directory?type = track
  234. Last Week's Updates local:directory?max-age = 604800
  235. Last Month's Updates local:directory?max-age = 2592000
  236.  
  237. [local]
  238. enabled = true
  239. media_dir = /music/MusicBox
  240. playlists_dir = /music/MusicBox/Playlists
  241. data_dir = /var/lib/mopidy/localdata
  242. #This sets the method of indexing local files
  243. library = sqlite
  244. scan_timeout = 2000
  245. scan_flush_threshold = 100
  246. excluded_file_extensions = .html, .jpeg, .jpg, .log, .nfo, .png, .txt, .mkv, .avi, .divx, .qt, .wmv, .htm, .zip, .rar, .gz, .pdf, .exe, .ini, .mid, .db, .m3u, .sfv, .midi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement