This repository contains code that interfaces with and returns the results of various sensors on a Raspberry Pi, and pushes these results in 2 minute increments to Firebase DB. An Abstract Sensor class allows for the easy addition of various sensors, by requiring consistent methods between them for read()
. In addition, a Firebase class was created using the Database abstract class, requiring the authenticate()
and push()
methods. This increases the maintainability, testability and modularity of the system.
The Product Manual can be found here on how to get started with your RPiDronics and for details on setting up the various sensors and probes.
- Pyrebase- A simple python wrapper for the Firebase API.
- Run
git clone https://github.com/PiDronics/monitoring-automated-hydroponics-system.git
- Run
cd monitoring-automated-hydroponics-system
- Edit the
env.py
file with the relevant credentials. - Run
pip install -r requirements.txt
to install the required libraries. - Assuming pH sensor is properly connected to the Raspberry Pi, run
python runner.py
. The Raspberry Pi will begin polling the sensor based on the interval set during System creation, and the reading will be viewable on the app