Ysurac / FlightAirMap

Open source project displaying live aircrafts, ships or trackers on 2D/3D map. Browse through the data based on a particular aircraft, airline, airport, tracker or vessel to search through the database or see extensive statistics. Can use ADS-B in SBS1 format (dump1090, Radarcape,...), VRS, VA (VATSIM, IVAO whazzup.txt, phpvms,...), ACARS (acarsdec, acarsdeco2), APRS, AIS as datasource.
https://www.flightairmap.com/
GNU Affero General Public License v3.0
516 stars 157 forks source link

Is there a forum to ask questions? Plane details missing #411

Open dterweij opened 6 years ago

dterweij commented 6 years ago

Can't find a community forum for this tool. And that IRC link seems not the place to ask something "quick" :)

Running dump190 and acarsdeco. I see the planes fine, source is dump1090. I see the latest ACARS messages. Fine so far. But what is FlightAirMap doing with the ACARS messages? If it is just to show some kind of log in "Latest ACARS messages" menu then it is not very usefull to me to feed ACARS messages.

I expected to see also ACARS info with the plane details. Like fuel, temperatures or whatever a message holds, number of received acars messages/dump1090 messages for that flight and so on and so on.

Also I see only dump1090 statistics. I dont see ACARS statistics.

I run acarsdeco, and running daemon-acars.php. I cant use the other fifo method because acarsdeco is running on a different machine, so file://... as host/url in Sources wont work.

When using plane zooming other then default. The planes showing much much smaller. I cant showing them bigger. I tried levels between +0 and +10 (as i think minus is making them smaller)

When can I expect a NL language for the program?

It is a nice tool, but it does not use/show all the feeded info.....

regards, Danny.

Ysurac commented 6 years ago

No forum. I answered on IRC after one minute...

ACARS messages are displayed in Latest ACARS messages, "important" messages are archived, ACARS message with coordinates are used to display the aircraft on map. Latest ACARS message is also displayed when you click on a plane on map.

Many messages doesn't have many information usable. Many are encrypted by airlines now. I don't make any statistics on ACARS messages, the amount is far lower than ADS-B messages. Message per second is often irrelevant.

TCP and UDP are supported for ACARS software.

What do you mean by plane zooming ?

You can expect NL language if you translate it to NL ( https://github.com/Ysurac/FlightAirMap/wiki/Translation )

It show as much info as possible. ACARS doesn't have so many data in them and are not sent so often. But you are free to contribute with source code.

dterweij commented 6 years ago

I dont see any ACARS info when I click on a plane. For now I see it as useless to feed. ADS-B is not that good here, Tho 260 KM range on a good day and most messages/s I saw was just over 500. In avarage it is 300/s here. But I only see mostly high altitude planes. I am between Schiphol and Groningen and only I see sometimes Groningen at arround 500meter altitude when they go land and then disappeares.

I see a lot ACARS here, and if i manualy check i see sometimes more planes in the ACARS messages then displayed on screen :)

Still there are funny manual messages to see. Like i saw today, Request clean team for vomits. So i like to see when I look at the plane/flight history such messages.

Also I would like a new setting, The receiver location. So the plain detail would show the air distance between my antenna and the plane (Like the internal web from dump1090 gmap.html).

So basicly, when a ACARS message is usefull and not encoded, just add it to the plane/flight history. I still see a lot usefull information that can be used but is not used.

Also I see in statistics, a Military seen count. But i want to know when it was seen with the details.

Also Police and Lifeline heli's can that be separate too? Would be nice to see the stats about them.

Plane zooming, You expect when you put in a positive number in teh settings thay a plane icon on the map would be a bit bigger. But it gets smaller on the map. Now, when i put in "0 "a zero, no planes are showed on the map. When I put a -1, the planes are very big and not useable. I want them on a general zoom level 7 on the map a bit bigger.

acarsdeco is a serving instance. daemon-acars.php listens. When you put in ACARS in Sources for running in deamon-spotter, it is trying to connect to the ACARS host. That is not working. It should listen like daemon-acars.php. Also when it cant connect to a host, but it can connect to dump1090, daemon-spotter.php fails to go on. It is in a loop, it realy wants to connect to all the sources. I would say, when it can connect to at least one source, try the other sources in the background. But dont make it a show stopper :)

I see airport arrival/depature times in ADS-B messages. FlightAirMap is not using them? Put them in the plane details please.

Why is it always that developers throw the ball back to the messenger? Many projects I ask questions or add missing things, says, do it yourself. I can code a bit yes, with help from google, but the result can never be implemented back :) It is ugly, it mostly can be shorter code, I dont follow guidelines, i am just a hobby coder, I can do something but is not worth to give back :) So I act as a wall and bounce the ball back to you. When I go fork it and make modifications myself, I do not follow the guidlines and GPL rules.

