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.2.tar.gz
(11.2 kB
view details)
Built Distribution
File details
Details for the file pydrawise-2023.1.2.tar.gz
.
File metadata
- Download URL: pydrawise-2023.1.2.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0fa4cf42db7d81c9f886d43d710a8579ee3c5f665134b8e3c1a7c74ca356fb8 |
|
MD5 | ad2a90377262f77e672a3ce046547780 |
|
BLAKE2b-256 | 8681bf2429dd9fd15462a4d135c2df215e3b62e09dde4c850322cb8c08307e3f |
File details
Details for the file pydrawise-2023.1.2-py3-none-any.whl
.
File metadata
- Download URL: pydrawise-2023.1.2-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f737e49daddec7b6cb0d2f7867994b68fa1b2fa387f28f9d8ac075be250bb37e |
|
MD5 | ee9fd58fae0a71841d6a50a819c017c6 |
|
BLAKE2b-256 | 3f83551969eb85c8b05017e2b59450de86f7a9a220de85b3c2007f255b332947 |