skip to navigation
skip to content

Not Logged In

OpenSprinklerLib 0.1.0

OpenSprinkler Library

Open Sprinkler Lib
==================
Open Sprinkler Lib provides an api for the RPi and Beagle Bone versions of the Open Sprinkler Project.

Features
-----------------
* Auto detects supported hardware platforms.
* RPi
* Beagle Bone (Needs testing)
* Mocks OpenSprinkler Hardware if no supported hardware platform detected for developing code on any computer.
* json config
* Support for per station master stations.

Todo
-----------------
* Add support for Rain Sensor

Configuration json format
-----------------
>stations: array
>>sid: int - Station ID (starts at 1)
>>name: str - Human readable name of station
>>description: str - Human readable description of station
>>type: str - acceptable values are "zone" and "master"
>>master: int - optional sid of master station, only required if zone has a master station.

Example Usage
-----------------
#!/usr/bin/env python
from opensprinklerlib import OpenSprinkler
controller = OpenSprinkler()
controller.load_config(open("config.json").read())
controller.enable_station(1)  
File Type Py Version Uploaded on Size
OpenSprinklerLib-0.1.0.tar.gz (md5) Source 2014-08-20 5KB
  • Downloads (All Versions):
  • 4 downloads in the last day
  • 28 downloads in the last week
  • 90 downloads in the last month