Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fguchelaar/mock-sonos-http-api
- Owner: fguchelaar
- License: mit
- Created: 2020-07-03T19:13:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T05:25:45.000Z (about 2 years ago)
- Last Synced: 2024-10-30T00:07:00.921Z (about 2 months ago)
- Topics: fake, mock, sonos
- Language: JavaScript
- Homepage:
- Size: 132 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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