Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 693 Bytes

README.rst

File metadata and controls

35 lines (22 loc) · 693 Bytes

smobot

Python package to interface with the Smobot device using asynchronous http (aiohttp).

Description

Currently only implements the local api, which just needs a IP address.

import asyncio
from smobot import Smobot

async def main(ip):
    smobot = Smobot(ip)
    print(await smobot.status)
    await smobot.close()

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete('192.168.4.1')

Note

This project has been set up using PyScaffold 3.2.3. For details and usage information on PyScaffold see https://pyscaffold.org/.