A python library to control a Watr system
Project description
Watr Python
A python library for the Watr API.
Installation
pip3 install watr
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()
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.1.tar.gz
(6.7 kB
view details)
Built Distribution
watr-0.0.1-py3-none-any.whl
(8.2 kB
view details)
File details
Details for the file watr-0.0.1.tar.gz
.
File metadata
- Download URL: watr-0.0.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7fca0e3fd640c7c0ae7f67e813391d37a0828b842e10c768f1c576339a9c7c5 |
|
MD5 | 5646f9cd9a5bef262342e205dce87ad4 |
|
BLAKE2b-256 | 33ce8c97bbc5a30b0c04a0ac3d1e9d407f6b795d7cf002145cff8b69a5b847c2 |
File details
Details for the file watr-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: watr-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1077496868301907ebead6bd396083a776cf489c030066ee750762d1b2edde4a |
|
MD5 | 046a4135ba994a73f08dde6f21d0953b |
|
BLAKE2b-256 | 81a169a0ee104abcfc30e869edca420e8c64bcf62ca75a5d45f37d45a5397731 |