Quantcast
Viewing all articles
Browse latest Browse all 4581

General discussion • installing Bragi-Mpd

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 in

Code:

root@raspberrypi:/var/lib/Bragi-MPD-master# websockify ./run 8800 localhost:6600
and received this error

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
Then I tried

Code:

root@raspberrypi:/var/lib/Bragi-MPD-master#  python -m SimpleHTTPServer
and received

Code:

/usr/bin/python: No module named SimpleHTTPServer
Then I tried

Code:

./start_bragi
and got this error

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
This is the code in Start_bragi

Code:

   #!/bin/shwebsockify --daemon --heartbeat=20 --auto-pong --web=. 0.0.0.0:8800 localhost:6600
I 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

Statistics: Posted by s-petersen — Tue Feb 25, 2025 8:04 pm — Replies 2 — Views 50



Viewing all articles
Browse latest Browse all 4581

Trending Articles