Skip to main content

Module to communicate to the Robonect API

Project description

aiorobonect

Asynchronous library to communicate with the Robonect API

maintainer buyme_coffee discord

MIT License

GitHub issues Average time to resolve an issue Percentage of issues still open PRs Welcome

Python

github release github release date github last-commit github contributors github commit activity

API Example

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

import asyncio
import httpx
import logging

logging.basicConfig(level=logging.INFO)
_LOGGER = logging.getLogger("aiorobonect")
_LOGGER.setLevel(logging.DEBUG)

async def main():
    host = "10.0.0.99"       ## The Robonect mower IP
    username = "USERNAME"    ## Your Robonect username
    password = "xxxxxxxx"    ## Your Robonect password
    tracking = [             ## Commands to query
                "battery",
                "clock",
                "door",
                "error",
                "ext",
                "gps",
                "health",
                "hour",
                "motor",
                "portal",
                "push",
                "remote",
                "report",
                "status",
                "timer",
                "version",
                "weather",
                "wlan",
                "wire"
            ]
    client = RobonectClient(host, username, password)
    try:
        status = await client.async_cmd("status")
        print(f"Status: {status}")
        tracking = await client.async_cmds(tracking)
        print(f"Tracking: {tracking}")
    except Exception as exception:
        if isinstance(exception, httpx.HTTPStatusError):
            print(exception)
    await client.client_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-1.3.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

aiorobonect-1.3.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file aiorobonect-1.3.1.tar.gz.

File metadata

  • Download URL: aiorobonect-1.3.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for aiorobonect-1.3.1.tar.gz
Algorithm Hash digest
SHA256 d896479089d05b98167edc754961c93b00e43d0d79410257802fcd1e6dc6a12c
MD5 9bf1d6abd7c8024eabb7f58abf651e72
BLAKE2b-256 3afcd4bbf1a8ae7e6192940356b6839c11a48bacffb3096c2e3b9303379568d4

See more details on using hashes here.

File details

Details for the file aiorobonect-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: aiorobonect-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for aiorobonect-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 360061dc7d0724f99d457c6b04553134e28178a6f5d64644cf3b5e118f12357a
MD5 56e297fb71ac5a65436a373deac18456
BLAKE2b-256 1f485aebf394e88990a810a58d50c73989304354d1249dd98555b2f0ed2b1708

See more details on using hashes here.

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