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

Uploaded Source

Built Distribution

watr-0.0.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: watr-0.0.5.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3

File hashes

Hashes for watr-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1792f138edd0e3375168126040581b11f328282cf15e6d29b7d4e7201896ce1f
MD5 cc22e9044d09efbac4486e819fbdbd60
BLAKE2b-256 d7cfc7e4a42a1d3f19d283e471a6ac6237a823e251102c1882c9d6b0d42e24fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: watr-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3

File hashes

Hashes for watr-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f2d6bc354c429e7532a8059ec4d0519eddffc7570c3ece4fc9d742e1b271395a
MD5 d26258ae2ec2fc7050179968ec6ab08d
BLAKE2b-256 6a927ad23c45efaa81762da45e0bacfc8d71d74197d6b889f810f3da036daf79

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