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. Because of this goal, the full functionality of the OpenRGB SDK isn't implemented, but I tried to implement the supported 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 modes
- resizing zones
Installation
requires python >= 3.7
Use this method for the newest, but probably buggy, package:
pip3 install git+https://github.com/jath03/openrgb-python#egg=openrgb-python
For a more stable package:
pip3 install openrgb-python
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))
API docs
https://openrgb-python.readthedocs.io/en/latest/
For a more fully-featured 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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea935c1d9ad6c3162b0904d08218d9077a7518eda61cd1e4213dbae4fffb1f73 |
|
MD5 | 1f5b53c0cde9dffadd59233a0f38f121 |
|
BLAKE2b-256 | 79ccd8d3134d73dda6bc5337145fbd2e475fd242e75b714d0c198a928723544f |