I ask if it is possible to add the registration and airplane model to the php code of the above discussion.
I’m not very used to programming, but I know that this data can be obtained from the ICAO code.
The file I’m referring to in ac_counter.php.
Thanks for quick reply.
Yes, i want to know how to extrapolate extra data from ICAO 6 digit hex code and put them in the output file, changing the php code.
It does not; aircraft.json only has the ICAO address. Skyaware and variants do a lookup, on the browser side, of the ICAO address against a static database.
Not possible. You will need a database which contain the information you’re looking for and do a query against the hex code.
That’s what i am doing afterwards. There are some databases available which contain many of the aircraft and their details. You might need to know how to query it via PHP
It appears that that was then combined later on with a second table, which had a field AircraftID, and a field ModeS, again containing the ICAO, and additional information about the aircraft.
Combining two tables is easy if you know how to do it, but you will need a table/db that contains this information.
It’s not that simple as it might look. The table does not contain the aircraft information or anything else.
This is a screenshot of the first few lines from one of the original tables created by the script on my device. The last column is R
The information that is required will be within the Basestation.sqb database and could be derived via the hex codes, but I don’t have the expertise to know how you would combine the database with the daily report output. I asked this question on the forum some months ago but didn’t get a reply from anyone
You can use any file which contain aircraft information and run a joined query on it.
I am currently doing it in Access after i imported the daily file.
It’s not necessarily a basestation.sqb, there are other files available as well.
I am currently using Microsoft Access.
Import both tables (the daily report and the master DB with aircraft information) and run a joined query view where the ModeS column is the joined one.
Voila - Table with both information.
But: You will not see the aircraft which are not in the master DB
The last two years I’ve learned how to work with ‚mySQL‘ and how to create a SQL-retrieval….
mySQL server is running 24/7 containing some essential databases.
A php-Script is running parallel on this server, feeding mySQL-database.
With this ‚dailyreport‘ I got (made by php-script) I start my daily (manual) work to keep my aircraft-database up-to-date.
With some SQL-Querys I’m looking for new entry, increment the views-field, making additions or completion in this aircraft database. My references are relevant websites like airframes.org.
Then I run my final joined query to create my personal daily-report with all information I want. See my post above.
Actually I have only 300-400 records per day, normally there are more than 3.000.
No problem. I’ve managed to do this in Excel now linking the daily report to a database extracted from my Basestation.sqb. A little bit long-winded but it works.