OpenSprinkler Library
Project description
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)
==================
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)
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
File details
Details for the file OpenSprinklerLib-0.1.0.tar.gz.
File metadata
- Download URL: OpenSprinklerLib-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d04223a4a39a41cda815318f8869bb657dd1184486669b964845ef008cd628ae
|
|
| MD5 |
a76d70720358fbc7178fde8e80c5965b
|
|
| BLAKE2b-256 |
234785c8de4b930fa2c946e6eabdb922beaed78f4c20f1999026d3d3e17cb147
|