Smart-Gardening
Architecture and Design Documentation
Video Demo
Project Report
Setup Instructions
Make sure to have node.js (v14.17+) and npm (v6.14+) installed. Also make sure to have ESP32 device and Raspberry Pi device and camera. These steps require the downloading of the repository code onto your machine.
ESP32 Setup
- Follow directions listed here
Raspberry Pi Setup
- Plug in RPi Camera to RPi device
- Wire up relay using pin 21 to actuate relay and water solenoid valve
- Clone this repo onto RPi device
git clone https://github.com/naterpotatoers/Smart-Gardening.git
- Switch into iot-rpi directory
- Run the command on RPi device
python3 aws-iot-core.py
Frontend Setup
- Switch into frontend directory
- Run the command
npm install
- Run the command
npm start
Backend Setup
- Switch into backend directory
- Run the command
npm install
- Run the command
npm run build
- Add necessary .env file for reading and writing from the databases (should be included with file already)
- Run the command
npm start
Plant API Setup
- Switch into Plant API directory
- Run the command
npm install
- Run the command
npm start
Deployed Services
Frontend: http://smart-garden-frontend.s3-website-us-west-2.amazonaws.com/
Backend: http://54.190.195.163:5000/
Plant API: http://54.190.195.163:9000/