I found the omxplayer node and try to use it without success.
Console cmd "omxplayer -p -o local /home/pi/Desktop/lassedenken.mp3" works.
My flow doesn´t work and is probably (lag of documentation) wrong:
[
{
"id": "92596eed.3f2998",
"type": "rpi-omxplayer",
"z": "96d7adea.07818",
"name": "",
"filename": "",
"audiooutput": "local",
"blackbackground": true,
"disablekeys": false,
"disableosd": true,
"disableghostbox": false,
"subtitlepath": "",
"loop": false,
"x": 710,
"y": 200,
"wires": [
[]
]
},
{
"id": "34d0d257.ac99c6",
"type": "inject",
"z": "96d7adea.07818",
"name": "",
"topic": "",
"payload": "playSomeShit!",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 370,
"y": 200,
"wires": [
[
"1b7e103f.15fa38"
]
]
},
{
"id": "1b7e103f.15fa38",
"type": "function",
"z": "96d7adea.07818",
"name": "setAudio",
"func": "msg.filename = \"~/home/pi/Desktop/lassedenken.mp3\";\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"x": 520,
"y": 200,
"wires": [
[
"92596eed.3f2998"
]
]
}
]
Goal is to play audio on the analog output of my raspi where node-red is running.
Can someone help pls ?