Added the option to read from a previously saved file of socket30003 output. #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 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.
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.