Rain Bird Controller
Project description
Python module for interacting with WiFi LNK module of the Rain Bird Irrigation system. This project has no affiliation with Rain Bird.
This module communicates directly towards the IP Address of the WiFi module. You can start/stop the irrigation, get the currently active zone, and other controller settings. This library currently only has very limited cloud support. Also there are a number of Rain Bird devices with very different command APIs.
See documentation for full quickstart and API reference. See the github project.
Quickstart
This is an example usage to get the current irrigation state for all available irrigation zones:
import asyncio
import aiohttp
from pyrainbird import async_client
async def main() -> None:
async with aiohttp.ClientSession() as client:
controller: async_client.AsyncRainbirdController = async_client.CreateController(
client,
"192.168.1.1",
"password"
)
zones = await controller.get_available_stations()
states = await controller.get_zone_states()
for zone in zones.active_set:
print(f"Sprinkler zone {zone}: {"active" if zone in states.active_set else "inactive"}")
asyncio.run(main())
See examples for additional details on how to use the APIs and an example command line tool for querying the device.
Compatibility
This library has been tested with the following devices:
- ESP-TM2
You are welcome to file an issue for improved compatibility with your device especially if you include debug logs that capture the API responses form the device.
See CONTRIBUTING for details on developing in the library itself, such as running the tests and other tooling used in development.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrainbird-6.0.5.tar.gz.
File metadata
- Download URL: pyrainbird-6.0.5.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fe0c114d24dcd6e42c8257c88769a8bda10f21c780d2366e24b17ef21b68725
|
|
| MD5 |
87faa2e22cae88cb33c5cbcad3a42dd2
|
|
| BLAKE2b-256 |
315e61552f4cfa108faa844e01b252d621f7bc81c46d1c9f7f12d77b42075a3a
|
Provenance
The following attestation bundles were made for pyrainbird-6.0.5.tar.gz:
Publisher:
publish.yaml on allenporter/pyrainbird
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyrainbird-6.0.5.tar.gz -
Subject digest:
2fe0c114d24dcd6e42c8257c88769a8bda10f21c780d2366e24b17ef21b68725 - Sigstore transparency entry: 962238914
- Sigstore integration time:
-
Permalink:
allenporter/pyrainbird@0b746ac03167e9f9996dadb3a9375a3c1069f78b -
Branch / Tag:
refs/tags/6.0.5 - Owner: https://github.com/allenporter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@0b746ac03167e9f9996dadb3a9375a3c1069f78b -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyrainbird-6.0.5-py3-none-any.whl.
File metadata
- Download URL: pyrainbird-6.0.5-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aba433110db98703be14506c4f1e60f92651dfb74dd1e69e64fb8c26ea523969
|
|
| MD5 |
0ce53b8e9c4da140315f3129e9efc635
|
|
| BLAKE2b-256 |
5d38693a9fe18752fe97c18b6348c5b54dc62ed84c18821c3d4ee0aef358c8f3
|
Provenance
The following attestation bundles were made for pyrainbird-6.0.5-py3-none-any.whl:
Publisher:
publish.yaml on allenporter/pyrainbird
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyrainbird-6.0.5-py3-none-any.whl -
Subject digest:
aba433110db98703be14506c4f1e60f92651dfb74dd1e69e64fb8c26ea523969 - Sigstore transparency entry: 962238917
- Sigstore integration time:
-
Permalink:
allenporter/pyrainbird@0b746ac03167e9f9996dadb3a9375a3c1069f78b -
Branch / Tag:
refs/tags/6.0.5 - Owner: https://github.com/allenporter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@0b746ac03167e9f9996dadb3a9375a3c1069f78b -
Trigger Event:
release
-
Statement type: