usage.mp4
For a list of airports I am using Michael's 'ICAO Airport Codes' dataset.
For METAR data I am using AVWX Aviation Weather REST API by Michael duPont.
Map of the location of airports is provided by Google Maps Platform.
This project is using Python 3.7.0
.
The list of dependencies for this project can be found in requirements.txt
and can be installed using pip install -r requirements.txt
. To build a new requirements.txt
delete the old version, navigate to directory and run pip freeze > requirements.txt
.
You can start running the site by exporting DJANGO_TOKEN
as an environement variable and then running python manage.py runserver
. The site can then be viewed by visiting http://127.0.0.1:8000/
. With DEBUG=True
in rhodrithomasmorgan/settings.py
this will present the current urls available. To see the METAR page visit http://127.0.0.1:8000/METAR_practice/
To access the admin panel visit 127.0.0.1:8000/admin
and use the login credentials username=test
and password=password
. Alternatively you can create a super user using python manage.py createsuperuser
.
metar_practice/pull_metar_data.py
is a seperate script which should be ran in parallel for METAR data pulling. You can configure pull limits and question caps in this file.
metar_practice/load_airports.py
is a script for inserting all airports into the database. It is a requirement.
You can run the testing suite using python manage.py test
. Resulting errors will be show.