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():
h = Hydrawise(Auth("username", "password"))
controllers = await h.get_controllers()
zones = await h.get_zones(controllers[0])
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 .