So, Fix it, Implement it, I am happy to test it :)

Ysurac commented 6 years ago

ACARS message are visible on map detail of each flight, but not on flight detail page. Can be added.

You can add your position in sources location, then a polar graph can be displayed on map.

In search page, Airlines select Only Military airlines and you can see latest military flights detected. I would need to check if I can identify some Police/airlife airlines.

If you speak of size of aircraft icon on map in install page, then it's in pixels.

For acars to listen you need to put a local IP as host (like 0.0.0.0).

Arrival/departure is not in ADS-B messages. Where do you see that ?

Open Source developers are not here to do everything you want for free. When you ask something and you are rude, then developers doesn't really want to help you... And this doesn't really help when you say that you don't care about license and the owner may need to contact his lawyer again.

So, I'm not your slave.

dterweij commented 6 years ago

Ok added my location in Sources location, lets see what happens after a few hours :) For now i only see a mark where the receiver is :)

Is the label check not too late in the class.acars.php code? Seems it is doing database queries but not using them as its skipped anyway.

(Modified the debug output to understand whats happening)

     pi3 3 31/07/2018 23:55:35 0 -21 X  G-OBYF  Q0 8 S30A 6B0000 
---------------------  Start Parsing  ---------------------------
Reg.: G-OBYF
Ident: 6B0000
Label: Q0
Message: 
Check if we have already received ModeS data...
- Checked for Ident: BLX
- Check for a flight with ident: BLX ...
- Add flight: BLX -> TOM513
No existing ModeS data found in database
Check label before parsing data to ACARS database: Q0
Skipped this type label: Q0
Not added to ACARS database!
Human readable data: ACARS link test
------------------  End parsing  ----------------

btw I could not find where the first line is printed, wanted to remove the spaces before that.

Well, about the Police/lifeliners heli's, I cant find to select all seen heli's. I cant trace them back at the moment, they are in the database but cant get them on screen yet . if i am rightm here it are specific heli types.

I found military crafts. Did not know they fly that much over the country lol

SBS data concerning the Depature/Arrival times (i have seen times after them).

DATA : hex : 4CC4D5 - ident : WOW7VK - ICAO : A320 - Departure Airport : LIMC - Arrival Airport : BIKF - Latitude : 53.14203 - Longitude : 4.20898 - waypoints :  - Altitude : 340 - Heading : 344 - Speed : 472 - Departure Airport Time :  - Arrival Airport time :  - Source Name : dump1090
\o/ Add WOW7VK from sbs in Live DB : -- Delete previous data -- (Not adding to archive)success

Some ACARS messages have this info also but cant find that info back in plane details (when clicked on plane on map).

About the Q0 messages, i might enable them as i want to try to make a list at the main screen with planes not seen but heard with ACARS. ACARS has a longer range then ADS-B. It means, that Detected planes amount is more then currently showed as number.

Planes out of sight with ADS-B but still receiving ACARS messages should be on the map following the animated line until a timeout is reached when no ACARS messages are received anymore. Thats why i want to enable the Q0 label messages also again, they act like a ping. Also information that is not used in FAM.

Okay I see now on the map a green area that shows as you say the distance. But that is not what i mean. When you click on a plane, you see at the right some info. There should be a field: Distance: 35KM. That means Antenna->airplane. So some calculation is needed, Antenne lat/long , airplaine lat/long, my given height, and plane altitude. Would give the output of air distance in KM (line of sight). Or add it below the plane icon as info label that moves with the plane :)

Again, i am not a programmer, i can do things but what you do in 5 minutes, I might do in 18 weeks. And what i have done in 18 weeks, you can shorten my added code with 2000 lines orso haha.

I looked at the code, but cant find the part yet where the plane details overlay is processed after you click on a plane on the map. And I bet if I have found that that I have to edit a whole different file or files to add more info to it.

So about acars as listen:

Instead starting: ./acarsdec -N 192.168.0.234:9990 -p 55 -r 0 131.525 131.550 131.725 131.800

I have to start it it as:

./acarsdec -N 0.0.0.0:9990 -p 55 -r 0 131.525 131.550 131.725 131.800

Funny that is not written in the --help file that it is possible :)

Then from installpage i add a new source, use the IP from machine where acarsdeco is running and port 9990. I try tomorrow.

Anyway, I go try to add things, but its for me only. My code never shall end up in a approved pull request :) And yes, i have experience with that, tried before but got the ball back to me again, and again and again, with change this, do that, add that method, why doing that, can much shorter... I just cant, because I dont know :) And nobody seems to help/change it so the code can be approved.

