Python API for interacting with Hydrawise sprinkler controllers.
Project description
pydrawise
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 controllers[0].get_zones()
# Start the first zone.
await zones[0].start()
if __name__ == "__main__":
asyncio.run(main())
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
pydrawise-2023.1.1.tar.gz
(11.0 kB
view details)
Built Distribution
File details
Details for the file pydrawise-2023.1.1.tar.gz
.
File metadata
- Download URL: pydrawise-2023.1.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d58ee1b1cbf7c3af119c1fea7ab3d1d0bf5aaa38d350d1bf77641edb2dcdbb23 |
|
MD5 | efcf36d5f6916fc63caa11cc7413ad26 |
|
BLAKE2b-256 | 612bb22236e0ae1ab19d935f55b202781b57ca5ed0eb4f321398ceadae0ac36d |
File details
Details for the file pydrawise-2023.1.1-py3-none-any.whl
.
File metadata
- Download URL: pydrawise-2023.1.1-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c641d69fd74da7643b806efdc24e92e2fa63522a7bc3031eef7960f16f3e5e56 |
|
MD5 | 86ee462e81ad1c26bd6a0bf1c0ffbe55 |
|
BLAKE2b-256 | 942a6522f6393e57594679cde70138bcd8545860d75b02f68f359121f739cfb9 |