-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsettings.example.py
More file actions
42 lines (34 loc) · 835 Bytes
/
Copy pathsettings.example.py
File metadata and controls
42 lines (34 loc) · 835 Bytes
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
"""
Software settings
"""
STATIONSPLAYLIST = "/var/lib/mpd/playlists/radio.m3u"
EMULATED = False
API_PORT = 8000
API_PATH_PREFIX = "/radio"
SHUTDOWN_COMMAND = "/sbin/poweroff"
#Shairport-Sync metadata FIFO
SHAIRPORT_METADATA_PIPE = "/tmp/shairport-sync-metadata"
#Pins for rotary encoder
PIN_CLK = 17
PIN_DT = 18
PIN_SW = 27
#ADS1115 I2C for potentiometer
ADS_I2C = 0x48
#Alsa output for volume control
ALSA_CARD = "default"
ALSA_MIXER = "PCM"
ALSA_VOL_MIN = 1
ALSA_VOL_MAX = 100
#Settings for the connection to Mopidy
MPD_IP = "localhost"
MPD_PORT = 6600
#MQTT broker connection
MQTT_BROKER = "mqtt.local"
MQTT_PORT = 1883
MQTT_TOPIC = "webradio"
MQTT_USER = "webradio"
MQTT_PASSWORD = "secretpassword"
#Font files (TrueType)
FONT_ICONS = "fonts/fontawesome.otf"
FONT_TEXT = "fonts/arial.ttf"
FONT_CLOCK = "fonts/calibri.ttf"