Skip to main content

A python library to control a Watr system

Project description

Watr Python 1.0.0

A python library for the Watr API.

Installation

pip3 install watr

Requirements

  • Python 3.6+

Usage

from watr import WatrApi

# some await things here...
watrApi = WatrApi("your@email.com", "yourpassword123")
# or if you have tokens already
watrApi = WatrApi(access_token="youraccesstoken", refresh_token="yourrefreshtoken")
watrSystem = WatrSystem({}, watrApi)
sprinkler_systems = watrSystem.get_systems()
home_system = sprinkler_systems[0]
if home_system.enabled():
    sprinkler_systems[0].toggle()
sprinkler_systems[0].zones[0].toggle()

Documentation

More indepth documentation is available at https://watr.peasenet.com/docs/python

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

watr-0.0.4.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

watr-0.0.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file watr-0.0.4.tar.gz.

File metadata

  • Download URL: watr-0.0.4.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for watr-0.0.4.tar.gz
Algorithm Hash digest
SHA256 410e97d1fc1d1a7ab20ed356ebb9cef906ca94a297f5809d3438fd82572710b3
MD5 2ffc927934f6a930a33439db5350c358
BLAKE2b-256 e63f414b9c7e13542e44948621d2766e736907587ac92be095aa4c72542837eb

See more details on using hashes here.

File details

Details for the file watr-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: watr-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for watr-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2104c2cb13352ee5c0c6dce643ee089e40c75ff54ee7940ae8650a2845e992dc
MD5 a4378647a505e2c69123ae96004f80dd
BLAKE2b-256 0e1fb05f35a20dbc286d13a788e6463358bd7460e38be642359057f56d590312

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