dterweij commented 6 years ago

FAM webserver: 192.168.0.206 - livingroom , ubuntu pc ADS-B: 192.168.0.99 (rtl dongle + 1090Mhz antenna) - attic , raspberry pi2 ACARS: 192.168.0.98 (rtl dongle + VHF antenna) - attic, raspberry pi2

Okay the 0.0.0.0 is not working.

daemon-spotter.php at FAM webserver:

Connect to all...
Connection in progress to 192.168.0.99:30003 (sbs)....
Connection failed to 192.168.0.98:9990 : 111 Connection refused
Connect to all...
Connection in progress to 192.168.0.99:30003 (sbs)....
Connection failed to 192.168.0.98:9990 : 111 Connection refused

Note: Thats what I mean with show stopper, its a endless loop until all connections are fine. FAM web page shows nothing, but actualy it can receive sbs data, So why does it stop and realy want to connect to the ACARS server before the FAM web page goes working?

ACARS at: 192.168.0.98 ./acarsdec -N 0.0.0.0:9990 -p 55 -r 0 131.525 131.550 131.725 131.800

dterweij commented 6 years ago

Ok added all _d and Q0 labels into the database aswell and they are now showing up in Latest ACARS messages.

     pi3 3 01/08/2018 14:31:40 0 -14 X  D-ABOB  Q0 2 S42A DE03FC 
---------------------  Start Parsing  ---------------------------
Reg.: D-ABOB
Ident: DE03FC
Label: Q0
Message: 
Check if we have already received ModeS data...
- Checked for Ident: CFG3FC
- Check for a flight with ident: CFG3FC ...
- Update ModeS data
Update Spotter_output table for: CFG3FC 
Check label before parsing data to ACARS database: Q0
Checking if already in Live ACARS table...
- Ping detected, just add it to database
- Added data to ACARS database
Human readable data: ACARS link test
------------------  End parsing  ----------------

The $message is defined with the word "Ping".

Now i have to find out how i show this to the plane details overlay box.

Also, i see fuul, temperature and more are stored into the database, but thats it. Never showed anywhere in the GUI.

I would like to see a timeline of a plane/flight. When first received message to last received message. So between that it shows all data received.

With the "Ping" enabled, now i am sure that i receive more planes with ACARS then ADS-B. Pitty not always the lat/lon is sended, but there are more planes then printed on the screen :)

When i click in Latest ACARS messages on ident , it shows No ident/callsign found in database. What is that meaning?

dterweij commented 6 years ago

I also see ACARS messages with positions not decoded. Seems not all messages are processed.

Message with a lot info not parsed:

PRESENT POSITION REPORT 
DMY 01AUG18,UTC 145528,FLT FPO6SR,LAT N 51.487,LON E 4.100,CAS 2317,WD 27723,WS 25,ALT 40000,ETA 1531,ENSB,LFPG,------,---,----, 12,, , ,-------,,,111320,

Message here should be some info in it to parse: RST51A01145554KLM83R EHAMEDDS

Message that should be parsed aswell? ETA51A01150215KLM69J EHAMEDDN011547EDDN 42

And a lot more messages that are not parsed.

dterweij commented 6 years ago

Message:

#DFB(POS-KLM11S -5033N00345E/153500 F240
RMK/FUEL 7.0 M0.69)

Message title : Message to/from terminal Message nature : Digital Flight Data Acquisition Unit Latitude : 50.33 Longitude : 3.45 Altitude : FL240 Fuel : 7 speed : 0.69

Plane is not showing on the map. Only visible in Latest ACARS messages, elsewhere not found.

That confirms my feeling that no ACARS received message with a position is showing on the map.

Ysurac commented 6 years ago

All messages are not parsed, I only parsed message format I received. To be added in Spotter Live DB, ACARS message must contains at least registration and latitude/longitude. To be displayed I need at least 2 messages and enough data for that.

dterweij commented 6 years ago

Message label 17 is not parsed. It holds lat/long data.

I see registration, lat/long but no plane on screen. Where can i set/change it to 1 message? If I look up planes in for example website FR24 with my received acars message reg + lat/long it is showing up. But not on my map :)

Also, like i said, Temperature, fuel and some more are not stored in a seperate field in the database. So i might add the fields and store them. How i can show it is another story but at least it is stored until i can show it.

If i see it right, FAM does not do anything for about 80% of received messages with ACARS data.

I dont know how to interpret all the messages but if i see data that can be used why not decode and store :) So much data available and not used at all :(