Bash script to manage an irrigation system built with a Raspberry Pi
Documentation of piGarden and build system irrigation with Raspberry Pi can be found on the www.lejubila.net/pigarden/
This script is open-sourced software under GNU GENERAL PUBLIC LICENSE Version 2
- Installs the necessary packages on your terminal:
sudo apt-get install git curl gzip grep sed ucspi-tcp
- Compile and install Jq (commandline JSON processor):
cd
sudo apt-get install flex -y
sudo apt-get install bison -y
sudo apt-get install gcc -y
sudo apt-get install make -y
sudo apt-get install libtool autoconf automake gettext autotools-dev -y
sudo apt-get install dh-autoreconf -y
wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-1.5.tar.gz
tar xfvz jq-1.5.tar.gz
cd jq-1.5
autoreconf -i
./configure --disable-maintainer-mode
make
sudo make install
- Compile and install gpio program from WiringPi package:
cd
git clone https://github.com/WiringPi/WiringPi.git
cd WiringPi
git pull origin
./build
- Download and install piGarden in your home
cd
git clone https://github.com/lejubila/piGarden.git
Copy configuration file in /etc
cd
sudo cp piGarden/conf/piGarden.conf.example /etc/piGarden.conf
Customize the configuration file. For more information see www.lejubila.net/2015/12/impianto-di-irrigazione-con-raspberry-pi-pigarden-lo-script-di-gestione-quinta-parte/