here to store and how to play local mp3 file with Sonos

Hi all,

I just got a Sonos3, and all is working well through VeraEdge (UI7), including radio and text to speech.

However, when trying to play a local MP3 file I get nothing played. I used WinSCP to create a media folder in the “www” folder on the root. Inside the media folder I placed a working file called chime.mp3. I have tried the following LUA code, please tell me what is wrong!

luup.call_action("urn:micasaverde-com:serviceId:Sonos1", "PlayURI", {URIToPlay="x-file-cifs://192.168.1.18/media/chime.mp3", Volume=70}, 85)

Thank you all!

I use “http” instead of “x-file-cifs” as the URi scheme. You’d only use x-file-cifs if the Vera ran a Samba (Windows share) server, which it doesn’t.

omg, i was trying to use the schemes provided in the dropdown and documentation… didn’t even think to try http… DOH! Thank you so much, it works!

For those who come behind me and read this post, please try this (modify url to suit your own of course)

luup.call_action(“urn:micasaverde-com:serviceId:Sonos1”, “PlayURI”,
{URIToPlay=“http://192.168.1.18/media/chime.mp3”, Volume=70},
85)

Can anyone help with instructions on how to store an mp3 on Vera 3 using a mac?

Just take care, remember that the memory in Vera is terribly limited. Storing permanent MP3 files in the Vera looks like a bad idea, except if your MP3 files are very small.

To upload files in the Vera, you just need an application accepting the SCP transfer protocol. It shoudl certainly exist in the MAC platform.

I am trying to play an mp3 file from dropbox.
Has a URL like this: https://dl.dropboxusercontent.com/u/xxxxxxxx/DV-2015-02-13-193502.mp3

action=PlayURI
URIToPlay=https://dl.dropboxusercontent.com/u/xxxxxxxx/DV-2015-02-13-193502.mp3

Does not play. Is this because of the SSL (https) or is there some other reason why this won’t play?

For MP3 file playback, the protocol x-rincon-mp3radio could maybe help.

[quote=“eroeberoe, post:1, topic:184924”]Hi all,

I just got a Sonos3, and all is working well through VeraEdge (UI7), including radio and text to speech.

However, when trying to play a local MP3 file I get nothing played. I used WinSCP to create a media folder in the “www” folder on the root. Inside the media folder I placed a working file called chime.mp3. I have tried the following LUA code, please tell me what is wrong!

luup.call_action("urn:micasaverde-com:serviceId:Sonos1", "PlayURI", {URIToPlay="x-file-cifs://192.168.1.18/media/chime.mp3", Volume=70}, 85)

Thank you all![/quote]

I have a slightly different problem

this works

luup.call_action(“urn:micasaverde-com:serviceId:Sonos1”, “PlayURI”,
{URIToPlay=“x-file-cifs://qnapstorage/Multimedia/x.wav”, Volume=15},
16)
but this does not

luup.call_action(“urn:micasaverde-com:serviceId:Sonos1”, “PlayURI”,
{URIToPlay=“x-file-cifs://192.168.1.70/Multimedia/x.wav”, Volume=15},
16)

192.168.1.70 is the IP address of a QNAP Storage device.

Can anyone help?

Maybe it depends on how you declare your network share in the Sonos.

Thanks - that was it by telling the Library manager about both and rebooting the SONOS it worked.