Skip to main content
Headliner II
June 20, 2016

Simplified HTTP API (node.js)

  • June 20, 2016
  • 36 replies
  • 13200 views
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!
This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

36 replies

jishiAuthor
Headliner II
February 18, 2017
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.
Lyricist I
February 20, 2017
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
Lyricist I
May 27, 2017
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
Lyricist I
May 28, 2017
I just figured out about the "musicsearch" usage. That's awesome...
Lyricist III
August 6, 2017
Hello StarNab. Can I ask you how you got the Spotify musicsearch to work?
Lyricist I
August 16, 2018

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