Skip to content

linusgke/pyMAdot2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyMAdot2

Asynchronous library to control MA Lighting dot2 light console.

This library is under development

Requirements

  • Python >= 3.10
  • aiohttp

Install

pip install pyMAdot2

Example

from pymadot2 import Dot2

import asyncio
import aiohttp

async def main():
    async with aiohttp.ClientSession() as session:
        await run(session)

async def run(session):
    console = await Dot2.create(
        session,
        "127.0.0.1",
        "test"
    )

    await console.command("Fixture 1")
    await console.command("At 100")
    await asyncio.sleep(1)
    await console.disconnect()

asyncio.run(main())