Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 1.11 KB

README.md

File metadata and controls

65 lines (46 loc) · 1.11 KB

skies-flask

A Python3+Flask app which acts as a local proxy to the FlightAware AeroAPI v4 and the FAA METAR api.

Dependencies:

Python 3
flask
flask-cors
requests
xmltodict

Development Environment Setup

Create a Flask config.json file

cd /path/to/skies-adsb/flask
touch config.json

Add the FlightAware AeroAPI v4 Key to the config.json file

{
  "FLIGHTAWARE_API_KEY": "<YOUR API KEY>"
}

note: only AeroAPI v4+ is supported

For instructions on how to create an AeroAPI v4 key go here:

https://flightaware.com/aeroapi/portal/documentation

see section on "Authentication".

Install dependencies

python3 -m venv dev
. dev/bin/activate
pip3 install flask flask-cors requests xmltodict

Run the Flask server:

cd /path/to/skies-adsb/flask
. dev/bin/activate
export FLASK_ENV=development
flask run -h 0.0.0.0

Update Flask app independent of skies-adsb web app

If you need to update the Flask app without having to reinstall the entire app you can run the update_flask_app.sh script as follows:

cd /path/to/skies-adsb/raspberrypi
./update_flask_app.sh