Skip to content

slintak/adsb2influx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ADS-B to InfluxDB

This Python script can read data from dump1090 in SBS1 (BaseStation) format, process it and then store them in InfluxDB.

Example usage:

$ python3 adsb2influx.py -ds 192.168.2.11 -dp 30003 -si 60 -iu http://localhost:8086 -db adsb

where

  • -ds 192.168.2.11: IP address where dump1090 is running,
  • dp 30003: TCP port of dump1090 SBS1 interface.
  • -iu http://localhost:8086: URL of InfluxDB,
  • -si 60: how often to write data to database (60 seconds).
  • -db adsb: name of InfluxDB database.

Preparing InfluxDB

  1. Install and run InfluxDB.
  2. Create new InfluxDB database via CLI: CREATE DATABASE adsb WITH DURATION 7d.

The retention policy can be set to your needs. The example uses 7 days.

Preparing dump1090

There are no special steps. Just make sure your dump1090 instance listens on TCP port 30003.

Credits

Big thanks to mikenye for his docker-piaware-to-influx project. This code started as minor tweaks of his work but was completely rewritten during the process :)

About

Store ADS-B messages from dump1090 into InfluxDB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages