Python API for interacting with Hydrawise sprinkler controllers.
Project description
Pydrawise
Pydrawise is an asynchronous Python 3 library for interacting with Hydrawise sprinkler controllers.
Note that this project has no official relationship with Hydrawise or Hunter. Use at your own risk.
Usage
import asyncio
from pydrawise import Auth, Hydrawise
async def main():
# Create a Hydrawise object and authenticate with your credentials.
h = Hydrawise(Auth("username", "password"))
# List the controllers attached to your account.
controllers = await h.get_controllers()
# List the zones controlled by the first controller.
zones = await h.get_zones(controllers[0])
# Start the first zone.
await h.start_zone(zones[0])
if __name__ == "__main__":
asyncio.run(main())
Installation
Pip
To install pydrawse, run this command in your terminal:
$ pip install pydrawise
Source code
Pydrawise is actively developed on Github, where the code is always available.
You can either clone the public repository:
$ git clone https://github.com/dknowles2/pydrawise
Or download the latest tarball:
$ curl -OL https://github.com/dknowles2/pydrawise/tarball/main
Once you have a copy of the source, you can embed it in your own Python package, or install it into your site-packages easily:
$ cd pydrawise
$ python -m pip install .
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
File details
Details for the file pydrawise-2023.5.2.tar.gz
.
File metadata
- Download URL: pydrawise-2023.5.2.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a59034dd6f3b7308f538a4a5505538435b4194d24c8e0854923fc7e7d53cbb8 |
|
MD5 | 0547584c6c113ce97932448551843a27 |
|
BLAKE2b-256 | 2f8ca199c0af4ce6def8c3691cfe1a3921c85d29877c9d2730c0b0799074723b |
File details
Details for the file pydrawise-2023.5.2-py3-none-any.whl
.
File metadata
- Download URL: pydrawise-2023.5.2-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e7d2d1070b008cdf9b53ac5f838ada22600844c644f15bf4dd1314ba6792ec |
|
MD5 | da358d3af26f534517c14a31b8467625 |
|
BLAKE2b-256 | fcb925d3def9144b83cda6ef4d73dba000c7adea27b77e533828f90414ff64f2 |