I am trying to stream a radio station which looks for http referrer: Would like to know how I can add a radio stream URL with http referer on Volumio or the CLI input to get the stream playing with output to my DAC.
The server with IP is looking for a http referrer field starting with “http://www.tamilradios.com”. I would like to know how to get this type of stream playing on Volumio.
Thanks. That stream URL when coupled with the http referer plays from the browser as a public stream, without any userid or password. I am just looking at a way to play it on Volumio.
Yeah, the tamilradios site must pass the authentication credentials to the stream server.
Without those credentials and knowing how to pass them in a URL that works for Volumio I think you’re stuck.
cd ~
https://gist.githubusercontent.com/ashthespy/784394a64601b095724a724694a512d6/raw/0e7f1abb92993178129aae22d659b4affbeb7d28/volumioWebRadioProxy
chmod +x volumioWebRadioProxy
./volumioWebRadioProxy
Then add a webradio using the normal way, but point it to http://localhost:2585/tamilradios
If I were you, I would make this a proper service and launch it via systemd to ensure it’s always up. You could also extend the script to add other radios that require any custom stuff.
@ashthespy, Thanks again for your time with this! Compared to using curl, this is a scalable solution where I have used the same proxy for other radio stations as well (passing parameters to the node.js script). Also it is now running as a service via systemd and usable from within LMS environment too.