bs-sonos

3.0.0 • Public • Published

bs-sonos

Build Status

BuckleScript bindings for sonos used to control one or more Sonos speakers.

Example

open Methods;
 
/* Connect to a Sonos speaker using its IP */
let device = Device.make("192.168.0.1");
 
/* Queue a track and start playing it */
Js.Promise.(
  device->Queue.asLast("spotify:track:4fK6E2UywZTJIa5kWnCD6x")
  |> then_(_ => device->PlayerControl.play())
);

For all available methods, see src/Methods.re and for all response parser see src/Decode.re

Projects using bindings

Add yours if you are using the bindings

Readme

Keywords

Package Sidebar

Install

npm i bs-sonos

Weekly Downloads

0

Version

3.0.0

License

MIT

Unpacked Size

11.4 kB

Total Files

10

Last publish

Collaborators

  • believer