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

Uploaded Source

Built Distribution

watr-0.0.3-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: watr-0.0.3.tar.gz
  • Upload date:
  • Size: 6.9 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.3.tar.gz
Algorithm Hash digest
SHA256 554d6715be9125c52d99f31428bd645d5a51f6990a70b226ce90513eab64832b
MD5 95e0cb8a3a177929b948b3bead0ccfa4
BLAKE2b-256 a7a9b421e8e4230987054c1cd250b9cf5a34edfa285298010451fc151a980a7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: watr-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0e876788cc4c3c806b0353cd0137d709a09298264524fd1b754aa9d2c508cd7a
MD5 5db094edec9a7a8a8a1e534dd721eeec
BLAKE2b-256 f48b0cfdd3a92aac58cf568339227ab1dfed50d83252e0d6df5a66ae56669039

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