Skip to main content

MPython module to talk to Husqvarna Automower.

Project description

Aioautomower

codecov Python Versions License

Asynchronous library to communicate with the Automower Connect API To use this library, you need to register on the Husqvarna Developers Portal. And connect your account to the Authentication API and the Automower Connect API.

Quickstart

In order to use the library, you'll need to do some work yourself to get authentication credentials. This depends a lot on the context (e.g. redirecting to use OAuth via web) but should be easy to incorporate using Husqvarna's authentication examples. See Husqvarna's Authentication API for details.

You will implement AbstractAuth to provide an access token. Your implementation will handle any necessary refreshes. You can invoke the service with your auth implementation to access the API.

You need at least:

For a first start you can run the example.py, by doing the following steps

  • git clone https://github.com/Thomas55555/aioautomower.git
  • cd aioautomower
  • poetry install
  • Enter your personal client_id and client_secret in the _secrets.yaml and rename it to secrets.yaml
  • Run with poetry run ./example.py

Contributing

This is an active open-source project. We are always open to people who want to use the code or contribute to it. This Python project is fully managed using the Poetry dependency manager.

As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:

poetry run pre-commit run --all-files

To run just the Python tests:

poetry run pytest

To update snapshots:

poetry run pytest --snapshot-update

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

aioautomower-2024.6.4.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

aioautomower-2024.6.4-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file aioautomower-2024.6.4.tar.gz.

File metadata

  • Download URL: aioautomower-2024.6.4.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for aioautomower-2024.6.4.tar.gz
Algorithm Hash digest
SHA256 c1939a407b69aec33d162d8f97c30e6b1c2528e28c6b3c1861a067aea0246c75
MD5 8bc354677eb50e702bf39fc34e645188
BLAKE2b-256 2572a1c1a91bc2e3a0f9cb91a6d97ae22148540a882ed5f3496e6a5c9314e6fd

See more details on using hashes here.

File details

Details for the file aioautomower-2024.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for aioautomower-2024.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7fa5c9cb3e826c00dede80bddcaa1b573c02a5c2ce910fe936c59e97517f14c4
MD5 a7c2302d03ffd8c84a21bac1c0a3eef0
BLAKE2b-256 3441346a3f8ad7a9ef8105f4ba8feee880bdce1bc9ef3a18ce2dc352bf12febc

See more details on using hashes here.

Supported by

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