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.6.tar.gz
(7.1 kB
view details)
Built Distribution
watr-0.0.6-py3-none-any.whl
(8.9 kB
view details)
File details
Details for the file watr-0.0.6.tar.gz
.
File metadata
- Download URL: watr-0.0.6.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65f240c491fb7e1a3a5d46d06d4c7aa7deff5933c8972390e0cdaf7bcf296fe5 |
|
MD5 | b3107dfe23788a1c429d19eee729f2e4 |
|
BLAKE2b-256 | 8993066fdfaa7857038866c9fb22a8b9ee33ffdef280bc464a1586b21f4242e6 |
File details
Details for the file watr-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: watr-0.0.6-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 068dc1cc3d848cc964b5882116dc3e0c374c9ebb0e82dd3ee2458a8569aec04c |
|
MD5 | 1ff747ef0fd7ce3bed57e99d9eb824dd |
|
BLAKE2b-256 | ce61b906e34850461bd5ea511b8a3febf3f98647a65d862b1ddad825633a03bb |