Skip to main content

Access API for echorobotics robot lawn mowers

Project description

pyechorobotics

echorobotics_logo

Allows control and reads status of robot lawn mowers by echorobotics.

Example:

import sys

import echoroboticsapi
import aiohttp
import asyncio
import logging


async def main():
    async with aiohttp.ClientSession(cookies=echoroboticsapi.create_cookies(user_id="your-user-id", user_token="user-user-token")) as session:
        api = echoroboticsapi.Api(session, robot_ids=["your-robot-id"])
        print(await api.last_statuses())
        print(await api.set_mode("chargeAndWork"))


if __name__ == "__main__":
    logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
    loop = asyncio.new_event_loop()
    loop.run_until_complete(main())

See also src/main.py

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

pyechorobotics-0.0.4.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

pyechorobotics-0.0.4-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file pyechorobotics-0.0.4.tar.gz.

File metadata

  • Download URL: pyechorobotics-0.0.4.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for pyechorobotics-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0c6909e00f0bd3ecae7c176a971e80f96a080a4f20f5c0a196f41ce0e3b7ec77
MD5 dab503ec1246e261b8ebb1a539437b71
BLAKE2b-256 14a3e4e5d8bb68c6ded8f3b7441b42e2a8bdc042a8af7cdf0ac6fc3a5ed3e050

See more details on using hashes here.

File details

Details for the file pyechorobotics-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pyechorobotics-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b16df04f8ce9b981150ecd6a80638c59d2256f4287798c557d65ab2fdcfd4300
MD5 062cb51ac18db05a58ea2c8783c025ba
BLAKE2b-256 beefb0c97527d9a7018a38f61981dd323a19c35c70f873cbe1064ce51c900d57

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