Martin Creighan 1387735 Posted August 11, 2017 at 12:46 AM Posted August 11, 2017 at 12:46 AM I am wondering whether someone can give me a pointer to how I can obtain the route I have filed in the form of a line of text. I regularly stream on twitch and a number of viewers wish to fly the same route. I would like to be able to get my bot (ankhbot in this case) to be able to respond to the command !route and return the route I have filed on VATSIM so that they can copy it into their flight plan. I have seen people using $readapi(http://metar.vatsim.net/metar.php?id=$msg) to return the metar of a particular airport. Is there something similar to provide the route? Many thanks in anticipation Link to comment Share on other sites More sharing options...
Trent Hopkinson Posted August 11, 2017 at 01:29 AM Posted August 11, 2017 at 01:29 AM https://vatstats.net/pilots/1387735 for your flights (click "View flight" for the route details) This will update roughly every 2 to 5 minutes usually. https://vatstats.net/ to search other pilots previous flights. Trent Hopkinson YMML. www.youtube.com/musicalaviator WorldFlight 2002,2008,2009, 2011, 2012, 2013 & 2015 Link to comment Share on other sites More sharing options...
Ryan Savara 1369362 Posted August 11, 2017 at 04:48 AM Posted August 11, 2017 at 04:48 AM Edit: totally read the question wrong. Vatsim has no api to access a current route. You'll have to see if a third party website that has an API you can use. Senior Student (S3) Chicago ARTCC Events Coordinator Link to comment Share on other sites More sharing options...
Bradley Grafelman Posted August 11, 2017 at 06:50 AM Posted August 11, 2017 at 06:50 AM Do you or someone you know have access to a web host with some sort of scripting language (e.g. PHP)? VATSIM does provide a datafeed with information such as the route from your flight plan, but you'd have to use your own host to do a little work on the datafeed (e.g. download/cache it for 2-3 minutes to be a friendly user as well as parsing it to get the info you want). Note that the route is from your current flight plan and will reflect any updates made to it by ATC (such as when you're issued a shortcut). Link to comment Share on other sites More sharing options...
Ryan Savara 1369362 Posted August 11, 2017 at 01:40 PM Posted August 11, 2017 at 01:40 PM After doing a bit more digging, here are a few possible solutions: If you have your own webserver, you can host this project, which provides an API: https://github.com/xpguru17/VATSIM-API Another option is to use VATEUD's API, however it requires manually updating what callsign you are using (which is almost just as pointless as manually updating the command with the route for the day): http://api.vateud.net/#toc_20 Other than that I don't see much other options. You could always just update the command every day to have the current route in it Senior Student (S3) Chicago ARTCC Events Coordinator Link to comment Share on other sites More sharing options...
Recommended Posts