kc8 / piawaredump1090wrapper

PiAware and DUMP1090 API and Wrapper for Python
MIT License
5 stars 1 forks source link

Informations #2

Open Dimdimtri opened 3 years ago

Dimdimtri commented 3 years ago

Hi, thank you for all your hard work. I am interested in your code:

` from aircraft import Aircraft from queryscanner import QueryScanner

q = QueryScanner("http://RPI_IP_ADDR_AS_STRING") aircraft = q.get_all_aircraft()

for i in aircraft: print(i) `

But I had a question. When I enter the python that you put in example, the print gives me in results only the id of the plane. I will also be interested in displaying other information such as speed, alt and others ...

Thank you in advance for your answer

kc8 commented 3 years ago

Hi,

Sorry for the delay in a response.

If the data is not available from the receiver the code will skip over it. It looks like I did not add any kind of error code/handling if this happens, instead it passes over it.

If you are interested, this function is here

Thank you