Skip to content

A barebones Raspberry Pi web player for bluetooth speakers. Can connect and disconnect, uses CYP for play control.

Notifications You must be signed in to change notification settings

hojdars/pi-webplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Bluetooth Web Player

A (kind of scuffed) web player for bluetooth speakers to be used with MPD and CYP running through docker-compose.

image

On the left you can see the bluetooth connectivity panel (with the MAC redacted), on the right you can see CYP.

Configuration

See the confs folder for the configurations you will need to set this up.

  1. sudo apt update && sudo apt upgrade (optionally reboot now, if the raspberry is new, avoids the reboot at step 8)
  2. sudo apt install bluealsa
  3. sudo systemctl start bluealsa
  4. sudo apt install mpd mpc
  5. cp confs/mpd.conf /etc/mpd.conf
  6. systemctl restart mpd
  7. mpc update
  8. mpd add <something from /home/pi/music>
  9. if you run into a problem while installing docker, do a sudo reboot
  10. install web server and PHP - sudo apt-get install nginx php-fpm
  11. ln -s ./nginx/default /etc/ngingx/sites-available/default
  12. 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
  13. remove the default nginx index from /var/www/html, then do a ln -s ./html /var/www/html to host our site, change index.php include frame to the IP of raspberry (instead of the 192.168.0.128)
  14. create a .mac file in the root (next to this README.md) with the MAC adress of the bluetooth speaker

About

A barebones Raspberry Pi web player for bluetooth speakers. Can connect and disconnect, uses CYP for play control.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages