RainMachine REST API Python implementation

From RainMachine wiki page
Jump to: navigation, search


RainMachine REST API Python implementation


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


from API4Client.rmAPIClient import *

client = RMAPIClient(host="", 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