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.2.tar.gz
(15.5 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffb8bb97fb075b47630173b89e99a97387a2c888d69c92e7440244fae01207a8 |
|
MD5 | a8eebd3ff4de727916f69fa406168051 |
|
BLAKE2b-256 | 39729d7dca34001f4a4807485c0af8b85a1cdda1bc24793dc23e5ac16abbf916 |
File details
Details for the file pyechorobotics-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyechorobotics-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28be6a92d343e639501597ff65e9ae62e6dec25631d01ff6ccee1b225ffcd89f |
|
MD5 | 315bff7d6f068770f56abccfeb557ad0 |
|
BLAKE2b-256 | aa02080b74dba0edc914abd3d075cf1a0899337a2ad9cccca68c54fd5a97ec1f |