Skip to content

Instantly share code, notes, and snippets.

View Peter2dronrijp's full-sized avatar

Peter Peter2dronrijp

  • Dronrijp
View GitHub Profile
@Peter2dronrijp
Peter2dronrijp / README.md
Last active September 13, 2023 19:16
Webradio with node-red. Music Player Daemon (MPD)

This is an example of listening to the radio with node-red. This example uses Dutch radio stations. A node-red node to control a mpd server and receive status updates from the server like the current played song. Install the mpd server in your .node-red directory.
npm install node-red-contrib-mpd
Or in the Manage Palette.
A simple LED status indicator is used for the channel indication.
npm install node-red-contrib-ui-led
Node-RED UI LED
First you must make a playlist file. Call it radio.m3u
Copy and paste the list (links) into this file.
http://playerservices.streamtheworld.com/api/livestream-redirect/RADIO10.mp3
http://icecast.omroep.nl/radio1-bb-aac

@Peter2dronrijp
Peter2dronrijp / README.md
Last active June 12, 2020 11:27
Webradio internetradio node red raspberry pi 3

This is a simple example of a web radio. Without using coding. It uses MPD. Music Player Daemon. Configure your mpd.conf file and make a playlist dir.

sudo nano /etc/mpd.conf

playlist_directory "/home/pi/webradio"

sudo mkdir /home/pi/webradio