Skip to main content

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


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.4.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

pydrawise-2023.1.4-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file pydrawise-2023.1.4.tar.gz.

File metadata

  • Download URL: pydrawise-2023.1.4.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pydrawise-2023.1.4.tar.gz
Algorithm Hash digest
SHA256 05eafcd99e3a1c788c1cd4e21585f5413ac8f17ddaf5e2f51c9f6e01752a5715
MD5 e33ff44a880f3b6e6877beb4d47a32d5
BLAKE2b-256 e37417f53ba20dca8cd24b1b7d5ef2a1a62d7cd31e7ecec5f41439f0330d5948

See more details on using hashes here.

File details

Details for the file pydrawise-2023.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pydrawise-2023.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ee969c6793b29b0d979064d519d3c411ab1ea3eeda1adf2931ababac976101be
MD5 5777bfd519a20f3f70fe0d5544ec9966
BLAKE2b-256 c42f67e616f4cb1f9439fc0147d825f4f3fdffa7b559ede5ff37c38e3dce1de1

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