What path i have to insert to local file in payload

Hi there,
im new with nodered and want to play a notification on sonos speaker with the node node-red-contrib-sonos-plus.

I have a soundfile what is currently stored at my nas server and what is given as payload: x-file-cifs://nasserver/Sonos/gong.mp3

But no i want that the file is stored local at the raspberrypi, at wich is nodered installed. I stored the same file under Home/pi/ .

But now when i put as payload x-file-cifs://raspberrypi/home/pi/gong.mp3 then sonos cant play anything.
I get the failure:

"group.play.notification:Sonos error on Play UPnPError 701 (Transition not available) :: Details: {"stack":"SonosError: Sonos error on Play UPnPError 701 (Transition not available)\n at AVTransportService.handleErrorResponse (/home/pi/.node-red/node_modules/@svrooij/sonos/lib/services/base-service.js:243:23)\n at runMicrotasks ()\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async AVTransportService.handleRequest (/home/pi/.node-red/node_modules/@svrooij/sonos/lib/services/base-service.js:200:16)\n at async AVTransportService.SoapRequestWithBodyNoResponse (/home/pi/.node-red/node_modules/@svrooij/sonos/lib/services/base-service.js:134:16)\n at async AVTransportService.Play (/home/pi/.node-red/node_modules/@svrooij/sonos/lib/services/av-transport.service.js:176:32)\n at async SonosDevice.Play (/home/pi/.node-red/node_modules/@svrooij/sonos/lib/sonos-device.js:1063:27)\n at async playGroupNotification (/home/pi/.node-red/no..."

Can anyone help me what i have to fix that it will working?


This is the way it's working for me, maybe not the best way, but it works.

In the settings.js file I have enabled and edited:

 /** When httpAdminRoot is used to move the UI to a different root path, the
     * following property can be used to identify a directory of static content
     * that should be served at http://localhost:1880/.
    httpStatic: '/home/nodered/node-red-static/',

Make a dir node-red-static in the /home/nodered folder
Then put your mp3 files in /home/nodered/node-red-static
Your mp3 file should now been found at /gong.mp3

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