Skip to content
Sprinkling System Control Program for the Raspberry Pi
C++ HTML Shell JavaScript Makefile C Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts
web
.gitignore
Aeris.cpp
Aeris.h
CMakeLists.txt
DEV_WEATHER.md
DarkSky.cpp
DarkSky.h
Event.cpp
Event.h
LICENSE.md
Logging.cpp
Logging.h
Makefile
README.md
Weather.cpp
Weather.h
Wunderground.cpp
Wunderground.h
config.h
core.cpp
core.h
json.hpp
port.cpp
port.h
settings.cpp
settings.h
sprinklers_init.d.sh
sprinklers_pi.cpp
sprinklers_pi.logrotate
sysreset.cpp
sysreset.h
version.txt
web.cpp
web.h

README.md

sprinklers_pi

Sprinklers Pi is a sophisticated Irrigation control system for the Raspberry Pi. The system contains a built in mobile web page server that can be used to configure and monitor the system status from anywhere. It can also be cross compiled on an AVR/Arduino platform with appropriate networking and storage hardware.

Major Features

  • Fully contained system with control logic and web serving.
  • Same code can be compiled to run on the Atmel/AVR/Arduino platform.
  • Web based control (including mobile Android iOS)
  • Automatic adjustment of intervals based on weather conditions. (weather underground API)
  • Weather conditions can be pulled from individual personal weather stations or from general weather data based on zipcode.
  • Manual Control
  • Scheduled Control
  • Quick Schedule
  • Named Zones
  • Full Graphing feature of historic logs
  • Ability to run with OpenSprinkler module, direct relay outputs or an external script.
  • Supports master valve/pump output
  • Supports expansion zone board (up to 15 zones)
  • Very simple installation
  • Seasonal adjustment.

Weather Setup

By default, we now ship with no weather provider enabled, and therefore no adjustment performed. Follow the directions below to enable a weather provider. If you change weather providers be sure to run "make clean" before rebuilding.

DarkSky Weather

Uncomment #define WEATHER_DARKSKY in config.h before building.

DarkSky is currently unsupported on Arduino/AVR Platforms due to a dependence on curl and a JSON library that is currently untested on Arduino.

Once you have built and started the server fill out the API Secret Key in the Settings page (API Id is unused). Your Secret can be found here: https://darksky.net/dev (account required, free). Location must be (without the quotes):

  • GPS Latitude,Longitude (eg. "40.749748,-73.991618")

Aeris Weather

Uncomment #define WEATHER_AERIS in config.h before building.

Once you have built and started the server fill out the API Id, API Secret, and Location in the Settings page. Your API Id and Secret can be found here: https://www.aerisweather.com/account/apps (account required, free, must be renewed every 2 months). Location can be any of the following:

  • GPS Latitude,Longitude (eg. "40.749748,-73.991618")
  • City, State (eg. "New York, NY")
  • City, Country (eg. "London, United Kingdom")
  • ZIP Code (eg. 10001)

Wunderground

Wunderground setup requires you to have previously created an API Key, and for them to have not shut it down yet (As of 2019/03/15 it's no longer working for me).

Uncomment #define WEATHER_WUNDERGROUND in config.h before building.

Testing Weather Data

You can click on Advanced -> Weather Provider Diagnostics to verify your setup is working.

See the wiki for more information: https://github.com/rszimm/sprinklers_pi/wiki/Weather-adjustments

Building

make
sudo make install

NOTE: If you are running an older version of g++ compiler you may see the error unrecognized command line option '-std=c++11'. You should either update to g++ version 4.8+, or if you are not using DarkSky as a weather provider, you can remove -std=c++11 at the end of line 8 in the Makefile. You can see what version of g++ you have by running g++ --version.

Running

sudo /etc/init.d/sprinklers_pi start

See the wiki for more information: https://github.com/rszimm/sprinklers_pi/wiki

Live Demo

A live demo site is available here: http://kilby.kewlshells.com:8080/ Please keep it clean.

You can’t perform that action at this time.