update script, daemon, services, added sound, small improvements
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
pcm.speakerbonnet {
|
||||
type hw card 0
|
||||
}
|
||||
|
||||
pcm.dmixer {
|
||||
type dmix
|
||||
ipc_key 1024
|
||||
ipc_perm 0666
|
||||
slave {
|
||||
pcm "speakerbonnet"
|
||||
period_time 0
|
||||
period_size 1024
|
||||
buffer_size 8192
|
||||
rate 44100
|
||||
channels 2
|
||||
}
|
||||
}
|
||||
|
||||
ctl.dmixer {
|
||||
type hw card 0
|
||||
}
|
||||
|
||||
pcm.softvol {
|
||||
type softvol
|
||||
slave.pcm "dmixer"
|
||||
control.name "PCM"
|
||||
control.card 0
|
||||
}
|
||||
|
||||
ctl.softvol {
|
||||
type hw card 0
|
||||
}
|
||||
|
||||
pcm.!default {
|
||||
type plug
|
||||
slave.pcm "softvol"
|
||||
}
|
||||
+19
-31
@@ -1,38 +1,26 @@
|
||||
|
||||
pcm.speakerbonnet {
|
||||
type hw card 0
|
||||
type hw card 0
|
||||
}
|
||||
|
||||
pcm.dmixer {
|
||||
type dmix
|
||||
ipc_key 1024
|
||||
ipc_perm 0666
|
||||
slave {
|
||||
pcm "speakerbonnet"
|
||||
period_time 0
|
||||
period_size 1024
|
||||
buffer_size 8192
|
||||
rate 44100
|
||||
channels 2
|
||||
}
|
||||
pcm.!default {
|
||||
type plug
|
||||
slave.pcm "dmixer"
|
||||
}
|
||||
|
||||
ctl.dmixer {
|
||||
type hw card 0
|
||||
pcm.dmixer {
|
||||
type dmix
|
||||
ipc_key 1024
|
||||
ipc_perm 0666
|
||||
slave {
|
||||
pcm "speakerbonnet"
|
||||
period_time 0
|
||||
period_size 1024
|
||||
buffer_size 8192
|
||||
rate 44100
|
||||
channels 2
|
||||
}
|
||||
}
|
||||
|
||||
pcm.softvol {
|
||||
type softvol
|
||||
slave.pcm "dmixer"
|
||||
control.name "PCM"
|
||||
control.card 0
|
||||
}
|
||||
|
||||
ctl.softvol {
|
||||
type hw card 0
|
||||
}
|
||||
|
||||
pcm.!default {
|
||||
type plug
|
||||
slave.pcm "softvol"
|
||||
}
|
||||
ctl.dmixer {
|
||||
type hw card 0
|
||||
}
|
||||
@@ -13,5 +13,5 @@ level = DEBUG
|
||||
library_path = /home/pi/luniebox/library
|
||||
|
||||
[spotify]
|
||||
auto_download = False
|
||||
auto_download = True
|
||||
zspotify_path =
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
Description=Luniebox Application
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/pi/luniebox/application
|
||||
ExecStart=/home/pi/luniebox/application/venv/bin/gunicorn -b 0.0.0.0:80 app:app
|
||||
Restart=always
|
||||
RestartSec=12
|
||||
Restart=on-failure
|
||||
RestartSec=15
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -2,11 +2,13 @@
|
||||
Description=Luniebox Daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=pi
|
||||
Group=pi
|
||||
WorkingDirectory=/home/pi/luniebox/application
|
||||
ExecStart=/home/pi/luniebox/application/venv/bin/python daemon.py
|
||||
Restart=always
|
||||
RestartSec=12
|
||||
Restart=on-failure
|
||||
RestartSec=15
|
||||
#FailureAction=/home/pi/luniebox/application/venv/bin/python daemon-failure.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -9,8 +9,8 @@ After=network-online.target
|
||||
User=pi
|
||||
Group=pi
|
||||
ExecStart=/home/pi/luniebox/bin/spotifyd --config-path /home/pi/luniebox/config/spotifyd.cfg --no-daemon
|
||||
Restart=always
|
||||
RestartSec=12
|
||||
Restart=on-failure
|
||||
RestartSec=15
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user