Nice web interface for MPD server

sezione dedicata ai sistemi operativi alternativi Open Source

Nice web interface for MPD server

Messaggio da leggereda root » 14/07/2016, 14:34


Project page:

NOTE: this interface needs Chrome browser to be correctly displayed.
The advantage of this web interface is that you don't need to install anything from the client side and it works on any system: Windows, Mac, Linux, Android, Iphone ;)

*** Instructions how to install it on OpenWRT

1) Install packages for PHP support

opkg update
opkg install php5 php5-cgi

2) Configure uhttpd web server for PHP

edit file "/etc/config/uhttpd" (add two lines to enable PHP):

config uhttpd 'main'
list listen_http ''
list listen_http '[::]:80'
list listen_https ''
list listen_https '[::]:443'
option home '/www'
option rfc1918_filter '1'
option max_requests '3'
option max_connections '100'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
option script_timeout '60'
option network_timeout '30'
option http_keepalive '20'
option tcp_keepalive '1'
option ubus_prefix '/ubus'
option config '/etc/httpd.conf'
option interpreter '.php=/usr/bin/php-cgi'
option index_page 'index.php index.html'

config cert 'px5g'
option days '730'
option bits '1024'
option country 'DE'
option state 'Berlin'
option location 'Berlin'
option commonname 'OpenWrt'

3) create working directory:

mkdir /www/music

4) download and copy files:

extract all the files you'll find inside of the directory "MPD-Web-Remote-master" (on the zip) and copy them to the directory "/www/music" of your router

Note: do not copy the "MPD-Web-Remote-master" directly to /www/music, just copy all files from inside this directory to /www/music.

5) restart system
restart your router

6) adding radio stations

To add internet radio stations use the following command:

mpc add (sreaming-url)

example: mpc add

Now you can access the web interface from http://ip-of-your-router/music

Obviously you need to have mpd and mpc installed and active ;)
Avatar utente
Messaggi: 450
Iscritto il: 10/04/2012, 10:55
Località: Turin

Torna a OpenWRT

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite