Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

greenworks-0.0.2.9.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

greenworks-0.0.2.9-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

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

Hashes for greenworks-0.0.2.9.tar.gz
Algorithm Hash digest
SHA256 6b04c40a2fc6c0378d4b9751d9141bc5c80db08e7b880961835b6ce3fa543ba9
MD5 1a3b0a8f5d75bcdd570563b15958fa68
BLAKE2b-256 d1caab94d3f4870006d4587ada7ed536f67f9a3edb48fae08c52883fc890535e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for greenworks-0.0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 dc76d6f2552e0f6a778998dc499d1b9552f9d01aa4c785c903a88403adeb8a84
MD5 f6caab870185359bfa00125367f6119d
BLAKE2b-256 02fb27b7676794d3cbbadd0a4cdd27af4f40e63f16ada679d6734d94d702f9f0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page