Skip to content
Nick Horvath edited this page Mar 24, 2019 · 23 revisions

Installation of the Sprinklers Pi software on the Raspberry Pi is very simple. Start with these steps:

  1. Start with a generally clean instance of Raspberry Pi Raspbian installation. If you have software already installed, please note that the Sprinklers Pi software defaults binding to port 8080 on startup, so make sure that port is clear.
  2. You will need the WiringPi module. Details are here: http://wiringpi.com/download-and-install/
  3. Install the sqlite3 library (technically this step is optional, but why not do it anyway?) and the appropriate build tools:
    sudo apt-get install libsqlite3-dev build-essential
  4. Download the latest source tarball:
    wget https://github.com/rszimm/sprinklers_pi/archive/v#.#.#.tar.gz Where #.#.# is the latest version here: https://github.com/rszimm/sprinklers_pi/releases/latest
  5. Unpack the source tarball:
    tar -xzvf v#.#.#.tar.gz
  6. If you wish to use weather adjustments uncomment a weather provider in config.h See the main Readme for supported providers.
  7. Build and install the module:
cd sprinklers_pi-#.#.#
make
sudo make install

You're done! You can either reboot the raspberry pi or just run the following to start it without a reboot:
sudo /etc/init.d/sprinklers_pi start

You should be able to browse to the home page at raspberrypi1:8080 (assuming your machine name is 'raspberrypi1'). If you can't see your home page, try rebooting. If that does not work, check the log file. File-locations#log-files

Proceed to Configuration to aid you in configuring your Sprinklers Pi software

Clone this wiki locally