A touch screen (Adafruit PiTFT 3.5") Sonos controller for Raspberry Pi. Runs in a docker container.
This controller relies upon the SoCo library for communicating with Sonos speakers and the pygame library for the UI.
The sonos-pi-controller includes the following features:
/boot/config.txt
gpu_mem=16
# --- added by adafruit-pitft-helper Tue 30 Oct 10:12:27 MDT 2018 ---
dtparam=spi=on
dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=pitft35-resistive,rotate=0,speed=32000000,fps=60
# --- end adafruit-pitft-helper Tue 30 Oct 10:12:27 MDT 2018 ---
docker build -t villarrealized/debian-pygame-base -f Dockerfile.base .
docker-compose build
sample.env
to .env
and adjust BACKLIGHT_TIMEOUT
to your preference. Default is 30 seconds.docker-compose up -d
and enjoy your Raspberry Pi Sonos Controller!
If you have any issues getting started, please reach out and I will try to help.
If your touchscreen is not calibrated correctly, try running the calibration program:
sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/touchscreen ts_calibrate