Skip to main content

A simple API for RainMachine sprinkler controllers

Project description

💧 Regenmaschine: A Simple Python Library for RainMachine™

https://travis-ci.org/bachya/regenmaschine.svg?branch=master https://img.shields.io/pypi/v/regenmaschine.svg https://img.shields.io/pypi/pyversions/Regenmaschine.svg https://img.shields.io/pypi/l/Regenmaschine.svg https://codecov.io/gh/bachya/regenmaschine/branch/master/graph/badge.svg https://img.shields.io/codeclimate/github/bachya/regenmaschine.svg https://img.shields.io/badge/SayThanks-!-1EAEDB.svg

Regenmaschine (German for “rain machine”) is a simple, clean, well-tested Python library for interacting with RainMachine™ smart sprinkler controllers. It gives developers an easy API to manage their controllers over a LAN or via RainMachine™’s cloud.

💧 Installation

$ pip install regenmaschine

💧 Example

import regenmaschine as rm

# Authenticate against the local device or the remote API:
auth = rm.Authenticator.create_local('192.168.1.100', 'MY_RM_PASSWORD')
auth = rm.Authenticator.create_remote('EMAIL_ADDRESS', 'MY_RM_PASSWORD')

# Create a client:
client = rm.Client(auth)

# Get information on all programs:
program_info = client.programs.all()

# Turn on program 1:
client.programs.start(1)

# Stop program 1:
client.programs.stop(1)

# Get information on all zones:
zone_info = client.zones.all()

# Turn on zone 3 for 5 minutes:
client.zones.start(3, 300)

💧 More Information

Full documentation for Regenmaschine can be found here: http://bachya.github.io/regenmaschine

💧 Contributing

  1. Check for open features/bugs or initiate a discussion on one.

  2. Fork the repository.

  3. Install the dev environment: make init.

  4. Enter the virtual environment: pipenv shell

  5. Code your new feature or bug fix.

  6. Write a test that covers your new functionality.

  7. Run tests: make test

  8. Build new docs: make docs

  9. Add yourself to AUTHORS.rst.

  10. Submit a pull request!

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

regenmaschine-0.3.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

regenmaschine-0.3.1-py2.py3-none-any.whl (14.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file regenmaschine-0.3.1.tar.gz.

File metadata

File hashes

Hashes for regenmaschine-0.3.1.tar.gz
Algorithm Hash digest
SHA256 1db346e79b2e2e6dffbae699a82fcf78b4ad9802393bdf8a2ccd6d9339b30128
MD5 5a672a47555bb0f99bc2d7d0d9de534b
BLAKE2b-256 9a5911f15be38ee63a3b2cba7c792d031b68936826377ab3fabeab8f46d148be

See more details on using hashes here.

File details

Details for the file regenmaschine-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for regenmaschine-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eceb8f4b762f3a17a581f9c8b1e578800eace0517f2fac50712a0836cb6a8197
MD5 5e0ef3e226bd83cf5c5e1947c0db4a23
BLAKE2b-256 a787b60f1932dcdaacc2af321d6a3e62031ca54af219bb0a704e9c23bbe3b4ab

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