Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 2.4 KB

README.md

File metadata and controls

60 lines (44 loc) · 2.4 KB

Hydrook (Hydroponics Monitoring)

ABOUT

Hydrook is a lightweight script that uses a Raspberry Pi with 2.8" TFT Resistive touch screen to display real-time values of pH, EC & Temperature values of a hydroponic or aquaponic system via a sqlite database.

Stable Photo Unstable Photo

Prerequisites

(This is what we used - it may work with other specs too)

Its easiest if its in the same format as in /dashboard/data/sql_www_ap.sqlite >(use http://inloop.github.io/sqlite-viewer/ to display format)

Quickstart

git clone https://github.com/pbieberstein/dashboard.git
  • Set up Cron job to continually update database (see our way below)
  • Set up Cron job to start script at reboot (see our way below)
  • Set up ssh keys between raspberry pi and computer where database is stored to prevent the need to enter password for every update

Schema

Modify

You can modify which pH, EC and Temperature values are acceptable inside the /scripts/monitor.py script. In the 'setup variables' section, simply insert the range of values you see as Stable or Unstable.

Our Crontab Jobs

sudo crontab -e

add the line (our script needs to be run as root)

@reboot cd /home/pi/dashboard/scripts && python monitor.py &

crontab -e

add the line (update of database doesn't have to be root)

*/1 * * * * cd /home/pi/dashboard/scripts && scp [email protected]:/path/to/database

Author

Philipp v. Bieberstein ([email protected])

  • Built during Summer School project at Institute of Complex Systems in Nové Hrady, Czech Republic

References