Hello All.
My Marantz-Cinema-70 uses InTune to stream web radio stations but unfortunately one of the stations we listen to is no longer streaming via this service. Raspberry PI (RPI) has Node-RED running and there is a flow controlling some Marantz functions directly from dashboard. I had in mind to use RPI as music server with some basic functionalities. Node-RED forum post URL in msg.payload to play audio, UI Template deals with a Web Audio flow. After some digging, flow was adapted to stream requested radio stations and results are the same as InTune or MyTuner. There is no publicity nor soliciting to upgrade to premium version!
When station is changed directly from RPI Node-RED server or via RealVNC connection it works like a charm. However, when using Safari from either iPhone or iPad to connect to RPI Node-RED Server, nothing happens in RPI. I realized that sound streams in client devices. Here is copy of used flow.
Does someone have some tips to force template widget to issue call only in server device and not in clients.
Node-RED V 4.0.2
Node JS V 20.15.1
Thanks in advance
Quike
[
{
"id": "781005ba.a02be4",
"type": "inject",
"z": "2f52681b.fb4b08",
"name": "",
"props": [
{
"p": "options",
"v": "[{\"Stop\":\"\"},{\"N-Joy\":\"https://cdn.bweb.bg/radio/njoy\"},{\"CBC\":\"https://playerservices.streamtheworld.com/api/livestream-redirect/CBLAFM_CBC\"},{\"RNE 1\":\"https://dispatcher.rndfnk.com/crtve/rne1/main/mp3/high\"},{\"Los Cuarenta\":\"https://playerservices.streamtheworld.com/api/livestream-redirect/LOS40\"},{\"RMC\":\"https://audio.bfmtv.com/rmcradio_128\"},{\"Europe 1\":\"http://stream.europe1.fr/europe1\"},{\"Studio Brussel\":\"http://icecast.vrtcdn.be/stubru-high\"},{\"MNM Hits\":\"http://icecast.vrtcdn.be/mnm_hits-high\"},{\"Radio 1\":\"http://icecast.vrtcdn.be/radio1-high\"}]",
"vt": "json"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"x": 130,
"y": 1300,
"wires": [
[
"7e15de16.d3b868"
]
]
},
{
"id": "7e15de16.d3b868",
"type": "ui_dropdown",
"z": "2f52681b.fb4b08",
"name": "",
"label": "Radio",
"tooltip": "Choose your station",
"place": "Web Radio",
"group": "165e1e1a.e752fa",
"order": 4,
"width": "0",
"height": "0",
"passthru": true,
"multiple": false,
"options": [],
"payload": "",
"topic": "radio",
"topicType": "str",
"className": "",
"x": 270,
"y": 1300,
"wires": [
[
"31724f4f.8bc6a8"
]
]
},
{
"id": "31724f4f.8bc6a8",
"type": "change",
"z": "2f52681b.fb4b08",
"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": 450,
"y": 1300,
"wires": [
[
"c96c65d6.bfc148"
]
]
},
{
"id": "c96c65d6.bfc148",
"type": "ui_template",
"z": "2f52681b.fb4b08",
"group": "165e1e1a.e752fa",
"name": "test",
"order": 5,
"width": 0,
"height": 0,
"format": "",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": false,
"templateScope": "local",
"className": "",
"x": 620,
"y": 1300,
"wires": [
[
"ac1c43a9d393f091"
]
]
},
{
"id": "ac1c43a9d393f091",
"type": "debug",
"z": "2f52681b.fb4b08",
"name": "debug 19",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 800,
"y": 1300,
"wires": []
},
{
"id": "165e1e1a.e752fa",
"type": "ui_group",
"name": "Tuner",
"tab": "f9b58883.fa613",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "f9b58883.fa613",
"type": "ui_tab",
"name": "WebRadio",
"icon": "dashboard",
"order": 4,
"disabled": false,
"hidden": false
}
]