Skip to content

RobinDeBaets/SonosScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SonosScripts

A lightweight CLI wrapper for SoCo.

LICENSE: WTFPL

Setup:

git clone https://github.com/RobinDeBaets/SonosScripts
cd SonosScripts
python3 setup.py install --user

By default, it will try to use terminal-notifier to send notifications when changing settings. Optionally, you can install dbus-python through pip for compatibility with notify-send.

Usage

All commands can take the following options as well:

  • --sonos: target specific Sonos device by name
  • --sonos_ip: target specific Sonos device by IP

If not given, it will look for the first available Sonos device on your current network.

sonosscripts change_bass --step X   # Increase or decrease bass by given amount
sonosscripts change_volume --step X # Increase or decrease volume by given amount
sonosscripts next
sonosscripts stop
sonosscripts previous
sonosscripts play_pause
sonosscripts mute_volume

You can use these scripts in combination with custom keyboard shortcuts on your PC to easily modify your Sonos volume, bass and track.

Development environment

python3 -m venv venv
source venv/bin/activate
pip install wheel
pip install -e . 

About

A lightweight CLI wrapper for SoCo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published