Skip to main content

Version 0.3 of the SoCo-CLI Sonos Command Line Controller Released

  • January 22, 2021
  • 3 replies
  • 305 views

pwt
Forum|alt.badge.img+20
  • Virtuoso
  • 1884 replies

Version 0.3 of SoCo-CLI, the open source Sonos command line controller for Windows, macOS and Linux, is now available:

https://github.com/avantrec/soco-cli/blob/v0.3.5/README.md

This release adds an Interactive Shell Mode, and also provides an API to allow the use of SoCo-CLI as a simple, high level library for inclusion in other Python programs.

For those of us who enjoy using the command line to get things done, the interactive shell is fast and convenient to use. The shell is started using sonos -i, then just type ? for available commands. Most of the huge range of SoCo-CLI control commands are available:

https://github.com/avantrec/soco-cli/blob/v0.3.5/README.md#interactive-shell-mode

This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

3 replies

  • Lyricist I
  • 1 reply
  • January 27, 2021

That’s really brilliant. Thank you so much.

For Windows, I had to comment out the line where it tries to import the termios module in keystroke_capture.py (as windows doesn’t have this). Everything seems to work as expected.


pwt
Forum|alt.badge.img+20
  • Author
  • Virtuoso
  • 1884 replies
  • January 28, 2021

That’s really brilliant. Thank you so much.

For Windows, I had to comment out the line where it tries to import the termios module in keystroke_capture.py (as windows doesn’t have this). Everything seems to work as expected.

Thanks for the feedback. I’ll fix the termios import — thanks for reporting it.


pwt
Forum|alt.badge.img+20
  • Author
  • Virtuoso
  • 1884 replies
  • February 2, 2021

Thanks for the feedback. I’ll fix the termios import — thanks for reporting it.

Just FYI: the ‘single keystroke’ shell feature (that requires termios on Unix-y systems) is now also supported under Windows, in v0.3.19 upwards.

https://github.com/avantrec/soco-cli/tree/v0.3.19#single-keystroke-mode

As the name implies, it’s handy for controlling Sonos with just a single touch of the keyboard. For example, I can assign a one-character alias to an action or series of actions, then invoke with a single keypress.