Track Your Flight with PyMyFlySpy
View real-time flight data on maps and graphs.
1Accessing Flight Data
During a flight, passengers often want to know the exact location of their aircraft. However, cheap and short flights may lack headrest screens and internet access. In such cases, passengers cannot know precisely where they are. Connecting to the in-flight wi-fi network can be a solution to access this data.
2Collecting Data from Wi-Fi
When you connect to the in-flight wi-fi network, you are usually greeted with a payment page. This page includes information such as flight speed, direction, and estimated arrival time. However, it may not include a map. Using Chrome developer tools, it can be seen that latitude and longitude data are null.
3Calculating Location
Even if latitude and longitude data are not available, speed and direction information from the wi-fi network can be used to dynamically calculate the aircraft's position. Starting from the airport's coordinates, the distance traveled and direction for each second can be added to estimate the real-time location.
4The PyMyFlySpy App
PyMyFlySpy is a web application that displays real-time flight data on maps and graphs. The app records all data from the in-flight wi-fi network and presents it to the user. It also allows users to write queries against the data and run custom queries.
5Multi-Airline Support
Different airlines use different wi-fi systems. PyMyFlySpy allows users to add and use recorders for different airlines. Users can open the airline's wi-fi page, use developer tools to parse the data, and add the new code to the PyMyFlySpy configuration.
6System Design
PyMyFlySpy's system is quite simple. The Firefox extension reads flight information from the airline's website and sends it to the PyMyFlySpy web server. The local web server saves the data and makes it available to the frontend. The Sqlite database stores the data, and the web frontend displays it using maps and graphs.
7User Experience
PyMyFlySpy allows passengers to know exactly where they are during a flight. The app provides flight metrics like a pilot would. Users can also query the speed and effects of turbulence they encounter during the flight.
8Demo Mode
PyMyFlySpy includes a demo mode that allows users to test the app without being on a plane. In this mode, users can try the app with a fake flight. The demo mode is ideal for those who want to understand how the app works.
9Future Potential
PyMyFlySpy is an important tool for passengers who want to track flight data in real-time. The app's ability to adapt to different airlines and allow custom queries makes it a candidate for future development. Such apps can enhance the flight experience for passengers.
Original article: Robert Heaton | Blog — PyMyFlySpy ile Uçuş Verilerini Takip Et