An Interface to work with the Multivision and OnlyGlass Generic LED Controller via TCP
Project description
LED Controller API Wrapper
used to communicate with different LED-Controllers via TCP to read and set the overall brightness.
Example Usage
import asyncio
from ledwallcontroller import Multivision, TCPHandler, OnlyGlass
async def main():
conn1 = TCPHandler(host="192.168.20.197", port=4010)
mv = Multivision(conn1, controller_id=1)
await mv.set_brightness_percent(98)
await mv.update()
print(f"Multivision 1 brightness: {mv.brightness_percent}")
mv2 = Multivision(conn1, controller_id=2)
await mv2.set_brightness_percent(98)
await mv2.update()
print(f"Multivision 2 brightness: {mv2.brightness_percent}")
conn2 = TCPHandler(host="192.168.20.197", port=4001)
og = OnlyGlass(conn2)
await og.set_brightness_percent(50)
await og.update()
print(f"OnlyGlass brightness: {og.brightness_percent}")
asyncio.run(main())
Example Communication for Multivision
Sending an ASCII-encoded String via TCP
Setting Values
Set Brightness to 75%
SOH L E D S B R I G H 0 1 = 7 5 CR
-> No return
Getting Values
Get current Brightnesss
SOH L E D G B R I G H 0 1 = ? CR
->
SOH L E D R B R I G H 0 1 = 7 5 CR
Brightness 75%
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ledwallcontroller-0.1.0.tar.gz.
File metadata
- Download URL: ledwallcontroller-0.1.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bcacaabac0dc06dbdb13f04583971bf5ab6d14332800e75f82e0bb3516e6876
|
|
| MD5 |
2844d8478734bfc084a417c2ef4120cc
|
|
| BLAKE2b-256 |
72f982ab503dc508dbfcf5e29ce479140eb2c48cdfde5627cef610023161ea18
|
File details
Details for the file ledwallcontroller-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ledwallcontroller-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9358261fbd48ddbedc84e4c9589e20cc6f6b9dd9bf19578085a3eb7e049fd8ff
|
|
| MD5 |
ac75e0f3f9228d0692a76a38402561bd
|
|
| BLAKE2b-256 |
c6b94b13c45a3580b7c3374cf9165986f504fc97f9da2ba8c6e1a98c3e5e3165
|