Skip to content

Commit

Permalink
fix: typo in badge
Browse files Browse the repository at this point in the history
  • Loading branch information
ff6347 committed May 11, 2022
1 parent 7ebc1a3 commit 3795466
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```
Expand Down Expand Up @@ -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

Expand All @@ -62,15 +64,15 @@ 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
```

### 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.

Expand All @@ -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.
Expand Down

0 comments on commit 3795466

Please sign in to comment.