a web aplication to display a greenhouse for the user.
The code is eddited to work with a Raspberry Pi 3, Flask and Python 2.7. We used Vis.js to show the nodes that is the different greenhouses that is connected to the database, MongoDB.
Both Sensors.py and addSensor.py is needed to be located at the Raspberry Pi that has to be in a greenhouse where the sensors are. The app.py is the server that is developed to send and receive data with API´s and display them on a webapplication and is not needed to be in a greenhouse.
Codes and examples used from other works:
How to set up a flask server for videostreaming: https://blog.miguelgrinberg.com/post/video-streaming-with-flask
How to set up a moisture sensor with raspberry pi: https://www.modmypi.com/blog/raspberry-pi-plant-pot-moisture-sensor-with-email-notification-tutorial