OK, my notes on this are:
Code:
--------------------
Bluetooth
Installed into https://github.com/CDrummond/lms-btspeaker
/usr/local/bluetooth
Deps:
sudo apt install python3-evdev
BlueAlsa
Not official part of bullseye :(
See: https://sigmdel.ca/michel/ha/rpi/bluetooth_in_rpios_02_en.html#bluealsa3
#
# For 32-bit:
#echo "deb http://archive.raspbian.org/raspbian/ bookworm main" | sudo tee
/etc/apt/sources.list.d/armbian.list
#printf 'Package: *\nPin: release n=bookworm\nPin-Priority: 100\n' | sudo tee
--append /etc/apt/preferences.d/limit-bookworm
#wget https://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key
add -
#sudo apt update
#sudo apt install bluez-alsa-utils
#
# For 64-bit:
wget
http://ftp.de.debian.org/debian/pool/main/b/bluez-alsa/bluez-alsa-utils_3.0.0-2_arm64.deb
wget
http://ftp.de.debian.org/debian/pool/main/b/bluez/libbluetooth3_5.64-2_arm64.deb
wget
http://ftp.de.debian.org/debian/pool/main/libl/libldac/libldacbt-abr2_2.0.2.3+git20200429+ed310a0-4_arm64.deb
wget
http://ftp.de.debian.org/debian/pool/main/libl/libldac/libldacbt-enc2_2.0.2.3+git20200429+ed310a0-4_arm64.deb
wget
http://ftp.de.debian.org/debian/pool/main/b/bluez-alsa/libasound2-plugin-bluez_3.0.0-2_arm64.deb
sudo apt install libsbc1
sudo dpkg -i *.deb
sudo groupadd bluealsa
sudo usermod -a -G bluealsa pi
sudo usermod -a -G bluealsa lms
-- groups did not work. lms user cannot play???
Edit /lib/systemd/system/bluez-alsa.service and uncomment "Group=bluealsa"
line
sudo systemctl daemon-reload
sudo systemctl restart bluez-alsa
Squeezelite:
sudo apt install squeezelite
sudo systemctl stop squeezelite
sudo systemctl disable squeezelite
Pair BT devices
sudo bluetoothctl
[bluetooth]# scan on
...
[bluetooth]# scan off
[bluetooth]# pair 00:00:00:00:00:00
[bluetooth]# trust 00:00:00:00:00:00
[bluetooth]# connect 00:00:00:00:00:00
[bluetooth]# exit
Systemd:
sudo btspeaker-monitor.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable btspeaker-monitor
sudo systemctl restart btspeaker-monitor
--------------------
*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=116913
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss