Skip to main content

light anything up with govee, right from mpris.

Project description

mprisgovee

light anything up with govee, right from mpris.

OS - Linux Made with Python PyPI AUR License contributions - welcome

showcase

features

  • detect song art from any mpris player automatically
  • change govee device color with dominant color from song art
    • uses the lan api for extremely fast updates
  • multidevice support
  • cache colors to avoid reprocessing
  • detect play/pause for brightness changes
  • app ignoring
  • configurable settings

prerequisites

  • a computer running linux
  • a network connection
  • a govee lan api capable device
    • remember to turn on the capability!
      • you can find this in the app by going to your device's settings page.
  • python 3.9 or higher
  • playerctl installed
  • your govee device's ip address:
    1. get the mac address of your device.
      • you can find this in the app by going to your device's settings page.
    2. use any method to match up the mac address with a device ip on your network.
      • i did this by going to my router settings and matching it up under "Device List".

installation

pip

mprisgovee is avaliable on PyPI:

pip install mprisgovee

Arch (AUR)

mprisgovee is avaliable on the AUR for Arch users under python-mprisgovee:

# for yay users
yay -S python-mprisgovee

# for paru users
paru -S python-mprisgovee

usage

you can start it by either manually running mprisgovee from your terminal or running at startup using your favorite method.

example (niri):

spawn-sh-at-startup "mprisgovee"

configuration

the config file can usually be found at ~/.config/mprisgovee/config.toml.

default configuration

govee_ip = ["192.168.1.100", "192.168.1.101"]

govee_port = 4003

brightness_on_play_pause = true

brightness_playing = 100

brightness_paused = 10

ignored_apps = [
    "firefox",
    "chromium",
    "chrome",
    "brave",
    "vivaldi",
    "zen",
    "opera"
  • govee_ip:
    • sets the current ip address.
    • format this as a list
  • govee_port:
    • sets the current port.
      • this can usually be left default.
  • brightness_on_play_pause:
    • enables brightness changes on play/pause.
  • brightness_playing:
    • changes the brightness level on play
  • brightness_paused:
    • changes the brightness level on pause
  • ignored_apps:
    • ignores all apps on list.

thanks to:

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

mprisgovee-1.3.0.tar.gz (7.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mprisgovee-1.3.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file mprisgovee-1.3.0.tar.gz.

File metadata

  • Download URL: mprisgovee-1.3.0.tar.gz
  • Upload date:
  • Size: 7.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mprisgovee-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e12639276ac0dd6cd307be3bc2e2b18679e6f522f5ab603c7896706d634e3f4c
MD5 39e3d26a990055dca8549a91adb60164
BLAKE2b-256 b670bac43c6aa0b8fb5cf6a31c2e22bbe7d5986da4534e4896d68f0fcce201fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for mprisgovee-1.3.0.tar.gz:

Publisher: pypi.yml on obvRedwolf/mprisgovee

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mprisgovee-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: mprisgovee-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mprisgovee-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be30397221228b7e0d1bbb80d462f389c123c1459ceb9316f9566fe8a9f586f3
MD5 f6fbaeb4d22e4c45eb8bea190b07dc89
BLAKE2b-256 cb2eb46cdcb79d3dcd056fd0713fcb6935f252779e7fd74378dc720c50c15299

See more details on using hashes here.

Provenance

The following attestation bundles were made for mprisgovee-1.3.0-py3-none-any.whl:

Publisher: pypi.yml on obvRedwolf/mprisgovee

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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