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.3.tar.gz
(15.5 kB
view details)
Built Distribution
File details
Details for the file pyechorobotics-0.0.3.tar.gz
.
File metadata
- Download URL: pyechorobotics-0.0.3.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 | ed050555c3d5cd9818dd98211c4e5eb51a132c5096f6a7fb94b2240b076aca82 |
|
MD5 | 7cd9e11ec585db06551c0e2cb89ecca5 |
|
BLAKE2b-256 | 5a1f8dafd0e463341fcdfda43c0842e4dc60128a26deb7bf1fbf5a9444938489 |
File details
Details for the file pyechorobotics-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pyechorobotics-0.0.3-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 | 1a5207e2367a3873fadcde6caa7fba693e3bf7574818a4962fdd4d78d5b6852a |
|
MD5 | cf68d1f817cc011353c41d8ff2a8a700 |
|
BLAKE2b-256 | f5655a96753e5215668c9cb6cb9b51d4bb2bc3bcbce55c7f8020c03f114f9e61 |