Skip to main content

Library for controlling smart bulbs that are controlled by the DoIT protocol

Project description

MyrtDesk API PyPI version

Library for controlling smart table functions with my own firmware.

  • Fully asynchronous
  • Automatic detection
  • Cool CLI tool

API Example

This code will wait for the lights to turn off, then flash the backlight controller and then turn on the rainbow effect:

from asyncio import run
from myrt_desk_api import MyrtDesk, Effect

async def main():
    desk_host = await discover()
    desk = MyrtDesk(desk_host)
    await desk.backlight.set_power(False)
    with open("./firmware.hex", mode="rb") as file:
        await desk.backlight.update_firmware(file.read())
    await desk.backlight.set_effect(Effect.RAINBOW)

if __name__ == '__main__':
    run(main())

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

myrt_desk_api-1.0.7.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

myrt_desk_api-1.0.7-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file myrt_desk_api-1.0.7.tar.gz.

File metadata

  • Download URL: myrt_desk_api-1.0.7.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for myrt_desk_api-1.0.7.tar.gz
Algorithm Hash digest
SHA256 43fa3e4101f72a6a4ce8800f38184a956e0ed31c059e262e0ad261e9db9bde4c
MD5 10e951b139340e03d6ca3c79d0b4b59b
BLAKE2b-256 e98ba7ec198f7032e643156b5fec772bcda55a039310fcfd2ab1d6eade56eea2

See more details on using hashes here.

File details

Details for the file myrt_desk_api-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for myrt_desk_api-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cb8139342fea9458009deedf83023c342b70713915b26f77103fe46f2036b386
MD5 226b69d8377f6a1c955f6ad38b0ce971
BLAKE2b-256 71f02b36c4ba7659056daaba3900077b946f110f97c6fba7b3c160798e60f908

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page