Landroid cloud API library
Project description
pyWorxCloud
This is a PyPI module for communicating with Worx Cloud mowers, primarily developed for use with Home Assistant, but I try to keep it as wide usable as possible.
The module are compatible with cloud enabled devices from these vendors:
- Worx Landroid
- LandXcape
- Kress
This is using and undocumented API, so do not expect everything to work.
The module will be enhanced with more functionality as the API gets mapped out - any help will be much appreciated.
Available calls
Call | Description | Parameters |
---|---|---|
initialize | Initialize the API connection and authenticate the user credentials | |
connect | Connect to a device | index: int, verify_ssl: bool |
set_callback | If set, the module will call this function when data is received from the API | callback |
enumerate | Returns the number of devices associated with the account | |
send | Send custom data to the API | data: str (JSON string!) |
update | Retrieve current status from API | |
start | Start mowing routine | |
pause | Pause mowing | |
home | Stop (and go home) | |
zonetraining | Start zonetraining | |
lock | Toggle device lock | |
restart | Reboot baseboard OS | |
raindelay | Set new rain delay | rain_delay: str or int |
toggle_schedule | Toggle schedule on or off | |
toggle_partymode | Toggle party mode if supported by device | |
ots | Start OTS | boundary: bool, runtime: str or int |
setzone | Set next zone to mow | zone: str or int |
Connection example
from pyworxcloud import WorxCloud
from pprint import pprint
cloud = WorxCloud("your@email", "password", "worx")
# Initialize connection
auth = cloud.authenticate()
if not auth:
# If invalid credentials are used, or something happend during
# authorize, then exit
exit(0)
# Connect to device with index 0 (devices are enumerated 0, 1, 2 ...) and do
# not verify SSL (False)
cloud.connect(0, False)
# Read latest states received from the device
cloud.update()
# Print all vars and attributes of the cloud object
pprint(vars(cloud))
or like this:
from pyworxcloud import WorxCloud
from pprint import pprint
if __name__ == '__main__':
with WorxCloud("your@email","password","worx", 0, False) as cloud:
pprint(vars(cloud))
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
pyworxcloud-2.0.6.tar.gz
(23.9 kB
view details)
Built Distribution
File details
Details for the file pyworxcloud-2.0.6.tar.gz
.
File metadata
- Download URL: pyworxcloud-2.0.6.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b7820f12e41fb277e042fa8cceed5f4e58fe66117ebcac6fedc52833c973c4e |
|
MD5 | 7b46c76e21ffdfc5bd6578393640159b |
|
BLAKE2b-256 | 36d2dabf0b7135a4dbc654c1f92fcfecbd698a43c041b1eaac510dc26a845e5e |
File details
Details for the file pyworxcloud-2.0.6-py3-none-any.whl
.
File metadata
- Download URL: pyworxcloud-2.0.6-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bebd10d80ec9d9316bf342cef2a42b32706eb77ba9bbc27999ba5d0c245a0d8 |
|
MD5 | d7592d45e638093d6a03bb52d73811e9 |
|
BLAKE2b-256 | 610a1a3e5c81329ba662d0e755d7aec6735daaa20ebea0ad24203411f7af95aa |