Skip to main content

A Python package for streamdock device

Project description

Linux Systems (Ubuntu/Debian)

You need to install PIL, pyudev, threading, ctypes, time, abc

pip install PIL
pip install pyudev
pip install threading
pip install ctypes
pip install time
pip install abc

When using it, you need to first define a DeviceManager class object (device manager class), and then call its enumerate() function to traverse the devices and obtain a list of device objects.

manner = DeviceManager();
streamdocks = manner.enumerate();

After obtaining the list of device objects, you need to call the open() method to open the device before calling other methods to operate on the device.

 for device in streamdocks:
    device.open()
    device.refresh()
    t1 = threading.Thread(target=device.whileread)
    t1.start()
    # 0-100
    device.set_brightness(100)
    device.set_touchscreen_image("1.jpg")
    time.sleep(1)
    device.set_key_image("2.jpg",3)
    time.sleep(1)
    device.cleaerIcon(3)
    time.sleep(1)
    device.clearAllIcon()
    device.refresh()
    time.sleep(1)
    device.close()
    time.sleep(1)

Please see the document for details

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

streamdock-0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

streamdock-0.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file streamdock-0.1.tar.gz.

File metadata

  • Download URL: streamdock-0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for streamdock-0.1.tar.gz
Algorithm Hash digest
SHA256 48fd8e5b6084876e5dcb88252c2e124aab0c495c1543b9b15496d3fb0ecb7848
MD5 1e941792c301cce4462a8c9eb5e55d8a
BLAKE2b-256 6df46cda588eb4d8c7d4413aedb144ea7e1ec68d8b24fa0beedeb40f67614120

See more details on using hashes here.

File details

Details for the file streamdock-0.1-py3-none-any.whl.

File metadata

  • Download URL: streamdock-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for streamdock-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 88b0b03608ef763d07e761a34983a08784ea88aba7064863d3529db523cd4fa1
MD5 f75ae799f746eb6fc622469814a18fa8
BLAKE2b-256 aa044af2e12c664a63ebaa1d9a42e41d452194aa3e26301aea23b6ec58e23946

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