This shows you the differences between two versions of the page.
pm:prj2022:agmocanu:flight_tracker [2022/06/02 09:25] baptiste.turpin [Bibliografie/Resurse] |
pm:prj2022:agmocanu:flight_tracker [2022/06/03 11:51] (current) baptiste.turpin [Rezultate Obţinute] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Flight Tracker ====== | ====== Flight Tracker ====== | ||
+ | Realized by Baptiste Turpin, ERASMUS Student. | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 34: | Line 35: | ||
{{ :pm:prj2022:agmocanu:electricalschematic.jpg?700 | }} | {{ :pm:prj2022:agmocanu:electricalschematic.jpg?700 | }} | ||
===== Software Design ===== | ===== Software Design ===== | ||
+ | I used the Arduino IDE including SoftwareSerial, LiquidCrystal_I2C, Servo, ESP8266, WiFi Client Secure and ArduinoJSON libraries. | ||
+ | |||
+ | ==== API Usage ==== | ||
+ | I'm using two different APIs. The first one, Aviation Edge, allow me to find a flight by its IATA Code, which can be found on the ticket. The api response is parsed, and then it's possible to create a variable to store the value of one of the numerous variables which can be found in the response, just by giving its path. | ||
+ | |||
+ | I'm using the Speed, altitude, departure and arrival Airport's IATA codes. | ||
+ | |||
+ | To determine the remaining percentage of the route, I use another API (AirLabs) that gives me the coordinates of the airports. Then I use the Haversine function, which allows me to calculate the distance between two pairs of coordinates. I can then calculate the ratio (remaining distance / total distance) to know how many distance the plane still has to fly. | ||
+ | |||
- | I used the Arduino IDE including SoftwareSerial, LiquidCrystal_I2C, Servo, ESP8266, WiFi Client and ArduinoJSON libraries. | ||
===== Rezultate Obţinute ===== | ===== Rezultate Obţinute ===== | ||
+ | {{:pm:prj2022:agmocanu:img_6510.png?200|}}{{:pm:prj2022:agmocanu:img_6516.png?200|}} {{:pm:prj2022:agmocanu:img_6517.png?200|}} {{:pm:prj2022:agmocanu:img_6513.png?200|}} {{:pm:prj2022:agmocanu:img_6515.png?200|}} | ||
+ | |||
+ | I need to work now on the design because I was more focused on the working part. It has been difficult to treat the response of the API, and also first to connect the ESP to the WiFi because of some problems. I spent too much time on these parts. Hopefully, it's working now and I can get information on all the flights. | ||
- | Incoming soon | + | ===== Future feature ===== |
+ | I can easily get my location through GPS coordinates, as I display on the last screen by putting the name of the city. So I would like to be able to find the nearest plane to me, but that will be for a future update. | ||
===== Download===== | ===== Download===== | ||
Arduino Code : [[https://github.com/KINGBAP/FlightTracker|]] | Arduino Code : [[https://github.com/KINGBAP/FlightTracker|]] | ||
- | |||
Line 52: | Line 64: | ||
[[https://airlabs.co/| API to find coordinates of an Airport]] | [[https://airlabs.co/| API to find coordinates of an Airport]] | ||
+ | |||
+ | [[https://forum.arduino.cc/t/calculating-distance-between-two-points-accurately/45901/10|Heaversine Function ]] | ||
<html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | ||
+ | |||
+ | ===== Recommendations ===== | ||
+ | I would like to thank the Aviation Edge team for their kindness, which allowed me to get an API key for free in order to produce many queries for my project. This would not have been possible without them, as it is rare to find such information for free. | ||