RainMachine REST API Python implementation

From RainMachine wiki page
Jump to: navigation, search

Contents

RainMachine REST API Python implementation

Downloading

If you want to develop python applications to control RainMachine, we are providing a python API here

git clone https://github.com/sprinkler/rainmachine-developer-resources.git

Documentation for REST API is available | here

Using

from API4Client.rmAPIClient import *

client = RMAPIClient(host="127.0.0.1", port="18080")
# client.auth.login('admin', True) # localhost access doesn't require authentication
print client.zones.get()
print client.programs.get()

Available functions

Functions are documented | here