Similar to Jukeboxes in the 90s, allow users to create a shared playlist of songs from YouTube to be played in a Raspberry Pi using VLC
This project has been tested on the following Raspberry Pi Boards:
- Raspberry Pi Zero W 1.1
-
Flask
-
Pexpect
-
Requests
-
Lxml
-
BeautifulSoup
sudo apt install python3-lxml
pip3 install flask beautifulsoup4 pexpect requests
- VLC with the latest youtube.lua from their repository
sudo rm /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/youtube.luac
curl -LJO https://raw.github.com/videolan/vlc/master/share/lua/playlist/youtube.lua
sudo cp youtube.lua /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/youtube.luac
sudo chmod 644 /usr/lib/arm-linux-gnueabihf/vlc/lua/playlist/youtube.luac
The project is executed with:
python3 jukebox.py
In the project folder
- Expose the raspberry pi pulseaudio socket to the docker container in
/home/jukebox/pulse/socket
docker run -p 8080:8080 -v /run/user/$UID/pulse/native:/home/jukebox/pulse/socket -d luisprgr/jukyout:latest
You can create a docker-compose.yml like the following example:
version: "3.3"
services:
jukyout:
image: luisprgr/jukyout
container_name: jukyout
volumes:
- /run/user/$UID/pulse/native:/home/jukebox/pulse/socket
ports:
- 8080:8080
Licensed under the GPL-3.0 License