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.2.tar.gz
(6.9 kB
view details)
Built Distribution
watr-0.0.2-py3-none-any.whl
(8.5 kB
view details)
File details
Details for the file watr-0.0.2.tar.gz
.
File metadata
- Download URL: watr-0.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3226c983ed850738cb45cd17afeaa51d8cec12c68498aae29659962f32a23548 |
|
MD5 | 0f8f56231406dc0bd9c77fe2ba9788b7 |
|
BLAKE2b-256 | 7bf23d144704ff99085e564b9becc5f8ba23d1bb03934d01100cbc49084a0c71 |
File details
Details for the file watr-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: watr-0.0.2-py3-none-any.whl
- Upload date:
- Size: 8.5 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 | 2344c67703da91052a54d3024f1179aeb45261e89636fcacbc5203d4903490b6 |
|
MD5 | 986e501d078c3f69a269c8bf62be7e70 |
|
BLAKE2b-256 | 53d14573cfe21d40a176e58f5d908dc5957d03524b7416d0346e54abbce03609 |