0.6.1 • Published 5 years ago

sonos-cli v0.6.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

sonos-cli

CLI for controlling Sonos zones

Install

$ npm install --global sonos-cli

Usage

Usage: sonos-cli [OPTION...] [COMMAND] [ARGS]

  Options:
    -V --version - displays package.json version
    -T --timeout [time] - sets timeout time for sonos discovery
    -Z --zone [zoneid] - sets the zone to take action on

  Commands:

    # General
    help - display this help text

    # Zone Management
    list-devices - list discoverable devices
    list-zones - list discoverable zones

    # Playback Management
    volume [new-volume] - show or set the volume
    current-track - displays current track information
    play [uri] - start playback or play a given track
    stop - stop playback
    pause - pause playback
    next - skip to the next track

Examples

Find a zone

$ sonos list-zones
RINCON_000E585B7C9801400:1
  Living Room

Play Bananna Pancakes - Jack Johnson from Spotify

# Right click on a track on Spotify to copy the Spotify URI
$ sonos --zone=RINCON_000E585B7C9801400:1 play spotify:track:0BgbobvykXxEvxo2HhCuvM

Play an MP3 from the web

$ sonos --zone=RINCON_000E585B7C9801400:1 play

Related

Licence

MIT © Ben Evans

0.6.1

5 years ago

0.6.0

5 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.0

9 years ago