A simple API for RainMachine sprinkler controllers
Project description
💧 Regenmaschine: A Simple Python Library for RainMachine™
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
Check for open features/bugs or initiate a discussion on one.
Install the dev environment:
make init
.Enter the virtual environment:
pipenv shell
Code your new feature or bug fix.
Write a test that covers your new functionality.
Run tests:
make test
Build new docs:
make docs
Add yourself to AUTHORS.rst.
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
Built Distribution
File details
Details for the file regenmaschine-0.2.12.tar.gz
.
File metadata
- Download URL: regenmaschine-0.2.12.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3376d94be29cf313b8bdf3e9d77d7fb561798b0113de6fa567497aff4be5c660 |
|
MD5 | c2e36207ba032fb04a081214e03e4805 |
|
BLAKE2b-256 | 04907aea8b7bdab2f94332a2c410ba46571f1409859e151e3722f30d52f1eb94 |
File details
Details for the file regenmaschine-0.2.12-py2.py3-none-any.whl
.
File metadata
- Download URL: regenmaschine-0.2.12-py2.py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1376510b30be5b64c96f3c2877cc2ccb73ada3d605b61ef5f71ca04e2556a52 |
|
MD5 | 243af722fcd04593b966d8431a2d9216 |
|
BLAKE2b-256 | 25688f4c02c5f11ab18e5b58a5ece748b0b652f1106e68b7c898fbf532400abc |