Access API for echorobotics robot lawn mowers
Project description
pyechorobotics
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
Release history Release notifications | RSS feed
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.1.tar.gz
(15.7 kB
view details)
Built Distribution
File details
Details for the file pyechorobotics-0.0.1.tar.gz
.
File metadata
- Download URL: pyechorobotics-0.0.1.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f66463e53f0776a80a7750865265d7a6494cc2e5467dc416b67488987d34367 |
|
MD5 | 5d4fc82f345774f221d1c7ba64978ded |
|
BLAKE2b-256 | 43c07bdace574efe5b327296b2ebe97307cd57d03be62013b17b07c064cfac88 |
File details
Details for the file pyechorobotics-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyechorobotics-0.0.1-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eaa447cee9544b15269f316faa8a59f41faa4a74c3a42edc872e15e3bea7ce8 |
|
MD5 | b745c0aa4efd5bcade9ffbf6464d1d0f |
|
BLAKE2b-256 | fbc09e76bdde084445731c3ebaae9333f5e38559c7b6f4a89283985cd306d324 |