10-28-2022, 02:29 PM
For a Bluetooth connection the currentsong file won't be updated until bluez-alsa starts playing something. I suppose I should look at also updating the file initially when Bluetooth connects.
Another way to tell if one of the renderers is active is to query the active flags.
rbactive
aplactive
btactive
slactive
spotactive
inpactive
rxactive
# Dump the session var
sudo moodeutl -d | grep btactive | cut -d "|" -f 2
# Query the table
moodeutl -q "select value from cfg_system where param='btactive'"
Another way to tell if one of the renderers is active is to query the active flags.
rbactive
aplactive
btactive
slactive
spotactive
inpactive
rxactive
# Dump the session var
sudo moodeutl -d | grep btactive | cut -d "|" -f 2
# Query the table
moodeutl -q "select value from cfg_system where param='btactive'"