Our entry for the inaugral Monash University hard hackathon. 24 hour hardware hackathon. Check the web application out at http://guarden.herokuapp.com
Guarden is an all-in-one plant management system. It notifies user if there are weeds in your backyard, logs the temperature, humidity and soil moisture content.
This repository was the main HTTP REST server that was in charge of hosting the user interface and a way for the Raspberry Pi Zero W to store data on the mongoDB database.
General overview of all endpoints.
Base URI: https://guarden.herokuapp.com
| Endpoint | Method | Description |
|---|---|---|
| /api/upload | POST | Allows user to upload jpg files to server |
| /api/sensor | GET | Get sensor data stored on mongoDB |
| /api/sensor | POST | Add sensor data stored on mongoDB |
| /api/spray | GET | Get the whole history of the spray bottle being open and closed |
| /api/spray | POST | Update whether the spray bottle has been pressed or not |


To host the web application, I used heroku to host a node.js application which would serve html pages with bootstrap as the front-end framework. This was chosen as it allowed us to run the app on mobile (seen below) as well.
