Library for controlling smart bulbs that are controlled by the DoIT protocol
Project description
MyrtDesk API
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
Release history Release notifications | RSS feed
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-0.0.1.tar.gz
(11.2 kB
view hashes)
Built Distribution
Close
Hashes for myrt_desk_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 555e932d0fdd26738fe67f008e468bbf59056b22b939ef84c21f64aa02e31b32 |
|
MD5 | 87d56c419a0627e73eda5f1d54c27534 |
|
BLAKE2b-256 | 4fce07efc4844e3b185332a6240a41598a8a8f45fab3a6a6102da7724aef928c |