Skip to content

Plant watering system controlled by Arduino and Python

Notifications You must be signed in to change notification settings

jklang/waterino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

waterino

Plant watering system controlled by Arduino and monitored using RPi, python, Influxdb and Grafana.

There's support for soil moisture, water tank level, air humidity, temperature and light. If you just want the soil moisture and tank level sensors you can go ahead and skip the other ones. If you don't want fancy graphs at all you can ignore all the Raspberry Pi stuff and just get the Arduino.

Installation Instructions

Hardware

You will need:

Install the Ardiuino libraries in your Arduino IDE

...

Upload the waterino.ino code to the arduino

-- If you don't have a Raspberry Pi and don't want fancy graphs you can stop here --

Install InfluxDB

curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt-get update && sudo apt-get install influxdb
sudo systemctl start influxdb
influx -execute 'CREATE DATABASE db_grafana'

Install grafana

https://github.com/fg2it/grafana-on-raspberry/wiki

Install Python dependencies:

pip3 install plotly pyserial numpy pandas

Setup the config file:

cp /home/pi/waterino/conf/config.json.example /home/pi/waterino/conf/config.json
Edit the file with your 46elks.com info. Also identify your Arduino serial device name and add that as well.

Create a systemd service using the unit file provided.

cp /home/pi/waterino/conf/systemd/waterino.service /etc/systemd/system/waterino.service

Enable and start waterino

systemctl enable waterino
systemctl start waterino

Go to http://localhost:3000 and setup the grafana instance

About

Plant watering system controlled by Arduino and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published