Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route information, etc. #72

Open
developerfromjokela opened this issue Jun 15, 2021 · 6 comments
Open

Route information, etc. #72

developerfromjokela opened this issue Jun 15, 2021 · 6 comments

Comments

@developerfromjokela
Copy link

Hello!
This guy has images and route information shown directly on his piaware:
https://flight.f4ipo.fr/

How could I do something like that?

@Brummby
Copy link

Brummby commented Jun 15, 2021

The comments in his code are rather amusing... <!-- This is hideous. airframes.org insists on getting a POST with a "submit" value specified, but if we have an input control with that name then it shadows the submit() function that we need. So steal the submit function off a different form. Surely there is a better way?! -->

@developerfromjokela
Copy link
Author

developerfromjokela commented Jun 16, 2021 via email

@serge-golovanow
Copy link

Hello ! I'm "this guy" 😉 I made some custom code in order to display routes and images :

  • https://flight.f4ipo.fr is hosted on a dedicated server, using ApacheHTTPd ; all static content is here, only json files are taken from a piaware instance hosted at home, increasing performance and hidding my IP, https and http/2 are some bonus. Then a reverse_proxy could be enough to get dynamic data, but aircraft.json is in fact a custom PHP page (hidden with url rewriting) : the real aircraft.js is parsed, then some data is added :
  • routes and flight operator are taken in StandingData.sqb, from VirtualRadarServer : I update it daily (and of course I send updates to StandingDataMaintenance)
  • additional data about plane (type, owner, ...) is from BaseStation.sqb, from a VRS instance running at home, with DataBaseWrite plugin to keep all the data, and a ADSBHub receiver : I see as much planes as possible in order to populate the database (presently 518k records !). I just keep VRS running sometimes, then push the database (I also compute it to mark military planes)
  • I search for images in Flickr with its API, storing results in a third sqlite db
  • planeObject.js and script.js are adapted to parse and display this additional content.

@sharkbit
Copy link

@serge-golovanow Any chance on pushing the changes in your branch up to GIT. Pretty cool modification!

@MaxWinterstein
Copy link

@serge-golovanow I know we all hate bumps, but - are you still on this? :)

@HNJAMeindersma
Copy link

Not sure if this should be added to instances globally, since it would add an extra dependency and increase traffic to the provider(s) of route information. Making it an addon or additional package would be more appropriate in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants