Open donggua2096 opened 3 years ago
It's required to parse IVAO data as well (every 5 minutes):
$ cd vatsim_parser/
$ ./parse.php ivao
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
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 ”);
Because private servers only have whazzup.txt
@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
I've followed your instructions. Now I'll prompt you:cannot parse data
[Uploading whazzup.txt…]()
@donggua2096, if you send me your whazzup.txt. I will be able to fix this (probably, format was changed)
I sent it to your email
I also uploaded it
![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
Probably, fixed: https://github.com/Iunusov/Vatsim-Flight-Map/commit/a028d1e90f9d6fe26f897a2b2d21b2245a2e9a89 Can you try it?
no problem
No, it's still the same
when no clients connected, it might still return an error ("cannot parse data")
If someone is connected properly
Ok, then I need whazzup.txt with at least one client connected :)
I'll give it a try
If you send me your whazzup.txt with clients connected. I think I will fix it today.
Well, I'll try to give you the result today. We have different time difference
Thanks!
I should thank you
@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.
I tried your new version and still can't
This is connected to the client whazzup.txt
[Uploading whazzup.txt…]()
![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
![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
I sent it to your email
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 [
](url)