Nodered as internetradio

Hello everyone, I'm new here and also brand new to the topic of node red. I have a shelly actuator at home which I want to use to turn my radio on and off. Do any of you have any ideas how I can do that? Maybe I can access a radio player with Nodered and then play it over the audio connection of my Raspberry? .. Thank you very much!

You Could access any internet radio station, and play them via the dashboard nodes.

[{"id":"d9bb6b2a.57929","type":"inject","z":"d375568c.144b28","name":"","props":[{"p":"options","v":"[{\"Stop\":\"\"},{\"Studio Brussel\":\"http://icecast.vrtcdn.be/stubru-high\"},{\"MNM Hits\":\"http://icecast.vrtcdn.be/mnm_hits-high\"},{\"Another station\":\"http://icecast.vrtcdn.be/radio1-high\"}]","vt":"json"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","x":180,"y":200,"wires":[["4cc267bc.aef7e"]]},{"id":"4cc267bc.aef7e","type":"ui_dropdown","z":"d375568c.144b28","name":"","label":"Radio","tooltip":"Kies de gewenste radio","place":"Kies een radio","group":"165e1e1a.e752fa","order":4,"width":"0","height":"0","passthru":true,"multiple":false,"options":[],"payload":"","topic":"radio","x":320,"y":200,"wires":[["5e33f1b8.91b2d8"]]},{"id":"5e33f1b8.91b2d8","type":"change","z":"d375568c.144b28","name":"","rules":[{"t":"set","p":"template","pt":"msg","to":"'<!DOCTYPE html>\t<html>\t<body>\t\t<audio autoplay>\t  <source src=\"' & payload & '.mp3\" type=\"audio/mpeg\">\t  <source src=\"' & payload & '.ogg\" type=\"audio/ogg\">\t</audio>\t\t</body>\t</html>'","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":200,"wires":[["f34ba2f2.d18af"]]},{"id":"f34ba2f2.d18af","type":"ui_template","z":"d375568c.144b28","group":"165e1e1a.e752fa","name":"test","order":5,"width":0,"height":0,"format":"","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":false,"templateScope":"local","x":670,"y":200,"wires":[[]]},{"id":"165e1e1a.e752fa","type":"ui_group","name":"Default","tab":"f9b58883.fa613","order":1,"disp":true,"width":"12","collapse":false},{"id":"f9b58883.fa613","type":"ui_tab","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Then got to http://ip_of_node_red:1880/ui/ and select a station. There are 3 examples set in the inject node.

Many Thanks!
And what kind of building blocks do I need so that I can do that? what does this flow look like in the end?
Thank you very much

import the code i supplied it will show all the blocks. the only one you will need to install is the dashboard node.

and do you know what format the player must have .. can i use any radio provider?

for example:
http://stream.srg-ssr.ch/drs3/aacp_96.m3u

http://stream.srg-ssr.ch/drs3/aacp_96.asx

You will have to test the links yourself, the ones you have supplied do not work direct in chrome, so i doubt they would work in dashboard.

where do I get these links from?

from searches or use developer console to find streaming url. https://m.youtube.com/watch?v=N5-eEdbvEaY

thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.