You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# If no Snapcast server was defined explicitly, e.g. on unattended install without having the server installed first, server and client use Avahi to find each other.
2867
+
# The client throws endless errors if Avahi is not running, and endless messages until the server announced itself: https://github.com/badaix/snapcast/issues/647
2868
+
# Hence Avahi-Daemon is added as fixed dependency for the server, and added for the client hereby if no server was explicitly defined. But is this as fallback only for unattended installs.
2869
+
if ! grep -q '^[[:blank:]]*SNAPCLIENT_OPTS=.*["[:blank:]]-h[[:blank:]]' /etc/default/snapclient
2870
+
then
2871
+
G_DIETPI-NOTIFY 2 'Adding Avahi-Daemon as dependency for the Snapcast client to be able to auto-detect a server'
2872
+
aSOFTWARE_INSTALL_STATE[152]=1
2873
+
fi
2874
+
fi
2875
+
2810
2876
if To_Install 152 avahi-daemon # Avahi-Daemon
2811
2877
then
2812
2878
G_AGI avahi-daemon
@@ -11469,80 +11535,6 @@ _EOF_
11469
11535
G_AGI domoticz
11470
11536
fi
11471
11537
11472
-
if To_Install 191 snapserver # Snapcast Server
11473
-
then
11474
-
# RISC-V/Trixie: Install from Debian repo: https://github.com/badaix/snapcast/releases
11475
-
if (( $G_DISTRO > 7 ))
11476
-
then
11477
-
G_AGI snapserver
11478
-
11479
-
# Install and enable snapweb web UI, not included in Debian's snapserver package: https://github.com/MichaIng/DietPi/issues/7073
11480
-
local fallback_url='https://github.com/badaix/snapweb/releases/download/v0.9.0/snapweb_0.9.0-1_all.deb'
if G_WHIP_INPUTBOX "${invalid_entry}Please enter the IPv4 address of your Snapcast server:" && [[ $G_WHIP_RETURNED_VALUE =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]
11521
-
then
11522
-
snapcast_server_ip=$G_WHIP_RETURNED_VALUE
11523
-
break
11524
-
else
11525
-
invalid_entry='[ERROR] Please enter a valid IP address. Please retry...\n\n'
11526
-
fi
11527
-
done
11528
-
11529
-
local snapcast_server_port=1704
11530
-
invalid_entry=
11531
-
while :
11532
-
do
11533
-
G_WHIP_DEFAULT_ITEM=$snapcast_server_port
11534
-
if G_WHIP_INPUTBOX "${invalid_text}Please enter the network port of your Snapcast server (default: 1704):" && disable_error=1 G_CHECK_VALIDINT "$G_WHIP_RETURNED_VALUE" 1
11535
-
then
11536
-
snapcast_server_port=$G_WHIP_RETURNED_VALUE
11537
-
break
11538
-
else
11539
-
invalid_text='[ERROR] Please enter a valid port number. Please retry...\n\n'
0 commit comments