mkorkmaz / line-of-flights

FlightRadar24 data collector service script for live flights, written in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Line of Flights

Scrutinizer Code Quality Build Status

FlightRadar24 data collector service script written in Python.

"Flightradar24 is a flight tracker that shows live air traffic from around the world. Flightradar24 combines data from several data sources including ADS-B, MLAT and radar data. The ADS-B, MLAT and radar data is aggregated together with schedule and flight status data from airlines and airports." *

Installation and usage

You will need an Elasticsearch instance installed and running. Let's say your Elasticsearch runs on 127.0.0.1, your index will be named as "radar", type will be named as "logs" and you wanna "live track" Turkish Airlines flights.

git clone https://github.com/mkorkmaz/line-of-flights.git
cd line-of-flights
chmod u+rwx mappings.sh
./mappings.sh 127.0.0.1 radar logs
pip3 install -r pip.install
cp config.sample.ini config.ini

Edit config.ini according to your setup and your needs. Then run:

python3 ./radar.py

If you want to collect data continuously, use cron jobs. You can get the data at least every minute. Never try to get the data more frequently.

Cron job command

* * * * * python3 /path/to/radar.py

About

FlightRadar24 data collector service script for live flights, written in Python.

License:MIT License


Languages

Language:Python 65.3%Language:Shell 34.7%