Node red & sonos - play a local mp3 file

Hi Guys,
I am a beginner and have a question about the "node-red-contrib-sonos-plus" node.
I hope you can help me with my problem. I can play a notification on my Sonos system using the node (shown below). However, I would like to play a file that is local to my Raspberry, but it still doesn't work properly.
Here are my questions:

  • Where do I have to put the mp3 file on my Raspberry?
  • How do I have to adjust the flow to access it?

Thanks for help!

System properties:
operating system = openhabian, openHAB 2.5.0-1 (Release Build)
Ip = 192.168.188.44
Release = Raspbian GNU/Linux 10 (buster)
Kernel = Linux 4.19.75-v7l+
Platform = Raspberry Pi 4 Model B Rev 1.1
Node red version: 1.0.6: Maintenance Release

[{"id":"2afc933c.556cbc","type":"tab","label":"Sonos Test","disabled":false,"info":""},{"id":"a0f7d465.1508b8","type":"inject","z":"2afc933c.556cbc","name":"play.notification","topic":"http://soundbible.com/mp3/foghorn-daniel_simon.mp3","payload":"play.notification","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":80,"wires":[["ebe0566c.958938"]]},{"id":"ebe0566c.958938","type":"change","z":"2afc933c.556cbc","name":"with volume","rules":[{"t":"set","p":"volume","pt":"msg","to":"5","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":80,"wires":[["904c77b7.275398"]]},{"id":"904c77b7.275398","type":"sonos-universal","z":"2afc933c.556cbc","confignode":"158469f4.79c106","name":"living room","x":490,"y":80,"wires":[["7316fc12.02a974"]]},{"id":"7316fc12.02a974","type":"debug","z":"2afc933c.556cbc","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":630,"y":80,"wires":[]},{"id":"fd50d03c.17038","type":"comment","z":"2afc933c.556cbc","name":"Play notification","info":"","x":130,"y":40,"wires":[]},{"id":"158469f4.79c106","type":"sonos-config","z":"","name":"Wohnzimmer","serialnum":"94-9F-3E-C2-C2-26:C","ipaddress":"192.168.188.36"}]

I tried it with the following:

  • MP3 file ("notification_sound_arrival.mp3") saved in the folder "sounds" ("see picture")
  • Adaptation of the link (\ 192.168.188.44 \ openhabian \ node_modules \ sounds \ notification_sound_arrival.mp3)
  • When I activate the link on my laptop, the mp3 file is played
  • The following error message is output in node red (see picture)
  • This is the flow:
[{"id":"a0f7d465.1508b8","type":"inject","z":"2afc933c.556cbc","name":"play.notification","topic":"\\\\192.168.188.44\\openhabian\\node_modules\\sounds\\notification_sound_arrival.mp3","payload":"play.notification","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":80,"wires":[["ebe0566c.958938"]]}]

Hi. There seems to be something wrong with your path. You have to http serve the mp3 file.
Looking at the debug message it seems that you use a \

If you need further help: I suggest that you open and issue at node-red-contrib-sonos-plus or send an email nrcsplus@gmail.com

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