FlightAirMap icon indicating copy to clipboard operation
FlightAirMap copied to clipboard

VAOS Source

Open MrDalle opened this issue 6 years ago • 17 comments

Hey!

since vaos released a couple days ago i would like to integrate it into your map with a source. We wrote a api for this and generated an oput on this URL https://dev.fswire.net/api/v1/acars/data?format=phpVMS

But somehow this ist now working.. both domains are using SSL.

Thanks!

MrDalle avatar Aug 14 '17 19:08 MrDalle

Using your source and phpVMS (phpvmacars) as format, it's working for me. Check the output of daemon-spotter.php

Ysurac avatar Aug 14 '17 19:08 Ysurac

//DATA SOURCES $globalSources = array(array('host' => 'https://dev.fswire.net/api/v1/acars/data?format=phpVMS','port' => '443','name' => '','format' => 'auto','sourcestats' => FALSE,'noarchive' => FALSE,'timezone' => 'Europe/Paris','callback' => FALSE));

This should be correct right?

MrDalle avatar Aug 14 '17 20:08 MrDalle

no. This can't work with format auto. Must be phpvmacars.

Ysurac avatar Aug 14 '17 20:08 Ysurac

How can i check the output of the deamon? in my plesk or does it have a log file?

MrDalle avatar Aug 14 '17 20:08 MrDalle

if you run it as cronjob and can't connect using SSH, redirect output to a file.

Ysurac avatar Aug 14 '17 20:08 Ysurac

still not working with our exisint installation. We will setup a vanilla map to test if its smth with the database or our modifications..

MrDalle avatar Aug 15 '17 07:08 MrDalle

The daemon, if $globalDebug is set to TRUE always report errors if there is any. If the daemon is working, it's another settings like $globalLiveInterval that is too low.

Ysurac avatar Aug 15 '17 09:08 Ysurac

$globalLiveInterval = '200'; which is standard i think

MrDalle avatar Aug 15 '17 09:08 MrDalle

It's in seconds, if your cronjob is more than that, increase it. You can increase it x10, it's not a problem.

Ysurac avatar Aug 15 '17 12:08 Ysurac

i installed a new map and tried it with a vanilla db but still no planes.. i attached my seetings file maybe smth is goign wrong here... i have no clue :( settings.zip

we have a second source but i think you need to implement some stuff of the vaos api or? https://dev.fswire.net/api/v1/acars/data

MrDalle avatar Aug 15 '17 12:08 MrDalle

I used your settings.php with my DB user/pass, and converting it to unix format (dos2unix) because it was edited using windows, and all is working. You may have to increase $globalLiveInterval, I don't know how often you run the cronjob.

Ysurac avatar Aug 15 '17 16:08 Ysurac

deamon-spotter is running */1 * * * *

i tried 60 - 120 -200 but no luck very very strange

MrDalle avatar Aug 15 '17 16:08 MrDalle

On your map, I can see 2 aircrafts now.

Ysurac avatar Aug 15 '17 17:08 Ysurac

Yes its working!!!! thank you!

MrDalle avatar Aug 15 '17 19:08 MrDalle

Your source seems to be in UTC, so you should set UTC timezone for $globalSource (if it's not already done):

$globalSources = array(array('host' => 'https://dev.fswire.net/api/v1/acars/data?format=phpVMS','port' => '443','name' => '','format' => 'phpvmacars','sourcestats' => FALSE,'noarchive' => FALSE,'timezone' => 'UTC','callback' => FALSE));

Ysurac avatar Aug 15 '17 20:08 Ysurac

If you don't want satellites, you can set $globalSatellite to FALSE.

I added VAOS support to FlightAirMap, should work. But I have a problem with usernames, it's sometimes: userSystem.Windows.Forms.Label, Text: 48

Ysurac avatar Aug 16 '17 13:08 Ysurac

That with the user name is normal. We ported the user table from phpvms to vaos. in phpvms there is no extra username column. So the importer set some rubish into the column.

mario-fehr avatar Aug 21 '17 07:08 mario-fehr