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.
- Host: GitHub
- URL: https://github.com/nepodev/mpd.webradio
- Owner: nepodev
- License: mit
- Created: 2018-03-21T18:42:29.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T16:14:58.000Z (over 3 years ago)
- Last Synced: 2023-03-01T12:32:05.241Z (over 3 years ago)
- Topics: html5, javascript, mpd-client, nodejs, phonon, riot, riotjs, webradio, websocket
- Language: JavaScript
- Homepage:
- Size: 4.12 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MPD.Webradio
MPD.Webradio is a simple Webservice that makes it easy to listen Webradio via MPD.



* 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"
}
}
```