Jump to content

Recommended Posts

Hello dear friends,

 

I am looking for api key or source picture to get active ATC in specified FIR.

 

for example status.vatsim.net/GM.png - GM = GMMM FIR = Casablanca FIR all ATC connected in Morocco airspace will be shown, also if this option available i'd like to know if it's available for PILOT callsings.

 

Thanks in advance,

Ismail El Moussati
Northern Africa Division Founder l VATSIM Network Supervisor
Royal Air Maroc Virtual CEO
Virtual AirTraffic Simulation Network

0.png

Link to post
Share on other sites
Hello dear friends,

 

I am looking for api key or source picture to get active ATC in specified FIR.

 

for example status.vatsim.net/GM.png - GM = GMMM FIR = Casablanca FIR all ATC connected in Morocco airspace will be shown, also if this option available i'd like to know if it's available for PILOT callsings.

 

Thanks in advance,

 

One doesn't exist for that.

Link to post
Share on other sites

I've used the VATEUD API for things like this.

For stations in Morocco: http://api.vateud.net/online/atc/gm.xml

For pilots flying inbound/outbound of Moroccan airports (Excluding the southern provinces): http://api.vateud.net/online/pilots/gm.xml

 

You'll want to filter out any observers, I do this like so.

       foreach ($xml as $controller):
               $xploded = explode('_', $controller->callsign);
               if (strlen($xploded[0]) == 4){
                       if (in_array(end($xploded), array('DEL','GND','TWR', 'APP', 'DEP', 'CTR', 'FSS'), true)){

 

This is the link to the code I used to do this on the old ACCNAF website, it's not perfect, but it should get the job done. http://pastebin.com/35xePjJn

vACC Director VATSIM Kuwait
[email protected]

C1 - P4

Link to post
Share on other sites
  • 7 months later...

where can you add the api link here becuse i have api with xml how could i use it on the site and how to filter them out like who have bokked

foreach ($xml as $controller):

$xploded = explode('_', $controller->callsign);

if (strlen($xploded[0]) == 4){

if (in_array(end($xploded), array('DEL','GND','TWR', 'APP', 'DEP', 'CTR', 'FSS'), true)){

Link to post
Share on other sites
  • 2 years later...
  • 2 weeks later...
  • 2 weeks later...

Script by Yanick Coulombe has been customized and available at VATWA, showing Online ATC, Arrivals & Departures in/out of West Asia Division including Afghanistan, Pakistan, India, Nepal, Bhutan, Bangladesh, Sri Lanka & Maldives; please navigate to https://www.vatwa.net/online

 

Some airline logos might not appear due to certain reasons, such as:

- Airline logo not in VATWA database

- Pilot flying with IATA callsign instead of ICAO callsign

- Pilot flying with Aircraft Registration

- Unknown airlines or Pilot's custom callsign

Raihan Shahzad

Network Supervisor | Team3

VATWA1 - Division Director West Asia

www.vatwa.net

0

Link to post
Share on other sites
  • 4 months later...
On 12/28/2019 at 9:04 AM, Raihan Shahzad 1208205 said:

Script by Yanick Coulombe has been customized and available at VATWA, showing Online ATC, Arrivals & Departures in/out of West Asia Division including Afghanistan, Pakistan, India, Nepal, Bhutan, Bangladesh, Sri Lanka & Maldives; please navigate to https://www.vatwa.net/online

 

Some airline logos might not appear due to certain reasons, such as:

- Airline logo not in VATWA database

- Pilot flying with IATA callsign instead of ICAO callsign

- Pilot flying with Aircraft Registration

- Unknown airlines or Pilot's custom callsign

 

27 minutes ago, Israel Reyes said:

Nice setup. I was able to recede it for my FIR. Works great.


Thanks, I'm proud I could help other FIRs.
I really like https://www.vatwa.net/online where there is also logos being shown. It might be a good addition to the Github for others to enjoy, maybe as an option.

Anything that you guys needed to modify in order to make it work might be a good addition to the original repository.

Thanks for using my code and have a good day!

Edited by Yanick Coulombe 965064

Yanick Coulombe (965064)
Webmaster - FIR de Montréal
[email protected]
fly.czulfir.com

logo-signature_edited.png

Link to post
Share on other sites
8 hours ago, Yanick Coulombe 965064 said:

 


Thanks, I'm proud I could help other FIRs.
I really like https://www.vatwa.net/online where there is also logos being shown. It might be a good addition to the Github for others to enjoy, maybe as an option.

Anything that you guys needed to modify in order to make it work might be a good addition to the original repository.

Thanks for using my code and have a good day!

I took a simple approach to it. I placed it on its page as designed and than iframed the whole thing into our front page. https://santodomingo.vatcar.org

I was wondering, if the script could be made to incorporate how long the controllers have been online. I think that would be a nice touch to it.

ISRAEL REYES 
Hit Squad Coordinator  
## [email protected]  
Facebook vatcar.net visit VATCAR.net  
VATSIM Logo
Link to post
Share on other sites
14 hours ago, Israel Reyes said:

I took a simple approach to it. I placed it on its page as designed and than iframed the whole thing into our front page. https://santodomingo.vatcar.org

I also use it the same way (Iframe to home page) on our FIR's website http://czulfir.com

14 hours ago, Israel Reyes said:

I was wondering, if the script could be made to incorporate how long the controllers have been online. I think that would be a nice touch to it.

This is all the possible information given by VATSIM (https://github.com/rt-2/CZUL-Controllers-Online/blob/master/ControllersOnline/resources/api.lib.inc.php) and any of those could be implemented easily.

Yanick Coulombe (965064)
Webmaster - FIR de Montréal
[email protected]
fly.czulfir.com

logo-signature_edited.png

Link to post
Share on other sites

Perhaps you've already solved your problem, but here's an alternate suggestion. By using the vatsimphp module (this may be updated in the future to be less ancient 😉) you can get all controllers, then narrow down by callsign to scan a geographical area (can do the same with pilots and departure/destination airports):
 

// Load VATSIM data
$vatsim = new \Vatsimphp\VatsimData();
$vatsim->loadData();

// Create empty array to store controllers
$controllers = array();

// Search all online controllers
foreach($atc in $vatsim->getControllers()) { 
	if (substr($atc['callsign'], 0, 4) == 'CZQX') { // Check first 4 chars of callsign for identifier
		array_push($controllers, $atc); // Voilà, push to our controller array
	}
}

vatsimphp is quite dense with methods dealing with VATSIM data, I'll leave a link here in case anybody is interested.

https://github.com/skymeyer/Vatsimphp

 

Edited by Andrew Ogden

Andrew Ogden | I3
Gander Oceanic OCA Chief
VATSIM Web Developer

Visit us: https://ganderoceanic.com
Contact: [email protected] 

431466725_bannersmall.png.dd3c45679f76aeb32af4d6ff6fb9854a.png

Link to post
Share on other sites
15 hours ago, Andrew Ogden said:

Perhaps you've already solved your problem, but here's an alternate suggestion. By using the vatsimphp module (this may be updated in the future to be less ancient 😉) you can get all controllers, then narrow down by callsign to scan a geographical area (can do the same with pilots and departure/destination airports):
 

// Load VATSIM data
$vatsim = new \Vatsimphp\VatsimData();
$vatsim->loadData();

// Create empty array to store controllers
$controllers = array();

// Search all online controllers
foreach($atc in $vatsim->getControllers()) { 
	if (substr($atc['callsign'], 0, 4) == 'CZQX') { // Check first 4 chars of callsign for identifier
		array_push($controllers, $atc); // Voilà, push to our controller array
	}
}

vatsimphp is quite dense with methods dealing with VATSIM data, I'll leave a link here in case anybody is interested.

https://github.com/skymeyer/Vatsimphp

 

Have I known this module when I started my project it could've help.
I might switch to it eventually.
My priority on this project is to add cache. For example if a second user loads the page or if the same user refreshes the page, it shouldn't fetch the information again for like 2-5 minutes

Yanick Coulombe (965064)
Webmaster - FIR de Montréal
[email protected]
fly.czulfir.com

logo-signature_edited.png

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...