Skip to main content

A Python package to control streamdock device: https://bbs.key123.vip

Project description

Linux Systems (Ubuntu/Debian)

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

pip install pillow
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(3, "2.jpg")
    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.1.tar.gz (10.9 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.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamdock-0.1.1.tar.gz
  • Upload date:
  • Size: 10.9 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.1.tar.gz
Algorithm Hash digest
SHA256 98bdda0a7f9f559f65c19b44a5d38f077cb6485f7d257f4f8b8913b503f307a5
MD5 442a2d1c07e9ea1cabcad4ee2ece7a57
BLAKE2b-256 6724adf7a2f315724ebdce44f2bfe45a809d82378813cf032cb7e1931438ce7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: streamdock-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38dd037f612405142369773e96ea390014fa94fea5c779202143222ce8de87e1
MD5 82c87c2a4abbb454caa61a0014520bbd
BLAKE2b-256 374e99b999e344c5f2e47747b8d2ead3c56807b7f1a1da4c4f7cdc045d47e9d5

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