A (kind of scuffed) web player for bluetooth speakers to be used with MPD and CYP running through docker-compose
.
On the left you can see the bluetooth connectivity panel (with the MAC redacted), on the right you can see CYP.
See the confs
folder for the configurations you will need to set this up.
sudo apt update && sudo apt upgrade
(optionally reboot now, if the raspberry is new, avoids the reboot at step 8)sudo apt install bluealsa
sudo systemctl start bluealsa
sudo apt install mpd mpc
cp confs/mpd.conf /etc/mpd.conf
systemctl restart mpd
mpc update
mpd add <something from /home/pi/music>
- if you run into a problem while installing docker, do a
sudo reboot
- install web server and PHP -
sudo apt-get install nginx php-fpm
ln -s ./nginx/default /etc/ngingx/sites-available/default
- if you are getting lecture about admin on sudo in
index.php
:/etc/sudoers.d
- create a new file or copy the pi's file and put in this:www-data ALL=(ALL) NOPASSWD: ALL
- remove the default nginx index from
/var/www/html
, then do aln -s ./html /var/www/html
to host our site, changeindex.php
include frame to the IP of raspberry (instead of the192.168.0.128
) - create a
.mac
file in the root (next to thisREADME.md
) with the MAC adress of the bluetooth speaker