Skip to main content

Module to communicate to the Robonect API

Project description

aiorobonect

Asynchronous library to communicate with the Robonect API

API Example

"""Test for aiorobonect."""
from aiorobonect import RobonectClient

import asyncio
import json

host = "10.0.0.2"        ## The Robonect mower IP
username = "USERNAME"    ## Your Robonect username
password = "xxxxxxxx"    ## Your Robonect password
tracking = [             ## Commands to query
            "battery",
            "wlan",
            "version",
            "timer",
            "hour",
            "error"
           ]

async def main():
    client = RobonectClient(host, username, password)
    status = await client.async_cmd("status")
    print(status)
    tracking = await client.async_cmds(tracking)
    print(json.dumps(tracking, indent=2))
    await client.session_close()

asyncio.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

aiorobonect-0.1.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

aiorobonect-0.1.2-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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