Skip to content

at8eqeq3/adsb-viz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ADS-B visualization

Another attempt to visualize data from ADS-B receiver.

Requirements

How to run

First of all, make sure your ADS-B receiver is running and exposes it's data feed. For dump1090 it's --net-sbs-port <ports> option. Set appropriate values in redis_feeder.py.

Next, start redis server. Set connection details in both redis_feeder.py and redis_plotter.py.

Start redis_feeder.py. It will grab data from ADS-B receiver and send to redis. I use SETEX command so points will disappear after some amount of time. You can tweak this value as you wish.

mkdir plot or whatever you want (don't forget to change the path in redis_plotter.py). Set your antenna location (to convert coordinates to pixels) and run redis_plotter.py. This will start to fill you destination directory fith frames.

ffmpeg -y -r 30 -pattern_type glob -i "plot/*.png" -r 30 output.mp4 when you think there're enough frames. Feel free to change framerate (the -r <num> option) or play with output format.

D1rty Haxx

  • Expiring keys in redis. Way better than some sort of limited size buffer
  • Looks like we can store all required data in key names. Thus, we can use result of SCAN itself. It works much faster than iterating.

What's not perfect

  • Coeffs for coords-to-pixels convertion are set by wild guess. This, for my setup, results in too wide picture with almost empty left side. Probably will be better to define a desired area in coords, create image based on this and just skip coords that don't fit.
  • This also leads to redis_plotter.py failures when coords are out of guessed bounds. Probably solution for previous problem will solve this too.
  • Time intervals are almost random and mostly depend on how long we receive data from redis. Would be better to use some sort of scheduler -- built into script or even cron.
  • Maybe draw some POIs, like airports, beacons, radar...
  • Still, I want some 3D...

About

ADS-B receiver feed visualization

Topics

Resources

Stars

Watchers

Forks

Languages