Skip to content
Compare
Choose a tag to compare
@stefankoegl stefankoegl released this 26 May 16:37
· 59 commits to master since this release

socos is a commandline client for Sonos speakers. It builds on the SoCo python library and offers a commandline and an interactive mode.

This first release offers the following commands.

$ socos help
Available commands:
 * list         List available devices 
 * partymode    Put all the speakers in the network in the same group, a.k.a Party
 * info         Information about a speaker 
 * play         Start playing 
 * pause        Pause the currently playing track.
 * stop         Stop the currently playing track.
 * next         Play the next track 
 * previous     Play the previous track 
 * current      Show the current track 
 * queue        Show the current queue 
 * remove       Remove track from queue by index 
 * volume       Change or show the volume of a device 
 * bass         Change or show the bass value of a device 
 * treble       Change or show the treble value of a device 
 * state        Get the current state of a device / group 
 * ml_index     Update the index of the music library information
 * ml_tracks    Search for and possibly play tracks from the music library
 * ml_albums    Search for and possibly play albums from the music library
 * ml_artists   Search for and possibly play all by artists from music library
 * ml_playlists Search for and possibly play playlists imported in the music library
 * exit         Exit socos 
 * set          Set the current speaker for the shell session by ip or speaker number
 * unset        resets the current speaker for the shell session 
 * help         Prints a list of commands with short description 

To use the interactive mode, start socos without parameters.

$ socos
socos> list
(1) 192.168.0.132   Living Room
socos> state 192.168.0.132
PLAYING
socos> info 192.168.0.132
uid: RINCON_00XXYYAABBCCDDEEF
software_version: 26.1-76230
zone_icon: x-rincon-roomicon:living
mac_address: 00:XX:YY:ZZ:AA:BB
hardware_version: 1.16.4.1-2
zone_name: Living Room
serial_number: 00-XX-YY-ZZ-AA-BB:C