Skip to main content

A Python package to control streamdock device at 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.2.tar.gz (50.5 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.2-py3-none-any.whl (52.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamdock-0.1.2.tar.gz
  • Upload date:
  • Size: 50.5 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.2.tar.gz
Algorithm Hash digest
SHA256 996988976630d4a28b44f055ca562dc72bb5fafbd50bf87d1fda9bd4bcb9191c
MD5 b1040a04b2da54f024f1293fd72051b1
BLAKE2b-256 efc4dd521227c259dfa04c8370656e04c4b4d6adc28c570842cccf2dd3a73d42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: streamdock-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 52.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bba82da90ff59693c79c18a9e127de190fa35f2965563d83281667411906b52b
MD5 fb862faf6a1bc30afee0c871be7904a4
BLAKE2b-256 31c1c2e1d15d3572e1042f53f000b9f9a2ba272f92fe2bfaede1b552095bde96

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