Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perja12/sonos_turntable_ctrl
Use Powermate to switch to line in on Sonos Connect:Amp and adjust volume.
https://github.com/perja12/sonos_turntable_ctrl
powermate python sonos
Last synced: 2 months ago
JSON representation
Use Powermate to switch to line in on Sonos Connect:Amp and adjust volume.
- Host: GitHub
- URL: https://github.com/perja12/sonos_turntable_ctrl
- Owner: perja12
- Created: 2018-12-28T16:39:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-14T13:31:43.000Z (about 2 years ago)
- Last Synced: 2023-03-03T13:16:25.716Z (almost 2 years ago)
- Topics: powermate, python, sonos
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Control Sonos with the Griffin Powermate
This is a special purpose script to make it easier to get the audio from my turntable out on the Sonos Playbar.
Setup:
* Turntable connected to line-in on Sonos Connect:Amp
* Sonos Playbar connected to TV.Features:
* Powermate can control volume of the Sonos Playbar
* Pushing the knob of the Powermate will make the turntable play on the Sonos Playbar. Pressing it again will reset it to whatever it was playing before and also set volume to 10.## Setup
First you want to adjust the names of your sonos devices (see top of control_sonos.py). Use the same names as in the Android or iOS app.
You need this udev rule in order for the script to get permission to the Powermate:
`sudo cp 98-powermate.rules /etc/udev/rules.d/`Make sure you have python3 and pipenv installed: `pip3 install --user pipenv`
Run it directly with `pipenv run python control_sonos.py`
## Systemd service
You may want to enable systemd service for this script as it automatically restarts the scripts when rebooting.
* Install with `sudo cp sonos_turntable_ctrl.service /etc/systemd/system/`
* Enable service to run at boot: `sudo systemctl enable sonos_turntable_ctrl`
* Start the service: `sudo systemctl start sonos_turntable_ctrl`
* Check the logs: `sudo journalctl -u sonos_turntable_ctrl`