This application inserts received ADS-B data from dump1090-fa into a postgresql database and provides a REST-Server with different endpoints to get these data.
There are two ways to launch the application:
Using docker-compose:
- install dump1090-fa and make sure that the dump1090-fa service is running
- clone repository
- cd into root directory of the cloned repository and run "docker-compose up"
- by default the REST-Server is running at Port 3000 and is listening for all IP adresses
build manually
- install dump1090-fa and make sure that the dump1090-fa service is running
- you need to create a Postgresql database with a table named "flight_history"
- how the table has to look like is mentioned in the file "create_databases.sql"
- install required python modules with the command
python3 -m pip install -r requirements.txt
- edit the database configuration in the
variables.py
file - to start the insertion of received ADS-B data run
python3 utility.py
- to start the REST server run
python3 rest_server.py
By default the program gets the flight data from dump1090 all 4 seconds an inserts them into the database. If you need more data you can decrease this interval in the main method of the utility.py
module.