Skip to main content
Hi, I'm starting a new thread regarding this (old one here https://en.community.sonos.com/advanced-setups-229000/sonos-with-nodejs-my-attempt-33834) since that one grew out of hand.



I have made some major improvements to the simple HTTP API that I've built, and it now also comes with a pre-composed raspberry pi image that runs from a RAM-drive (based on AlpineLinux) for even simpler installation.



This software is useful for simple integration with home automation in mind, or for small hobby projects.



For more information, see http://jishi.github.io/node-sonos-http-api/



File issues at github https://github.com/jishi/node-sonos-http-api/issues



Have fun!
Hi Jishi



Thank you for your prompt reply. I already suspected (and feared) this would be the case. But now I know, at least I can finally go to sleep :)



Next step is I to figure out how to do the same in angular2, which should be doable.



Regards



Tom
Hi Jishi



Thank you for your prompt reply. I already suspected (and feared) this would be the case. But now I know, at least I can finally go to sleep :)



Next step is I to figure out how to do the same in angular2, which should be doable.



Regards



Tom




Looks like you are depending on some chrome native functions for the network traffic. You might already be aware of this, but https://github.com/siboulet/zonos is a chrome implementation of the Sonos network stack that might help you.



However, for maximum flexibility, having a separate server with no networking boundaries would be a lot easier.


Looks like you are depending on some chrome native functions for the network traffic. You might already be aware of this, but https://github.com/siboulet/zonos is a chrome implementation of the Sonos network stack that might help you.



However, for maximum flexibility, having a separate server with no networking boundaries would be a lot easier.




That indeed looks like an implementation to copy from, which is better than relying on a cordova plugin.



Will post if I got it to work.
Hi,

I don't understand how to install this. I Need a step-by-step description for a raspberry Pi with Raspian.

Thank you very much,

Baenker
Hi Jishi,



Is it possible to move a sub between rooms using the api?



Cheers,

Dave
Hi Jishi,



Is it possible to move a sub between rooms using the api?



Cheers,

Dave




Not at the moment. I have been thinking about it, and it should be possible but can't say when I will be able to build it. If a lot of people seem to want it, a higher probability that I will build it. Please open an issue at github so people can vote for it.



Hi,

I don't understand how to install this. I Need a step-by-step description for a raspberry Pi with Raspian.

Thank you very much,

Baenker




Sorry, there are clear instructions on the README on how to install it, and you can find guides on how to get the latest version of node.js all over the internet. I have also helped several people in closed issues at github, please read through them to see if you can find the answers you need.
JIshi, awesome work. I've used and contributed to the github.com/bencevans/node-sonos lib for a few projects. Your lib has come a long way since I first checked it out. I'm going to migrate to it and I'll let you know how it works.



Thanks!

Scott
Man congratulations and thanks for this awesome work.

I just finished integration on my RPI. Actually i added voice control on top of it with Jasper, Sphinx and Google speech API.

This way I can change the current playlist without touching a button.

Next step would be to be able to play a Spotify artist radio on the go. I saw a musicsearch.js action class. Could this achieve what I want ? As it is not documented I'm not sure.



Thanks again for your work man
I just figured out about the "musicsearch" usage. That's awesome...
Hello StarNab. Can I ask you how you got the Spotify musicsearch to work?


And finally for my local library I've found the following commands.

code:
/Playroom/musicsearch/library/song/red+hot+chili+peppers+dark+necessities


This command is a "search" command. It is searching for a song that matches the criteria. The command is working, but it is not that what I want. So I'm looking for a better way to select and play a specific song from my local library.





I would be very happy if you can support me with some hints.



Many thanks

Regards




There is no convenient way to "queue and play" form local library today. It would make sense to support that in the same manner as the music services, I just haven't looked at it. I'll create an issue for it in github and look at it when I get the time. It's a good suggestion.






Hi jishi,

first thanks for your work!

Just read your post from January 2017 and wanted to ask you if there is totay a more or less convenient way to 'queue and play' from a local library?



Best wishes from Cologne