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.3.3.tar.gz
.
File metadata
- Download URL: regenmaschine-0.3.3.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdf1d49d05acf10745066e900a90e3781ec879e6e31bc8aa491ed5b05562f4d5 |
|
MD5 | 33c5fc83bd5a5d42d209af136cc7ef4e |
|
BLAKE2b-256 | 915a8b10b48ffdff7c8a2d603793cd88541d1d605ce424e7e81912f78b140383 |
File details
Details for the file regenmaschine-0.3.3-py2.py3-none-any.whl
.
File metadata
- Download URL: regenmaschine-0.3.3-py2.py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bef879e6a44d4162526aea295e7562782c186921990f8b7612988c025d34a32 |
|
MD5 | 072e7d8ff0a8c3301016291f4b914a79 |
|
BLAKE2b-256 | 69c9c72d8f782405fc0c24e0762ae7b9186aec5840da6b68313fd75c64473e25 |