I'm trying to use Bragi-Mpd to run my jukebox, but I follow the directions, and I get errors, I had trouble getting MPD going, but that is working now.(tested with Sonata)
I used these instructions from the Git:
You must have a working installation of MPD for many Linux distributions this is little more than 'apt-get install mpd'.
Once you have MPD working you will need to spin up an instance of Websockify. Once you have Websockify downloaded and you have navigated to it's directory and assuming you use the standard port for MPD, you can start up an instance of it that should allow you to get started with MPD.js with the following command:
./run 8800 localhost:6600
The version of all client side dependencies Bragi-MPD was built with are included in the repo. You simply have to clone the repo or download a zipped copy and extract into the webroot of a webserver. Apache or lighttpd would be good choices for this. If you don't feel like setting up a full webserver on Linux environments and just want to quickly test it out you can serve the files using this command from the root of the repo folder.
python -m SimpleHTTPServer
After that you should be able to start playing your music by navigating to your server in a web browser.
I typed inand received this errorThen I triedand receivedThen I triedand got this errorThis is the code in Start_bragiI eventually want to use web server with it, but for now, local would be enough to test and configure it. If mpd.conf would be helpful, I can post that also
I used these instructions from the Git:
You must have a working installation of MPD for many Linux distributions this is little more than 'apt-get install mpd'.
Once you have MPD working you will need to spin up an instance of Websockify. Once you have Websockify downloaded and you have navigated to it's directory and assuming you use the standard port for MPD, you can start up an instance of it that should allow you to get started with MPD.js with the following command:
./run 8800 localhost:6600
The version of all client side dependencies Bragi-MPD was built with are included in the repo. You simply have to clone the repo or download a zipped copy and extract into the webroot of a webserver. Apache or lighttpd would be good choices for this. If you don't feel like setting up a full webserver on Linux environments and just want to quickly test it out you can serve the files using this command from the root of the repo folder.
python -m SimpleHTTPServer
After that you should be able to start playing your music by navigating to your server in a web browser.
I typed in
Code:
root@raspberrypi:/var/lib/Bragi-MPD-master# websockify ./run 8800 localhost:6600
Code:
Usage: websockify [options] [source_addr:]source_port [target_addr:target_port] websockify [options] [source_addr:]source_port -- WRAP_COMMAND_LINEwebsockify: error: Error parsing listen port
Code:
root@raspberrypi:/var/lib/Bragi-MPD-master# python -m SimpleHTTPServer
Code:
/usr/bin/python: No module named SimpleHTTPServer
Code:
./start_bragi
Code:
Usage: websockify [options] [source_addr:]source_port [target_addr:target_port] websockify [options] [source_addr:]source_port -- WRAP_COMMAND_LINE websockify: error: no such option: --auto-pong
Code:
#!/bin/shwebsockify --daemon --heartbeat=20 --auto-pong --web=. 0.0.0.0:8800 localhost:6600
Statistics: Posted by s-petersen — Tue Feb 25, 2025 8:04 pm — Replies 2 — Views 50