Skip to main content

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 aiohttp
from pyrainbird import async_client

async with aiohttp.ClientSession() as client:
    controller: 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:
        if zone in states.active_set:
            print("Sprinkler zone {zone} is active")

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrainbird-6.0.2.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

pyrainbird-6.0.2-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file pyrainbird-6.0.2.tar.gz.

File metadata

  • Download URL: pyrainbird-6.0.2.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyrainbird-6.0.2.tar.gz
Algorithm Hash digest
SHA256 813558ad325220097350f907280973a87a2746615cb1ec9557c6aa32be008b09
MD5 89c8e6936e4b0c1c35e561dc771e8e63
BLAKE2b-256 e3c6162a04b3f8746845f44ff236ca886db23c08f515c30c81f30e9fedda1b2c

See more details on using hashes here.

File details

Details for the file pyrainbird-6.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyrainbird-6.0.2-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyrainbird-6.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6286b3833c1f7b34a56a2d1a266adb8ae7809caed7c08bdcaa63ec1088009f2d
MD5 feb6a9102fe32b1a72a6b3314661a042
BLAKE2b-256 52a0252914ecbd8563660deaf66bda82cc71443ddf846de5fb2fb3883844d1a2

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