Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fguchelaar/mock-sonos-http-api

A mock for (parts of) the api of node-sonos-http-api
https://github.com/fguchelaar/mock-sonos-http-api

fake mock sonos

Last synced: 18 days ago
JSON representation

A mock for (parts of) the api of node-sonos-http-api

Awesome Lists containing this project

README

        

# mock-sonos-http-api
A mock for (parts of) the api of [node-sonos-http-api](https://github.com/jishi/node-sonos-http-api).

For a project I'm building, I am using the marvelous API [node-sonos-http-api].
This API provides me with a clean bridge to communicate with various SONOS
devices, but I simply do not have enough speakers available to be able to test
all my use-cases.

That led me to implement a _mock_ version of the API's needed for my specific
application. Currently I only need to list all the zones, group them and set the
volumes. As a result the endpoints implemented sofar are:

- `/zones`
- `/:roomName/join/:otherRoomName`
- `/:roomName/leave`
- `/:roomName/volume/:volume`

**Note:** the state of the application is not persisted, but instead gets
reset on every launch.

Small requirements, leading to a small and hopefully simple app. Feel free to
contribute, if you think this might be useful for your own project.

[node-sonos-http-api]: https://github.com/jishi/node-sonos-http-api