Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

icthieves
Copy link

@icthieves icthieves commented Jun 28, 2017

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:

  • The $infile variable should only be checked once for each socket connection or reconnection, So i don't expect any performance hit.
  • the readcsv option is documented and handled in the same way as all other CLI options
  • i've tested it with a ~30MB file i was capturing today (not being able to make a heatmap with it is what generated this pull request)
  • Here's a screenshot of the heatmap generated from one day's worth of captured socket data.
    I have no idea if this is typically for such a sparse heatmap, as i had a very small data set. It is included here for your judgement.
    heatmap
  • The data was captured with

sudo wget -O - -q http://localhost:30003 >> /path/to/flights.csv

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant