Simple automated irrigating system for your Pi
https://github.com/odeckmyn/pijardin
This software needs some cheap hardware (Pi, Arduino, relay board, spkinklers), and is built on top of free software (mostly Python 3.x)
- A Raspberry Pi (tested on a 2 B+)
- Any micro SD card
- An Arduino Nano board (ATmega328)
- Relay board
Download 'Raspbian Jessie Lite' from official website and burn SD card.
Boot
$ sudo raspi-config
- Adjust keyboard
- Activate SSH server
Then :
$ sudo apt-get update
$ sudo apt-get dist-upgrade
$ sudo vi /etc/wp /etc/wpa_supplicant/wpa_supplicant.conf
country=FR
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="<my wifi SSID>"
psk="<my password>"
}
And then :
$ sudo reboot
Reach http://arduino.cc and install latest Arduino IDE (1.8.x today)
From Arduino IDE, add/install "CmdMessenger" library.
Then :
PAS ENCORE AU POINT
cd ~/Downloads/arduino-1.8.3/libraries
ln -s ~/Arduino/libraries/CmdMessenger .
Connect to your Pi via SSH, using user pi
:
ssh pi@<myipaddress>
Stock password is raspberry
. We strongly advice to change it and install and ssh key for login.
$ cd ~
$ sudo apt-get install git
$ git clone https://github.com/odeckmyn/pijardin.git
$ cd pijardin
$ make install
This will install all dependencies
$ source _venv3/bin/activate
$ cd
$ cd pijardin
$ source _venv/bin/activate
$ make update