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

Immagine

Project page: https://github.com/tompreston/MPD-Web-Remote


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 '0.0.0.0:80'
list listen_http '[::]:80'
list listen_https '0.0.0.0:443'
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:

https://github.com/tompreston/MPD-Web-Remote/archive/master.zip

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 http://144.76.106.52:7000/chillout.mp3

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

Obviously you need to have mpd and mpc installed and active ;)
Maurizio
Avatar utente
root
Amministratore
 
Messaggi: 349
Iscritto il: 10/04/2012, 10:55
Località: Ovada

Torna a OpenWRT e sistemi operativi vari

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite