Jump to content

Recommended Posts

Posted

Hello, 


I would like to know a code with which the network in which a pilot has flown or is flying online can be detected (IVAO / VATSIM or OFFLINE).

 

In my airline, taking into account the current regulations, pilots who do not fly ONLINE in IVAO or VATSIM their flights are rejected. We use smartCARS but I have detected that even if they select fly "ONLINE IN IVAO", for example,  they are not flying in IVAO and I want to prevent that.

 

I really appreciate the help!

 

Best Regards,

 

JULIO

  • Moderators
Posted
On 8/12/2021 at 1:21 PM, VIELMA16 said:

Hello, 


I would like to know a code with which the network in which a pilot has flown or is flying online can be detected (IVAO / VATSIM or OFFLINE).

 

In my airline, taking into account the current regulations, pilots who do not fly ONLINE in IVAO or VATSIM their flights are rejected. We use smartCARS but I have detected that even if they select fly "ONLINE IN IVAO", for example,  they are not flying in IVAO and I want to prevent that.

 

I really appreciate the help!

 

Best Regards,

 

JULIO

You need API from VATSIM or IVAO in order to be able to get your pilot's log info. If your ACARS client somehow logs their record in VATSIM or IVAO networks then you'll be able to fetch that data and apply rules to it. Otherwise, you'll have to just trust your pilots.

Posted
1 hour ago, Parkho said:

You need API from VATSIM or IVAO in order to be able to get your pilot's log info. If your ACARS client somehow logs their record in VATSIM or IVAO networks then you'll be able to fetch that data and apply rules to it. Otherwise, you'll have to just trust your pilots.

 

Thank you so much Parkho!

  • Like 1
Posted

IMHO, for IVAO, you can try to parse IVAO whazzup data, and compare it to your pilot's flight data. If something match (can be vid, and/or callsign, and/or strings at the remark), then the system tag it online per whazzup download. So you have to set minimum value for the whole flight to be reported as online flight.

Or you can try for their private APIv2, which require token for an approved VA.


But, still i can't write a code for that, so i would like to know too..

  • Moderators
Posted
33 minutes ago, YusufBudi said:

IMHO, for IVAO, you can try to parse IVAO whazzup data, and compare it to your pilot's flight data. If something match (can be vid, and/or callsign, and/or strings at the remark), then the system tag it online per whazzup download. So you have to set minimum value for the whole flight to be reported as online flight.

Or you can try for their private APIv2, which require token for an approved VA.


But, still i can't write a code for that, so i would like to know too..

If you get that API then I'll write the code for it! 

Posted
1 hour ago, Parkho said:

If you get that API then I'll write the code for it! 

Great..

This is the documentation link for IVAO APIv2 https://wiki.ivao.aero/en/home/devops/api/documentation-v2.


I don't know which one you need, but you might want to look at the user session on the private API set.


Also, to use the private API, va must be listed as official in IVAO, and only then they can request the token to use the API. Which i believe is not difficult for Vielma16 and Srilankan Virtual.

 



 

 

 

  • Moderators
Posted
1 hour ago, YusufBudi said:

Great..

This is the documentation link for IVAO APIv2 https://wiki.ivao.aero/en/home/devops/api/documentation-v2.


I don't know which one you need, but you might want to look at the user session on the private API set.


Also, to use the private API, va must be listed as official in IVAO, and only then they can request the token to use the API. Which i believe is not difficult for Vielma16 and Srilankan Virtual.

 



 

 

 

Get a token and send it to me in pv

Posted

Technically, what the main question owner wants does not need a private token or a private api access ... Those checks can be done simply with the public access (public whazzup data). 

 

You can fetch the data (with minimum 15 second interval for both networks), do your checks however you wish and then either store the data in a database table or delete it. If your acars software is sending live data to your phpvms, then you can do your checks live and mark the flight online/offline as you wish. If it is sending all the pirep info after the flight then you need to store the live whazzup data with (prefably utc) time codes (like one copy for every 5 mins and keep the last 24 hours) and then check them according to the pirep (prefably utc) times to see if the pilot was online or not during the flight.

 

Anyway, these are technical details ... I already did it for phpvms v7 with public api access, so it can be done for v5 too. 

 

Hope you can find your solution for v5.x series.

  • Like 1
  • Moderators
Posted
18 minutes ago, DisposableHero said:

Technically, what the main question owner wants does not need a private token or a private api access ... Those checks can be done simply with the public access (public whazzup data). 

 

You can fetch the data (with minimum 15 second interval for both networks), do your checks however you wish and then either store the data in a database table or delete it. If your acars software is sending live data to your phpvms, then you can do your checks live and mark the flight online/offline as you wish. If it is sending all the pirep info after the flight then you need to store the live whazzup data with (prefably utc) time codes (like one copy for every 5 mins and keep the last 24 hours) and then check them according to the pirep (prefably utc) times to see if the pilot was online or not during the flight.

 

Anyway, these are technical details ... I already did it for phpvms v7 with public api access, so it can be done for v5 too. 

 

Hope you can find your solution for v5.x series.

This is correct and can be done for v5.x as well

  • 3 years later...
Posted
On 8/17/2021 at 7:16 PM, DisposableHero said:

Technically, what the main question owner wants does not need a private token or a private api access ... Those checks can be done simply with the public access (public whazzup data). 

 

You can fetch the data (with minimum 15 second interval for both networks), do your checks however you wish and then either store the data in a database table or delete it. If your acars software is sending live data to your phpvms, then you can do your checks live and mark the flight online/offline as you wish. If it is sending all the pirep info after the flight then you need to store the live whazzup data with (prefably utc) time codes (like one copy for every 5 mins and keep the last 24 hours) and then check them according to the pirep (prefably utc) times to see if the pilot was online or not during the flight.

 

Anyway, these are technical details ... I already did it for phpvms v7 with public api access, so it can be done for v5 too. 

 

Hope you can find your solution for v5.x series.

@DisposableHero is this part of one of your modules in v7. I'm starting to work on setting one up using your modules.

 

Also do you know of for v5 someone already did something similar and shared it with the community?

  • Administrators
Posted
24 minutes ago, a7c12a5 said:

@DisposableHero is this part of one of your modules in v7. I'm starting to work on setting one up using your modules.

 

Also do you know of for v5 someone already did something similar and shared it with the community?

 

The post you replied to is over 3.5 years old. 

 

With the stable release of phpVMS v7 and the ongoing issues in v5 with shared hosting updates to MySQL/MariaDB versions, it's time for anyone on shared hosting to move to phpVMS v7.

Continued use of phpVMS v5 is almost impossible in todays shared hosting environment.

Posted
46 minutes ago, ProAvia said:

 

The post you replied to is over 3.5 years old. 

 

With the stable release of phpVMS v7 and the ongoing issues in v5 with shared hosting updates to MySQL/MariaDB versions, it's time for anyone on shared hosting to move to phpVMS v7.

Continued use of phpVMS v5 is almost impossible in todays shared hosting environment.

Yes, we are working on moving to v7. Thanks @ProAvia

Posted
3 hours ago, a7c12a5 said:

@DisposableHero is this part of one of your modules in v7. I'm starting to work on setting one up using your modules.

 

Also do you know of for v5 someone already did something similar and shared it with the community?

 

I have no knowledge about v5 addons, probably people are using such tools (as I saw in some old VA's doing online checks, it must be an addon or custom code VA's built for this purpose) ... 

 

For v7, DisposableBasic is capable of doing such checks (even can do callsign match checks on airline), store results as pirep field values, auto reject etc. You can check its readme file to have some more info.

 

Safe flights and good luck on v7 switch. 

  • Like 1
  • Moderators
Posted
10 hours ago, a7c12a5 said:

Yes, we are working on moving to v7. Thanks @ProAvia

I have the code for V5.x if you're interested.

 

$c['pid'] = PilotData::GetPilotCode($c['code'], $c['pilotid']);
$fieldvalue1 = PilotData::GetFieldValue($c['pid'], 'IVAO ID');
$fieldvalue2 = PilotData::GetFieldValue($c['pid'], 'VATSIM ID');
if($c['online'] == "ivao" OR $c['online'] == "IVAO"){
$c['online'] = '<a crossOrigin="anonymous" href="https://www.ivao.aero/Member.aspx?ID='.$fieldvalue1.'" target="_blank"><img src="https://status.ivao.aero/'.$fieldvalue1.'.png?dark=true" width="150px" height="auto"/></a>';
}

if($c['online'] == "vatsim" OR $c['online'] == "VATSIM"){
$c['online'] = '<a href="https://stats.vatsim.net/stats/' . $fieldvalue2 . '" target="_blank"><img src="https://my.vatsim.net/indicators/' . $fieldvalue2 . '" width="150px" height="auto"/></a>';
}

if($c['online'] == "offline" OR $c['online'] == "Offline"){
$c['online'] = 'Offline';
}

Place the above in your:

Quote

Modules/ACARS.php

Make sure the field values are spelled exactly the same as yours in your system. This will show the pilot badge for either IVAO or VATSIM on live flights table and on the badge it shows if the pilot is "online" or "offline". This will work for both smartCARS2 and smartCARS3. Let me know if you need help implementing this.

  • Like 1
Posted
15 hours ago, DisposableHero said:

 

I have no knowledge about v5 addons, probably people are using such tools (as I saw in some old VA's doing online checks, it must be an addon or custom code VA's built for this purpose) ... 

 

For v7, DisposableBasic is capable of doing such checks (even can do callsign match checks on airline), store results as pirep field values, auto reject etc. You can check its readme file to have some more info.

 

Safe flights and good luck on v7 switch. 

Thanks @DisposableHerohopefully everything works out. Thanks for all the work you have done. 

  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...