A python client for the OpenRGB SDK
Project description
openrgb-python
A python client for the OpenRGB SDK
I started this project because I wanted to be able to control the color of my lights based on temps. I tried to implement the features in the best (easiest to use) way possible.
SDK Feature Support:
- Setting client name
- Getting device info
- Setting color by device
- Setting color by zone
- Setting color by led
- Setting mode
- Setting custom mode
- Resizing zones
Additional Features (Not part of the OpenRGB SDK):
- Loading profiles
- Saving profiles
Installation
requires python >= 3.7
Use this method for the newest, but possibly buggy, package:
pip3 install git+https://github.com/jath03/openrgb-python#egg=openrgb-python
Arch Linux:
yay -S python-openrgb-git
For a more stable package:
pip3 install openrgb-python
Arch Linux:
yay -S python-openrgb
Thanks to @GabMus for the AUR packages
Usage
from openrgb import OpenRGBClient
from openrgb.utils import RGBColor, DeviceType
client = OpenRGBClient()
client.clear() # Turns everything off
motherboard = client.get_devices_by_type(DeviceType.DEVICE_TYPE_MOTHERBOARD)[0]
motherboard.set_color(RGBColor(0, 255, 0))
motherboard.zones[0].set_color(RGBColor(255, 0, 0))
motherboard.zones[1].leds[0].set_color(RGBColor.fromHSV(0, 100, 100))
motherboard.set_mode("breathing")
client.save_profile("profile1")
API docs
https://openrgb-python.readthedocs.io/en/latest/
For an alternative python implementation, check out B Horn's OpenRGB-PyClient
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for openrgb_python-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8bce594a176d89e6a56d897df2cf548ee90ced57a374e202e77f2a2e0dee473 |
|
MD5 | 79472298d220da2a53a26a1af66f0080 |
|
BLAKE2b-256 | 2cb43c26a47d0dc690d1c6527e794e02794dacd467ad8a47373484be34b00ada |