update script, daemon, services, added sound, small improvements

This commit is contained in:
2022-02-08 20:09:26 +01:00
parent 5fdc7d636b
commit c769724146
14 changed files with 671 additions and 433 deletions
+37
View File
@@ -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
View File
@@ -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
}
+1 -1
View File
@@ -13,5 +13,5 @@ level = DEBUG
library_path = /home/pi/luniebox/library
[spotify]
auto_download = False
auto_download = True
zspotify_path =
+2 -3
View File
@@ -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
+5 -3
View File
@@ -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
+2 -2
View File
@@ -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