coolacid / Buildroot-sdr

Buildroot modules used for SDR and ADSB
1 stars 0 forks source link

dump1090 rrd/collectd python collection #3

Open coolacid opened 6 years ago

coolacid commented 6 years ago

Tracking rrd/collectd issues here

coolacid commented 6 years ago

Problem 1. The tools to collect data from dump1090 is python bindings in collectd - this is broken

coolacid commented 6 years ago

I don't remember the details on what is broken, but I went down this rabbit hole once. It would probably be better, or easier to write a pure C version of the collector directly for collectd - also removing the requirements of python bloat.

coolacid commented 6 years ago

collectd has the ability to get and parse JSON data from websites. This is exactly what the python module does as well. Well, not totally, there are SOME bits that are processed. This does however mean we might be able to mimic most of the existing data without too much hassle.

Expect a new module soon-ish that will dep on dump1090 and nginx starting to make some graphs.

Help will be required to flesh out the final details, but a start is a start.

coolacid commented 6 years ago

Ones I still need to figure out how to mimic:

Some limited math, which should be able to be done in aggs/chains?: https://github.com/jprochazka/adsb-receiver/blob/6479a6c06af23edc25f9df7e780accd7f2c0012c/build/portal/graphs/dump1090.py#L110-L150

Some actual math which would need an external "function" of some sort to pull off: https://github.com/jprochazka/adsb-receiver/blob/6479a6c06af23edc25f9df7e780accd7f2c0012c/build/portal/graphs/dump1090.py#L193-L232