ChatGPT suggests FlightAware Api

Just a fun thing I came acros when asking ChatGPT:

“write a python script that logs all flight numbers of aircraft passing over coordinates 52.43362183787448, 4.654246273341764 within a 50km radius and under 10km height to a line divided text file.”

I have no idea if the above code would work but I would love to be able to log what I asked ChatGPT for :wink:

Greetings,
Peter Lunk
Netherlands

That’s pretty interesting. Since you asked it to write a Python script for finding flights in a certain area, I guess you could ask it to write a script for other tasks related ADS-B flight tracking or even other scripts do do more general things in Linux. Curious to find out how long it took ChatGPT to respond to your request.

1 Like

It makes powershell pros out of google searchers :slight_smile:

Yes, it happily makes scripts. And if you report errors it apologizes and tries more to fix it.

It responded instantaniously.

Yah I know, been using ChatGPT mostly for programming snippets or inter code translations …
It’s saving me oceans of time.

Well, the question you asked was pretty specific:
“write a python script that logs all flight numbers of aircraft passing over coordinates 52.43362183787448, 4.654246273341764 within a 50km radius and under 10km height to a line divided text file.”

What if it were more general like:
“write a C program that logs all flight numbers of aircraft passing over a specified location.”

Edit to add:
Apparently StackOverflow has temporarily banned ChatGPT because of the large number of incorrect answers it provides.

Yes and they are right.
People upload untested code directly copied from ChatGPT.
ChatGPT can give some good code basics but everything needs to be checked for errors and tested in a properly setup environment before posting it as code awnsers or solutions.

PL.

1 Like

It’s pretty good at being confidently incorrect!

2 Likes

It uses excellent English when it writes something. Doesn’t sound robotic at all. I bet it could write a very good term paper for a school assignment.

I’ve used it to write some very simple bash scripts and it’s reasonable. I also asked it to give me some python code I needed for a Pi which controlled both an LED and a relay. Not only did it import all the required libraries but it all told me what gpio pins I should connect the LED and the relay to.

On the whole, it’s not bad but it’s far from perfect. It still needs someone who’s familiar with the language to check things over.

It’s very confident but also apologetic when you point out its mistakes and then it confidently tries again.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.