Flightguy123 Posted September 22, 2011 Report Share Posted September 22, 2011 Hey guys, I was wondering if anyone knows of a way that I can basically grab information from one of the VATSIM Data servers, and pull my pilots info out of it and match it with a pirep to add .5 more hours per flight that the pilot does on VATSIM. This is just a thought that I was thinking could be possible in the future at my VA. Quote Link to comment Share on other sites More sharing options...
Tom Posted September 22, 2011 Report Share Posted September 22, 2011 Does VATSIM have open/completed flights XML? I wrote a module that does pretty much exactly this for another tracking website so I can adapt it pretty easily... Quote Link to comment Share on other sites More sharing options...
Flightguy123 Posted September 22, 2011 Author Report Share Posted September 22, 2011 Yep, VATSIM has a feed, here is a link to one of the many ones http://fsproshop.com/servinfo/vatsim-data.txt Quote Link to comment Share on other sites More sharing options...
freshJet Posted September 22, 2011 Report Share Posted September 22, 2011 Nice link! Also, you could do something with this: http://www.cayri.org/ Quote Link to comment Share on other sites More sharing options...
Tom Posted September 22, 2011 Report Share Posted September 22, 2011 Yep, VATSIM has a feed, here is a link to one of the many ones http://fsproshop.com/servinfo/vatsim-data.txt Wtf kind of format is that? That's a nightmare. XML anyone? Also are there any official VATSIM ones? That appears to be hosted by some randomers unfinished css template site. Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted September 22, 2011 Report Share Posted September 22, 2011 What you are supposed to do is first download the following http://status.vatsim.net/status.txt Then follow the instructions. (you should vary the data feed read between servers found in the status.txt to reduce bandwidth load on any one server) Using a cron job.... I download the first once a day (status.txt). Then download the data feed every five minutes (varying the server). I seem to remember that the data feed only updates every 5 minutes so no need to download anymore than that. Then load both locally when the page is loaded. Be sure to ask for permission first. I had no problems getting it. As long as you follow their instructions they seem to be pretty open to letting anyone use the data. Quote Link to comment Share on other sites More sharing options...
Tom Posted September 22, 2011 Report Share Posted September 22, 2011 Oh I see... what format is that though? It looks impossible to work with... Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted September 22, 2011 Report Share Posted September 22, 2011 To be honest I have no idea. I just split it and looped through to get what I wanted. Pain in the rear but it worked. Quote Link to comment Share on other sites More sharing options...
Tom Posted September 22, 2011 Report Share Posted September 22, 2011 They seriously need to choose some kind of decent standard, XML or JSON or something, anything... how are you supposed to tell when one row ends and another starts? Quote Link to comment Share on other sites More sharing options...
Flightguy123 Posted September 23, 2011 Author Report Share Posted September 23, 2011 Not sure, i think they might have a XML, i would need to ask a guy and see, is XML easier to work with? Quote Link to comment Share on other sites More sharing options...
Tom Posted September 23, 2011 Report Share Posted September 23, 2011 A lot easier yes. I wouldn't know where to start trying to understand that feed... Quote Link to comment Share on other sites More sharing options...
Flightguy123 Posted September 23, 2011 Author Report Share Posted September 23, 2011 Ahh I see, well its gonna be a fun weekend..... Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted September 24, 2011 Administrators Report Share Posted September 24, 2011 I posted a small module to collect and parse the Vatsim text file here Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 26, 2011 Administrators Report Share Posted September 26, 2011 That's a nightmare format Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.