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 PyPI - Downloads 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
  • cache colors to avoid reprocessing
  • 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

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.json.

default configuration

{
    "govee_ip": "192.168.1.100",
    "govee_port": 4003
}
  • govee_ip:
    • sets the current ip address.
  • govee_port:
    • sets the current port.
      • this can usually be left default.

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.0.2.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.0.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mprisgovee-1.0.2.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.0.2.tar.gz
Algorithm Hash digest
SHA256 3797122ddfcf38ed7cd26e2a22e9397dd36e80ad44ec838cb0e7104412510e4b
MD5 2cebce5c9498d74a9cba5504c666a437
BLAKE2b-256 7b66f6dd994f5a8853c81182f2975a331180aa47a53e0d1697fbfa176df09959

See more details on using hashes here.

Provenance

The following attestation bundles were made for mprisgovee-1.0.2.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.0.2-py3-none-any.whl.

File metadata

  • Download URL: mprisgovee-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ff4907928acb593fc1349016402b2a7016698652d4452872ae8cc62aa1196b5
MD5 8a36b3b4e61c7b6c90c2cc1c862d0a7f
BLAKE2b-256 fab8ba13c5c27fd1d71dcc107133c203723ab1d16643e04662d6d04d562d2161

See more details on using hashes here.

Provenance

The following attestation bundles were made for mprisgovee-1.0.2-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