Sorry folks, Mr stupid is at it again.
Given if I make the line complete in this exec
node, the sound is played, but if I send it the file name as a payload
nothing happens.
[{"id":"f6964989d2228832","type":"exec","z":"235f16ee6e459f2c","command":"omxplayer /home/pi/.node-red/public/Sounds/","addpay":"payload","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"DING","x":2290,"y":2240,"wires":[[],[],[]]},{"id":"6edeb0e71d6b6aba","type":"inject","z":"235f16ee6e459f2c","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"bellding.mp3","payloadType":"str","x":2100,"y":2240,"wires":[["f6964989d2228832"]]}]
What am I missing?
EDIT:
For clarity:
This is what is in the exec
node:
omxplayer /home/pi/.node-red/public/Sounds/
And the payload
is bellding.mp3
If I make the line:
omxplayer /home/pi/.node-red/public/Sounds/bellding.mp3
it works.
As posted, it doesn't.