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
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