🏡 index : ~doyle/sonos-cli.git

author Jordan Doyle <jordan@doyle.la> 2020-02-23 20:34:13.0 +00:00:00
committer Jordan Doyle <jordan@doyle.la> 2020-02-23 20:43:07.0 +00:00:00
commit
20c383747ec40a69c3b6afe81d1f5383851e9619 [patch]
tree
de8b82be1f203c52d06cc0b30dc7f23a0acd5c09
parent
e0ac241079b629e352a4c5f3c8e9743b48485004
download
20c383747ec40a69c3b6afe81d1f5383851e9619.tar.gz

Update README



Diff

 README.md | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 72 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md
index 6879185..10f3804 100644
--- a/README.md
+++ b/README.md
@@ -13,12 +13,13 @@ $ mv target/release/sonos-cli /usr/local/bin/sonos
## Usage

```
sonos 0.1.0
$ sonos help
sonos 0.2.0
Jordan Doyle 
Control your Sonos using the command line

USAGE:
    sonos-cli [OPTIONS] [json] <SUBCOMMAND>
    sonos -c <IP or Room Name> [json] <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
@@ -31,12 +32,73 @@ ARGS:
    <json>    Return back JSON serialised responses for programmatic use of the CLI

SUBCOMMANDS:
    help        Prints this message or the help of the given subcommand(s)
    info        Shows information about the speaker
    next        Skip to the next track
    previous    Go back to the last track
    rooms       List all of your speakers
    seek        Seek to a specific timestamp on the current track
    track       Show the current track information
    volume      Get or set the volume of the speaker
    help      Prints this message or the help of the given subcommand(s)
    info      Shows information about the speaker
    rooms     List all of your speakers
    seek      Seek to a specific timestamp on the current track
    track     Commands to manipulate the tracklist
    volume    Get or set the volume of the speaker

$ sonos track help
sonos-track
Commands to manipulate the tracklist

USAGE:
    sonos -c <IP or Room Name> track [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    help    Prints this message or the help of the given subcommand(s)
    list    Get the list of tracks in the queue
    next    Skip to the next track
    play    Play a given track
    prev    Go back to the last track

$ sonos track play help
sonos-track-play
Play a given track

USAGE:
    sonos track play [uri] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <uri>    Queue position to skip to or a Sonos URI to play

SUBCOMMANDS:
    help       Prints this message or the help of the given subcommand(s)
    line-in    Set the current speaker's input to the line-in
    tv         Set the current speaker's input to the SPDIF
```

```
$ sonos -c "Kitchen" track list
1: Afghan Dan & BGM - Resurrection Business (Freestyle) (01:53)
2: The Notorious B.I.G. - Nasty Girl (feat. Diddy, Nelly, Jagged Edge & Avery Storm) [2007 Remaster] 04:46
3: The Strokes - Juicebox (03:17)
...

$ sonos -c "Kitchen" track play 2

$ sonos -c "Kitchen" seek 02:30

$ sonos -c "Kitchen" track
🎤  The Notorious B.I.G.
🎵  Nasty Girl (feat. Diddy, Nelly, Jagged Edge & Avery Storm) [2007 Remaster]
💿  Greatest Hits
⏱️  02:31/04:46 [▇▇▇▇▇▇▇▇▇▇▇▇▇------------]

$ sonos -c "Kitchen" track next

$ sonos -c "Kitchen" track
🎤  The Strokes
🎵  Juicebox
💿  First Impressions Of Earth
⏱️  00:01/03:17 [-------------------------]
```