Vatsim-Flight-Map icon indicating copy to clipboard operation
Vatsim-Flight-Map copied to clipboard

Unable to use IVAO

Open donggua2096 opened this issue 3 years ago • 31 comments

An error is reported when the unit data is obtained ,error: "not found"} error: "not found" It's in this catalog:http://47.94.145.202/api/getclients.php?t=ivao [ ~ KDO_@ QY3@IP(D6G _)G LM @@$7XM%}G)TVT%P7FQ

](url)

donggua2096 avatar Nov 02 '20 10:11 donggua2096

It's required to parse IVAO data as well (every 5 minutes):

$ cd vatsim_parser/
$ ./parse.php ivao

Iunusov avatar Nov 03 '20 09:11 Iunusov

So, you can specify both: define("STATUS_URL_IVAO", "https://www.ivao.aero/whazzup/status.txt"); define("STATUS_URL_VATSIM", "http://status.vatsim.net/");

and periodically run ./parse.php (e.g. vatsim) and: ./parse.php ivao

Iunusov avatar Nov 03 '20 09:11 Iunusov

It should be a private FSD with only one server. Can I directly transfer define(“ STATUS_URL_IVAO”,“ https://www.ivao.aero/whazzup/status.txt ”); Change to define(“ STATUS_URL_IVAO”,“ https://xxxxxx/whazzup.txt ”);

donggua2096 avatar Nov 04 '20 01:11 donggua2096

Because private servers only have whazzup.txt

donggua2096 avatar Nov 04 '20 01:11 donggua2096

@donggua2096, I committed small changes in order to support private server. https://github.com/Iunusov/Vatsim-Flight-Map/commit/c4f7c618c6e88d927230d3bcd00ed32725a86661 Please refer to config.php and define: define("WHAZZUP_URL_IVAO", "https://xxxxxx/whazzup.txt"); // for private servers And then use: ./parse.php ivao

Iunusov avatar Nov 04 '20 09:11 Iunusov

I've followed your instructions. Now I'll prompt you:cannot parse data

donggua2096 avatar Nov 04 '20 09:11 donggua2096

NSEO UGZI9UKJ(D9YMV$ GC Uploading whazzup.txt…

donggua2096 avatar Nov 04 '20 09:11 donggua2096

NSEO UGZI9UKJ(D9YMV$ GC whazzup.txt

donggua2096 avatar Nov 04 '20 09:11 donggua2096

@donggua2096, if you send me your whazzup.txt. I will be able to fix this (probably, format was changed)

Iunusov avatar Nov 04 '20 09:11 Iunusov

I sent it to your email

donggua2096 avatar Nov 04 '20 09:11 donggua2096

I also uploaded it

donggua2096 avatar Nov 04 '20 09:11 donggua2096

![DateStamp]04/11/2020 09:36 !GENERAL VERSION = 1 RELOAD = 1 UPDATE = 20201104093650 CONNECTED CLIENTS = 0 CONNECTED SERVERS = 1 !CLIENTS !SERVERS FSD01:localhost:City Country:FSD Windows server:1

donggua2096 avatar Nov 04 '20 09:11 donggua2096

![DateStamp]04/11/2020 09:36 !GENERAL VERSION = 1 RELOAD = 1 UPDATE = 20201104093650 CONNECTED CLIENTS = 0 CONNECTED SERVERS = 1 !CLIENTS !SERVERS FSD01:localhost:City Country:FSD Windows server:1

donggua2096 avatar Nov 04 '20 09:11 donggua2096

Probably, fixed: https://github.com/Iunusov/Vatsim-Flight-Map/commit/a028d1e90f9d6fe26f897a2b2d21b2245a2e9a89 Can you try it?

Iunusov avatar Nov 04 '20 10:11 Iunusov

no problem

donggua2096 avatar Nov 04 '20 10:11 donggua2096

No, it's still the same

donggua2096 avatar Nov 04 '20 10:11 donggua2096

when no clients connected, it might still return an error ("cannot parse data")

Iunusov avatar Nov 04 '20 10:11 Iunusov

If someone is connected properly

donggua2096 avatar Nov 04 '20 10:11 donggua2096

Ok, then I need whazzup.txt with at least one client connected :)

Iunusov avatar Nov 04 '20 10:11 Iunusov

I'll give it a try

donggua2096 avatar Nov 04 '20 10:11 donggua2096

If you send me your whazzup.txt with clients connected. I think I will fix it today.

Iunusov avatar Nov 04 '20 10:11 Iunusov

Well, I'll try to give you the result today. We have different time difference

donggua2096 avatar Nov 04 '20 10:11 donggua2096

Thanks!

Iunusov avatar Nov 04 '20 10:11 Iunusov

I should thank you

donggua2096 avatar Nov 04 '20 10:11 donggua2096

@donggua2096, you can use the latest master (https://github.com/Iunusov/Vatsim-Flight-Map/commit/6649780c567c6f507fe22c62f46e892af9fc3e2c) and just specify WHAZZUP_URL_IVAO in your config.php. Hopefully it should be enough.

Iunusov avatar Nov 04 '20 16:11 Iunusov

I tried your new version and still can't

donggua2096 avatar Nov 05 '20 06:11 donggua2096

This is connected to the client whazzup.txt

donggua2096 avatar Nov 05 '20 06:11 donggua2096

Uploading whazzup.txt…

donggua2096 avatar Nov 05 '20 06:11 donggua2096

![DateStamp]05/11/2020 06:04 !GENERAL VERSION = 1 RELOAD = 1 UPDATE = 20201105060418 CONNECTED CLIENTS = 1 CONNECTED SERVERS = 1 !CLIENTS CSC8633:1234:HCL:PILOT::29.966534:105.904030:10222:411:B738/L:410:ZUCK:FL50:ZUUU:FSD:1:1:1202:0:40:0:I:230:250:0:45:2:30:ZUCK:/r/ XSquawkBox:DCT:::::::20201105055020 !SERVERS FSD:localhost:City Country:FSD:1

donggua2096 avatar Nov 05 '20 06:11 donggua2096

![DateStamp]05/11/2020 06:04 !GENERAL VERSION = 1 RELOAD = 1 UPDATE = 20201105060418 CONNECTED CLIENTS = 1 CONNECTED SERVERS = 1 !CLIENTS CSC8633:1234:HCL:PILOT::29.966534:105.904030:10222:411:B738/L:410:ZUCK:FL50:ZUUU:FSD:1:1:1202:0:40:0:I:230:250:0:45:2:30:ZUCK:/r/ XSquawkBox:DCT:::::::20201105055020 !SERVERS FSD:localhost:City Country:FSD:1

donggua2096 avatar Nov 05 '20 06:11 donggua2096

I sent it to your email

donggua2096 avatar Nov 05 '20 06:11 donggua2096