An open API service indexing awesome lists of open source software.

https://github.com/nepodev/mpd.webradio

Webservice to listen Webradio via MPD.
https://github.com/nepodev/mpd.webradio

html5 javascript mpd-client nodejs phonon riot riotjs webradio websocket

Last synced: 5 months ago
JSON representation

Webservice to listen Webradio via MPD.

Awesome Lists containing this project

README

          

# MPD.Webradio

MPD.Webradio is a simple Webservice that makes it easy to listen Webradio via MPD.

![Liste](img/01_list.png "Liste")
![Liste](img/02_info.png "Station info")
![Liste](img/03_sidepanel.png "Menu")

* Search Stations
* Get Stations by Genres, Topics, Countries or Language.
* Recent Stations
* Mark your Favorite Stations
* Responsive Website made with [Phonon Framework](http://phonon.quarkdev.com/)

## Requirements

* [MPD](https://www.musicpd.org/)
* [Nodejs](https://nodejs.org/en/)

## Installation simple

```console
git clone https://github.com/nepodev/mpd.webradio.git
cd mpd.webradio
npm install --production
npm start
```

Point your Browser to IP of your Pi and Port `4711`.
i. e.: `http://192.168.1.5:4711`

## Installation as Service

```console
# Create a new User mpd-wr
useradd -rU -s /bin/false mpd-wr

# Install the project under /opt
cd /opt
git clone https://github.com/nepodev/mpd.webradio.git

# Install Nodejs dependencies
cd /opt/mpd.webradio
npm install --production

# Grand access for mpd-wr to subdirectory var
chown mpd-wr:mpd-wr /opt/mpd.webradio/var/

# Create Systemd service
cp /opt/mpd.webradio/systemd/mpd.webradio.service /etc/systemd/system/
systemctl enable mpd.webradio
systemctl start mpd.webradio

```

Check service is running

```console
root@pi:~# systemctl status mpd.webradio
● mpd.webradio.service - MPD.Webradio
Loaded: loaded (/etc/systemd/system/mpd.webradio.service; enabled)
Active: active (running) since Sun 2018-03-18 16:51:36 CET; 2h 58min ago
Main PID: 8769 (node)
CGroup: /system.slice/mpd.webradio.service
└─8769 /usr/bin/node /opt/mpd.webradio/index.js
```

Point your Browser to IP of your Pi and Port `4711`.
i. e.: `http://192.168.1.5:4711`

## Configurtion

For customizing create a `config.json` at `/opt/mpd-webradio/var`.

* `server` Interface and Port to serve the Website.
* `mpd` Host and Port used by MPD Server
* `radionet` radio.net API-Server. Values for "language" are english, french, austrian or german.
* `public` Customize Webpagelist.
* * `public.mainpage` List on Startpage. Values are local, top, recent or favorite.

```json
{
"server": {
"host": "0.0.0.0",
"port": 4711
},
"mpd": {
"host": "localhost",
"port": 6600
},
"radionet": {
"language": "german"
},
"public": {
"mainpage": "local"
}
}
```