tedsluis / dump1090.socket30003

collect dump1090 flight positions using socket30003 and save them as csv
GNU General Public License v3.0
31 stars 5 forks source link

Added the option to read from a previously saved file of socket30003 output. #6

Open icthieves opened 7 years ago

icthieves commented 7 years ago

the -readcsv option takes a file in dump1090 socket30003 format and processes it. This is just a hacky wrapper around the existing parsing loop. If the $infile variable is defined, $SOCKET represents the file, instead of a socket directly.

example: ./socket30003.pl -readcsv="/path/to/captured/30003.csv"

I tried to write everything in the same style as the original work, though the last line of logging (line 796) may be using LOG() arguments you want to change (currently, "W", when the file is finished processing)

Other considerations:

I'm planning to collect another few days worth of data in CSV format to test the change further, but it seems to be working to the best of my knowledge.

Thanks for your work on dump1090, I just got my rtl-sdr yesterday and i'm having a blast!

Sidenote: It seems the heatmap is offset a few degrees horizontally from the Airport (YVR, on Sea Island, just above Richmond in the picture). Clearly the google map is slightly off, but i'm not sure how to correct it.