Socket
Book a DemoInstallSign in
Socket

bs-sonos

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-sonos

[![Build Status](https://travis-ci.com/believer/bs-sonos.svg?branch=master)](https://travis-ci.com/believer/bs-sonos)

latest
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

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

  • Wejay

Keywords

BuckleScript

FAQs

Package last updated on 15 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.