forked from MiczFlor/RPi-Jukebox-RFID
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjukebox.default.yaml
159 lines (159 loc) · 5.85 KB
/
jukebox.default.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# IMPORTANT:
# Always use relative path from folder `src/jukebox` (`../../`), but do not use relative paths with `~/`.
# Sole (!) exception is in playermpd.mpd_conf
system:
box_name: Jukebox
modules:
named:
# Do not change the order!
publishing: publishing
volume: volume
jingle: jingle
jingle.alsawave: jingle.alsawave
jingle.jinglemp3: jingle.jinglemp3
player: playermpd
cards: rfid.cards
rfid: rfid.reader
timers: timers
host: hostif.linux
bluetooth_audio_buttons: controls.bluetooth_audio_buttons
gpio: gpio.gpioz.plugin
sync_rfidcards: synchronisation.rfidcards
others:
- misc
pulse:
# Reset system volume to this level after start. (Comment out disables and volume is not changed)
startup_volume: 40
# Automatically toggle output between primary and secondary audio output
# when a device connects (Note: So far, toggle happens when ANY device connects)
toggle_on_connect: true
# Limit maximum volume range to XX % - can be changed through the UI (for temporary use)
soft_max_volume: 70
# Run the audio configuration tool to configure the pulseaudio sinks
#
# After startup, the audio output defaults to primary
# Any Bluetooth device should be the secondary (as it may not always be available directly after boot)
#
# For manual setting of pulseaudio sinks use:
# $ pactl list sinks short
#
# Test sinks with
# $ paplay -D sink_name /usr/share/sounds/alsa/Front_Center.wav
#
# Parameters:
# - alias : user defined alias for better readability
# - volume_limit: a hard volume limit representing the new 100 %
# i.e. the user input range 0...100 % will be scaled into this range
# this can be used to attenuate the maximum volume levels between different outputs
# i.e. make both channels equally load out 100 % and make sure it never gets too loud
outputs:
primary:
alias: Built-in speakers
volume_limit: 100
soft_max_volume: 100
# Leave pulse_sink_name empty for first start-up (will be filled with systems default sink)
# pulse_sink_name: alsa_output.pci-0000_00_1f.3.analog-stereo
secondary:
alias: Bluetooth headset
volume_limit: 100
soft_max_volume: 100
# Leave pulse_sink_name unfilled to disable secondary output
# pulse_sink_name: bluez_sink.C4_FB_20_63_CO_FE.a2dp_sink
jingle:
# Supported file formats as jingles: *.wav and *.mp3. Note that *.wav is faster!
startup_sound: ../../resources/audio/startupsound.wav
# startup_sound: ../../resources/audio/startupsound.mp3
# Shutdown sound is not played on Ctrl-C (to reduce developer's stain)
shutdown_sound: ../../resources/audio/shutdownsound.wav
# Use file ending to choose player from available jingle services
service: auto
# The playback volume of the jingles. (Comment out means use current system volume)
volume: 30
jinglemp3:
# Config of the MP3 Jingle Service
# These parameters are passed to the mpeg123 player (e.g. [-d 2])
call_parameters: []
alsawave:
# Config of the Wave through ALSA Jingle Service
device: default
playermpd:
host: localhost
status_file: ../../shared/settings/music_player_status.json
second_swipe_action:
# Note: Does not follow the RPC alias convention (yet)
# Must be one of: 'toggle', 'play', 'skip', 'rewind', 'replay', 'none'
alias: toggle
library:
update_on_startup: true
check_user_rights: true
mpd_conf: ~/.config/mpd/mpd.conf
# Must be one of: 'none', 'stop', 'rewind':
end_of_playlist_next_action: none
# Must be one of: 'none', 'prev', 'rewind':
stopped_prev_action: prev
# Must be one of: 'none', 'next', 'rewind':
stopped_next_action: next
rpc:
tcp_port: 5555
websocket_port: 5556
publishing:
# Ports for the publisher. Setting a port number to 0 disables the port
# The WebUI requires the websocket connection
tcp_port: 5558
websocket_port: 5557
rfid:
reader_config: ../../shared/settings/rfid.yaml
card_database: ../../shared/settings/cards.yaml
gpioz:
enable: false
config_file: ../../shared/settings/gpio.yaml
timers:
# These timers are always disabled after start
# The following values only give the default values.
# These can be changed when enabling the respective timer on a case-by-case basis w/o saving
shutdown:
default_timeout_sec: 3600
stop_player:
default_timeout_sec: 3600
volume_fade_out:
default_time_per_iteration_sec: 900
number_of_steps: 10
host:
# Do not actually execute system shutdown and reboot commands
debug_mode: false
# Whether to publish the host's temperature regularly
publish_temperature:
enabled: true
timer_interval_sec: 10
# Should we disable the power management of the WLAN to ensure reachability via WLAN?
wlan_power:
disable_power_down: false
# Specify the wlan interface. Get a list from $iwconfig. 'wlan0' is default on RPis
card: wlan0
# RPi-specific stuff. Will be silently ignored if not on an RPi
rpi:
hdmi_power_down: false
bluetooth_audio_buttons:
# When a bluetooth sound device (headphone, speakers) connects
# attempt to automatically listen to it's buttons (play, next, ...)
# Note that volume up/down is handled independently from this by the bluetooth audio protocol
enable: true
# Espeak is the current speech synthesizer
speaking_text:
# All languages available here: http://espeak.sourceforge.net/languages.html
lang: en
# Must be one of: normal, fast, slow
speed: normal
# Whether you want to read punctuation or not
speak_punct: False
# Must be one of: female, male, croak, whisper
voice: female
sync_rfidcards:
enable: false
config_file: ../../shared/settings/sync_rfidcards.yaml
webapp:
coverart_cache_path: ../../src/webapp/build/cover-cache
# Load cover arts in Webapp. Change to false in case you have performance issue
# when handling a lot of music
# Defaults to true
show_covers: true