Library for controlling smart bulbs that are controlled by the DoIT protocol
Project description
MyrtDesk API ![PyPI version](https://pypi-camo.freetls.fastly.net/55c3cdc8995c03675304a596d0414829d0948d27/68747470733a2f2f62616467652e667572792e696f2f70792f6d7972742d6465736b2d6170692e737667)
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.1.1.tar.gz
(13.7 kB
view hashes)
Built Distribution
Close
Hashes for myrt_desk_api-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8100ffe718c9c46f34dad5ae609f4bb3c773200f78407942bc39a0b11ef997f3 |
|
MD5 | f912dfabd7e4f032513a7f3d6481ecc8 |
|
BLAKE2b-256 | ad1d173fbd11d4c6f31d6320a40e8b079b6c6ec07b4a9c0dd3d4b2b5fec33203 |