Skip to main content

Mute snapcast client playing on raspi3

Project description

Dark Mute

Dark Mute is python script that mutes snapcast client volume when it senses lights are off in the room.

It's written in Python 3 and requires a photoresistor-capacitor circuit connected to a Raspberry Pi running Snapcast.

Setup/Usage

As the pi user in its home directory:

  • python3 -m venv darkmute-venv
  • . darkmute-venv/bin/activate
  • sudo python3 -m pip install DarkMute

To run this as a service, create a systemd service definition. Instructions pending.

Developer Setup

  • Clone this from gitlab
  • Create and activate Python 3 virtual env
  • pip install -e . to install dependencies
  • Build the circuit, connected to GPIO Pin 7
  • add user to gpio group /dev/gpiomem

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DarkMute-0.1.3.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

DarkMute-0.1.3-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page