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
# Example configuration for crabbox. Copy this file to `config.toml` and adjust
# paths/pins to match your setup.
# At least one music directory is required. You can repeat [[music]] blocks.
[[]]
= "/path/to/your/music"
[[]]
= "/another/library"
# Global playback settings.
# Optional; defaults to 1.0 (100%).
= 1.0
# Optional; when set, playback state (queue and position) is stored here.
= "/var/lib/crabbox/state.json"
# Server configuration.
[]
# Optional Unix pipe path used for local control (set to null to disable).
= "/tmp/crabbox.pipe"
# Required listening address for the web UI / API.
= "0.0.0.0:8080"
# Optional sounds played on startup/shutdown. Must point to existing files.
= "/path/to/startup.mp3"
= "/path/to/shutdown.mp3"
# Map RFID tag IDs (8 hex chars) to commands. Commands support the same syntax as the pipe/web UI.
[]
= "PLAY"
= "SHUFFLE chill/*"
= "SHUTDOWN"
# Raspberry Pi only (enabled with the `rpi` feature).
[]
# Optional: set any pins you want to enable; leave unset to disable GPIO input entirely.
# play = 17
# Optional debounce for button presses in milliseconds; defaults to 200.
= 200
# Optional GPIO pins for navigation/volume/shutdown buttons.
# next = 27
# prev = 22
# volume_up = 23
# volume_down = 24
# shutdown = 25
# Raspberry Pi only (enabled with the `rpi` feature).
[]
# SPI bus/slave select used by the RC522 reader.
= 0
= 5
# Optional reset pin; omit or set to null if not wired.
= 6