An API wrapper for the Greenworks robotic lawn mower
Project description
GreenWorks-Core
GreenWorks-Core is a Python package that provides an API wrapper for the Greenworks robotic lawn mower, enabling you to authenticate, list devices, and retrieve mower status and properties.
Install
Install from PyPI (name subject to change if unpublished):
pip install GreenWorks
Quick start
from src.GreenWorksAPI.GreenWorksAPI import GreenWorksAPI
api = GreenWorksAPI("you@example.com", "your-password", "Europe/Copenhagen")
devices = api.get_devices()
for d in devices:
print(d.name, d.is_online, d.operating_status.mower_main_state)
Logging
This library uses the standard Python logging module with a module-level logger. No handlers are configured by default (a NullHandler is attached), so logs are propagated to the host application.
Home Assistant
Home Assistant captures Python logs. To enable debug logs for this library, add to your configuration.yaml:
logger:
default: warning
logs:
src.GreenWorksAPI: debug
You can also target a single module:
logger:
logs:
src.GreenWorksAPI.GreenWorksAPI: debug
Standalone scripts
import logging
logging.basicConfig(level=logging.INFO)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file greenworks-0.0.2.9.tar.gz.
File metadata
- Download URL: greenworks-0.0.2.9.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b04c40a2fc6c0378d4b9751d9141bc5c80db08e7b880961835b6ce3fa543ba9
|
|
| MD5 |
1a3b0a8f5d75bcdd570563b15958fa68
|
|
| BLAKE2b-256 |
d1caab94d3f4870006d4587ada7ed536f67f9a3edb48fae08c52883fc890535e
|
Provenance
The following attestation bundles were made for greenworks-0.0.2.9.tar.gz:
Publisher:
publish-to-test-pypi.yml on Boes24/GreenWorks-Core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
greenworks-0.0.2.9.tar.gz -
Subject digest:
6b04c40a2fc6c0378d4b9751d9141bc5c80db08e7b880961835b6ce3fa543ba9 - Sigstore transparency entry: 377374810
- Sigstore integration time:
-
Permalink:
Boes24/GreenWorks-Core@f632c9c6e328fbfafc05b4063fdb0188f9edcbb4 -
Branch / Tag:
refs/tags/v0.0.2.9 - Owner: https://github.com/Boes24
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@f632c9c6e328fbfafc05b4063fdb0188f9edcbb4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file greenworks-0.0.2.9-py3-none-any.whl.
File metadata
- Download URL: greenworks-0.0.2.9-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc76d6f2552e0f6a778998dc499d1b9552f9d01aa4c785c903a88403adeb8a84
|
|
| MD5 |
f6caab870185359bfa00125367f6119d
|
|
| BLAKE2b-256 |
02fb27b7676794d3cbbadd0a4cdd27af4f40e63f16ada679d6734d94d702f9f0
|
Provenance
The following attestation bundles were made for greenworks-0.0.2.9-py3-none-any.whl:
Publisher:
publish-to-test-pypi.yml on Boes24/GreenWorks-Core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
greenworks-0.0.2.9-py3-none-any.whl -
Subject digest:
dc76d6f2552e0f6a778998dc499d1b9552f9d01aa4c785c903a88403adeb8a84 - Sigstore transparency entry: 377374830
- Sigstore integration time:
-
Permalink:
Boes24/GreenWorks-Core@f632c9c6e328fbfafc05b4063fdb0188f9edcbb4 -
Branch / Tag:
refs/tags/v0.0.2.9 - Owner: https://github.com/Boes24
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@f632c9c6e328fbfafc05b4063fdb0188f9edcbb4 -
Trigger Event:
push
-
Statement type: