From 379546663de242e34cd566d71e9966bed9832069 Mon Sep 17 00:00:00 2001 From: ff6347 Date: Wed, 11 May 2022 13:44:21 +0200 Subject: [PATCH] fix: typo in badge --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5f73bac6..8efb0db7 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,21 @@ -![](https://img.shields.io/badge/Build%20with%20%E2%9D%A4%EF%B8%8F-at%20Technologiesitftung%20Berlin-blue) +![](https://img.shields.io/badge/Built%20with%20%E2%9D%A4%EF%B8%8F-at%20Technologiestiftung%20Berlin-blue) # giessdenkiez-de-dwd-harvester - Gather precipitation data from DWD's radolan data set, for the region of Berlin and connect to the giessdenkiez.de postgres DB (AWS RDS) - Uploads trees combined with weather data to Mapbox and uses its API to create vector tiles for use on mobile devices -- Generates CSV and GeoJSON files that contain trees locations and weather data (grid) and uploads them to a AWS S3 +- Generates CSV and GeoJSON files that contain trees locations and weather data (grid) and uploads them to a AWS S3 ## Pre-Install I am using venv to setup a virtual python environment for separating dependencies: + ``` python -m venv REPO_DIRECTORY ``` ## Install + ``` pip install -r requirements.txt ``` @@ -52,7 +54,7 @@ The code in `harvester/harvester.py` tries to clean up after running the code. B ## Docker -To have a local database for testing you need Docker and docker-compose installed. You will also have to create a public S3 Bucket. You also need to update the `.env` file with the values from `sample.env` below the line `# for your docker environment`. +To have a local database for testing you need Docker and docker-compose installed. You will also have to create a public S3 Bucket. You also need to update the `.env` file with the values from `sample.env` below the line `# for your docker environment`. to start only the database run @@ -62,7 +64,7 @@ docker-compose -f docker-compose.postgres.yml up This will setup a postgres/postgis DB and provision the needed tables and insert some test data. -To run the harvester and the postgres db run +To run the harvester and the postgres db run ```bash docker-compose up @@ -70,7 +72,7 @@ docker-compose up ### Known Problems -#### harvester.py throws Error on first run +#### harvester.py throws Error on first run When running the setup for the first time `docker-compose up` the provisioning of the database is slower then the execution of the harvester container. You will have to stop the setup and run it again to get the desired results. @@ -84,7 +86,6 @@ docker-compose up --build ``` - ## Terraform Terrafrom is used to create the needed S3 Bucket, the Postres RDS and the Fargate container service. [Install and configure Terraform](https://learn.hashicorp.com/terraform?track=getting-started#getting-started). Update `terraform.tfvars` with your profile and region.