https://github.com/janritter/flight-stats
Tool to collect departure flight information for a given airport from Flightradar24
https://github.com/janritter/flight-stats
Last synced: 2 months ago
JSON representation
Tool to collect departure flight information for a given airport from Flightradar24
- Host: GitHub
- URL: https://github.com/janritter/flight-stats
- Owner: janritter
- Created: 2022-07-17T20:35:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-18T16:33:21.000Z (2 months ago)
- Last Synced: 2025-03-18T17:41:04.811Z (2 months ago)
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flight Stats Collector
> Tool to collect departure flight information for a given airport from Flightradar24
The collected data can then be used for further analysis, e.g. number of canceled flights per airline
## Development
### Install dependencies
```bash
poetry install
```### Run script
```bash
poetry shell
python3 app.py
```## Setup
Start docker-compose setup with postgres and metabase
```bash
docker-compose up -d --build
```After starting the docker-compose environment you can connect to the postgres database with your DB client of choice on port 5432 and access metabase via [http://localhost:3000/](http://localhost:3000/)
### Required Environment Variables
| Nmae | Description |
|----------------|------------------------------------------------|
| DB_USER | Username of the PostgreSQL user |
| DB_PASSWORD | Password for the PostgreSQL user |
| DB_HOST | Hostname of the PostgreSQL |
| ORIGIN_AIRPORT | IATA code of the airport to be tracked |
| LOG_LEVEL | Log level for the collector, must be uppercase |
| TZ | Timezone for date times stored in PostgreSQL |