Iunusov / Vatsim-Flight-Map

Vatsim / IVAO online map
https://vatmap.jsound.org
MIT License
27 stars 8 forks source link

Unable to use IVAO #5

Open donggua2096 opened 3 years ago

donggua2096 commented 3 years ago

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)

Iunusov commented 3 years ago

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

$ cd vatsim_parser/
$ ./parse.php ivao
Iunusov commented 3 years ago

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

donggua2096 commented 3 years ago

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 commented 3 years ago

Because private servers only have whazzup.txt

Iunusov commented 3 years ago

@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

donggua2096 commented 3 years ago

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

donggua2096 commented 3 years ago

NSEO UGZI9UKJ(D9YMV$ GC [Uploading whazzup.txt…]()

donggua2096 commented 3 years ago

NSEO UGZI9UKJ(D9YMV$ GC whazzup.txt

Iunusov commented 3 years ago

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

donggua2096 commented 3 years ago

I sent it to your email

donggua2096 commented 3 years ago

I also uploaded it

donggua2096 commented 3 years ago

![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 commented 3 years ago

![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

Iunusov commented 3 years ago

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

donggua2096 commented 3 years ago

no problem

donggua2096 commented 3 years ago

No, it's still the same

Iunusov commented 3 years ago

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

donggua2096 commented 3 years ago

If someone is connected properly

Iunusov commented 3 years ago

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

donggua2096 commented 3 years ago

I'll give it a try

Iunusov commented 3 years ago

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

donggua2096 commented 3 years ago

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

Iunusov commented 3 years ago

Thanks!

donggua2096 commented 3 years ago

I should thank you

Iunusov commented 3 years ago

@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.

donggua2096 commented 3 years ago

I tried your new version and still can't

donggua2096 commented 3 years ago

This is connected to the client whazzup.txt

donggua2096 commented 3 years ago

[Uploading whazzup.txt…]()

donggua2096 commented 3 years ago

![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 commented 3 years ago

![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 commented 3 years ago

I sent it to your email