GrowSmart helps you live a healthier life through your garden. This tool is designed to help us process, analyze and make sense of our data.
To use GrowSmart, you will need to have the following installed on your computer:
- Docker
- Docker Compose
- aws-java-sdk-bundle-1.11.874.jar file
It is highly recommended that you have at least 8GB of RAM in your machine.
To install and set up GrowSmart, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/Action52/GrowSmart.git
- Navigate to the
airflow
directory:cd growsmart/airflow/jars
- Copy aws-java-sdk-bundle-1.11.874.jar from local path into jars folder:
cp /path/to/source/aws-java-sdk-bundle-1.11.874.jar growsmart/airflow/jars
- Navigate to the
airflow
directory:cd ..
- Run the following command to start the Docker containers:
docker-compose up -d
- Wait for the containers to start up (this may take a few minutes).
- Access the Airflow web UI by opening your browser and navigating to
http://localhost:8080
Note: If it's your first time running the airflow container you will have to set up the s3 connection variables. To do so:
- Once the containers are up, navigate to the UI
http://localhost:8080
. Log in with the default user (airflow) and password (same as user). - Go to Admin -> Variables. Click "+".
- Add key: "aws_access_key", with the corresponding value.
- Click Save.
- Repeat process for key: "aws_secret_access_key".
AWS Key Data is included on the report as an annex.
Once you have the Docker containers running, you can use GrowSmart through Airflow to process your data. Follow these steps:
- Ensure you have credentials to access our data buckets. (Annexed on the project report).
- Activate the DAG you want to use (AirflowAWSWeather, AirflowAWSWeather, iot_devices_data, iot_device_persistent_data, plant_traits_data_collector, plant_traits_persistent_data_collector).
- Go to the right and click "run DAG".
If you would like to contribute to GrowSmart, feel free to submit a pull request. We welcome contributions from the community!
GrowSmart is released under the MIT license. See LICENSE
for more information.