Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ledwallcontroller-0.2.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

ledwallcontroller-0.2.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file ledwallcontroller-0.2.0.tar.gz.

File metadata

  • Download URL: ledwallcontroller-0.2.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.13

File hashes

Hashes for ledwallcontroller-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bbbbceed2f083d5bed1b788d568b21e2c807742a6e81380a019093468dbf2805
MD5 282d742741096d11a3ca2045b13bb928
BLAKE2b-256 a19240023a21ffeed8e1b861e74cae0c479bd692c7a89d1418526de12d63e7a2

See more details on using hashes here.

File details

Details for the file ledwallcontroller-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ledwallcontroller-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80a6657bf44c9fb0c8c77345deec4854e67e1f192e625d66266a335e0d16558c
MD5 93c2d4f58b77fcdcba77a62a4e789d75
BLAKE2b-256 bfb9880b2455ec943f2fe32f91145d9cfe297b965fb359263384af4d9c1026ed

See more details on using hashes here.

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