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.2.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyechorobotics-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ffb8bb97fb075b47630173b89e99a97387a2c888d69c92e7440244fae01207a8
MD5 a8eebd3ff4de727916f69fa406168051
BLAKE2b-256 39729d7dca34001f4a4807485c0af8b85a1cdda1bc24793dc23e5ac16abbf916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyechorobotics-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28be6a92d343e639501597ff65e9ae62e6dec25631d01ff6ccee1b225ffcd89f
MD5 315bff7d6f068770f56abccfeb557ad0
BLAKE2b-256 aa02080b74dba0edc914abd3d075cf1a0899337a2ad9cccca68c54fd5a97ec1f

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