Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.
PLEASE READ - Webmaster Support Forum
This forum will be retired in the near future. Please direct all queries to our dedicated GitHub support page https://github.com/vatsimnetwork/developer-info/discussions 
Here you can find documentation on our services and we are continuing to migrate pertinent information into the Wiki pages https://github.com/vatsimnetwork/developer-info/wiki

ATC List


Ismail El Moussati
 Share

Recommended Posts

Ismail El Moussati
Posted
Posted

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 comment
Share on other sites

Daniel Hawton
Posted
Posted
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 comment
Share on other sites

Ismail El Moussati
Posted
Posted

Thank you for your anwser

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

0.png

Link to comment
Share on other sites

Joseph Donat
Posted
Posted

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

Joseph Donat
Deputy Division Director, VATSIM Middle East & North Africa  
vACC Director, VATSIM Kuwait & Iraq
##  [email protected] 
##
 http://vatsim.me/    
     

1185353147_Signature(1).png.e6818c4256541cb309a1888bad7c9d33.png

 

 

 

Link to comment
Share on other sites

  • 7 months later...
samuel nygaard
Posted
Posted

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 comment
Share on other sites

  • 2 years later...
Yanick Coulombe 965064
Posted
Posted

Hi, I recently created what you are asking.

This is my source code, hope this can help (not optimised)

https://github.com/rt-2/CZUL-Controllers-Online

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

logo-signature_edited.png

Link to comment
Share on other sites

  • 2 weeks later...
Raihan Shahzad 1208205
Posted
Posted
Hi, I recently created what you are asking.

This is my source code, hope this can help (not optimised)

https://github.com/rt-2/CZUL-Controllers-Online

I found this script very useful, currently updating it for West Asia Division

Raihan Shahzad

Network Supervisor | Team3

VATWA1 - Division Director West Asia

www.vatwa.net

0

Link to comment
Share on other sites

  • 2 weeks later...
Raihan Shahzad 1208205
Posted
Posted

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 comment
Share on other sites

  • 4 months later...
Israel Reyes
Posted
Posted
On 12/11/2019 at 2:58 AM, Yanick Coulombe 965064 said:

Hi, I recently created what you are asking.

This is my source code, hope this can help (not optimised)

https://github.com/rt-2/CZUL-Controllers-Online

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

ISRAEL REYES
Deputy Division Director
## [email protected]
Facebook vatcar.net visit www.vatcar.net
VATSIM Logo
Link to comment
Share on other sites

Yanick Coulombe 965064
Posted
Posted (edited)
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 comment
Share on other sites

Israel Reyes
Posted
Posted
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
Deputy Division Director
## [email protected]
Facebook vatcar.net visit www.vatcar.net
VATSIM Logo
Link to comment
Share on other sites

Yanick Coulombe 965064
Posted
Posted
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 comment
Share on other sites

Andrew Ogden
Posted
Posted (edited)

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
Gander Oceanic OCA Chief
Vancouver FIR Senior Instructor

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

CZQO LogoCZVR Logo

Link to comment
Share on other sites

Yanick Coulombe 965064
Posted
Posted
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 comment
Share on other sites

  • 1 year later...
Israel Reyes
Posted
Posted

By chance has this method stopped working? I copied the code I had saved on to one of our community sites, but I am not seen any activity reflected on it. Thank you in advance for the further assistance.

ISRAEL REYES
Deputy Division Director
## [email protected]
Facebook vatcar.net visit www.vatcar.net
VATSIM Logo
Link to comment
Share on other sites

  • 2 weeks later...
Yanick Coulombe 965064
Posted
Posted
On 6/4/2021 at 1:14 AM, Israel Reyes said:

By chance has this method stopped working? I copied the code I had saved on to one of our community sites, but I am not seen any activity reflected on it. Thank you in advance for the further assistance.

VATSIM changed its data format from plain text to JSON and this code uses the old method and will not work anymore unless someone make the change, sorry.

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

logo-signature_edited.png

Link to comment
Share on other sites

Israel Reyes
Posted
Posted
35 minutes ago, Yanick Coulombe 965064 said:

VATSIM changed its data format from plain text to JSON and this code uses the old method and will not work anymore unless someone make the change, sorry.

Time to try and find a new resource. Thank you much for the response.

ISRAEL REYES
Deputy Division Director
## [email protected]
Facebook vatcar.net visit www.vatcar.net
VATSIM Logo
Link to comment
Share on other sites

 Share