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.8.tar.gz (6.2 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.8-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file greenworks-0.0.2.8.tar.gz.

File metadata

  • Download URL: greenworks-0.0.2.8.tar.gz
  • Upload date:
  • Size: 6.2 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.8.tar.gz
Algorithm Hash digest
SHA256 667a0ade6dcbfcb32f83bf4ac7d5c8fab48565b7f1f7dae00511b73309abaa7e
MD5 5a18993271b9a3b0e52767a18fbbc052
BLAKE2b-256 dc5deff08187fcc2eb8ceb9019b358e175810b38899425c21b65b2766d25115e

See more details on using hashes here.

Provenance

The following attestation bundles were made for greenworks-0.0.2.8.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.8-py3-none-any.whl.

File metadata

  • Download URL: greenworks-0.0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 890e92a88cc333abc79458e09d761aa4b4afa94c64c6e60e72b645597cfd9c5b
MD5 a69cd737624880d588584a7141934a6b
BLAKE2b-256 d8c7d179e5007e0b0880d628cd29a2cf7d0b42e0f47069e60f22820c1d2f24f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for greenworks-0.0.2.8-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