Skip to content
Joe Prochazka edited this page Dec 23, 2015 · 30 revisions

The ADS-B Feeder Project wiki ✈️

Obtaining And Using This Software

sudo apt-get install git
git clone https://github.com/jprochazka/adsb-feeder.git
cd adsb-feeder
chmod +x install.sh
./install.sh

Some assembly may still be required...

I am currently still in the process of "automating" all the configuration options so until then after executing the scripts you may need to do some manual configuration depending on the installation options you selected. In particular setting the latitude and longitude of your receiver and if needed enabling the wlan0 bandwidth graph.

The Max Range Graph

If you chose to install the web portal you will need to specify the latitude and longitude of your receiver in order for the system to calculate the values to be used to generate the Max Range graph. You will specify the latitude and longitude of your receiver in the file /etc/default/dump1090-mutability.

sudo nano /etc/default/dump1090-mutability

Within this file set the latitude and longitude of your receiver by specifying them within the following variables. LAT would by the latitude of your receiver and LON the longitude. You can get the latitude and longitude for your address by using this page on my main web site. https://www.swiftbyte.com/toolbox/geocode

# If set, supplies a reference location for local position decoding.
LAT=""
LON=""

Once you are done editing this file save it and restart dump1090-mutability.

sudo /etc/init.d/dump1090-mutability restart

Display Temperature And Range Graphs Using The Metric System

The scripting is already in place to make these graphs metric instead of imperial but they have to be manually switched on. TO switch these graphs to metric simply comment out the following lines in the file make-collectd-graphs.sh.

temp_graph_imperial /var/www/html/graphs/system-$2-temperature-$4.png /var/lib/collectd/rrd/$1/table-$2 "$3" "$4" "$5"
range_graph_imperial /var/www/html/graphs/dump1090-$2-range-$4.png /var/lib/collectd/rrd/$1/dump1090-$2 "$3" "$4" "$5"

Then uncomment the following lines.

#temp_graph_metric /var/www/html/graphs/system-$2-temperature-$4.png /var/lib/collectd/rrd/$1/table-$2 "$3" "$4" "$5"
#range_graph_metric /var/www/html/graphs/dump1090-$2-range-$4.png /var/lib/collectd/rrd/$1/dump1090-$2 "$3" "$4" "$5"

Displaying The wlan0 Bandwidth Graph

By default the bandwidth graph displayed is one monitoring the Ethernet interface of your system in particular the interface named eth0. If you wish to display a graph showing bandwidth statistics for your wireless interface, generally named wlan0 you will need to uncomment a few items manually in order to do so. While making these changes feel free to comment out the corresponding lines regarding eth0 if you do not wish to display the bandwidth graph for the eth0 interface any longer.

In ~/adsb-feeder/build/portal/graphs/make-collectd-graphs.sh you need to uncomment the following lines.

wlan0_graph /var/www/html/graphs/system-$2-wlan0_bandwidth-$4.png /var/lib/collectd/rrd/$1/interface-wlan0 "$3" "$4" "$5"

The following line will also need to be uncommented in the file /etc/collectd/collectd.conf.

Interface "wlan0"

Now restart collectd.

sudo /etc/init.d/collectd restart

Finally open the file /var/www/html/graphs/index.html and uncomment the following block of HTML and lines of JavaScript.

<div class="col-md-6 text-center">
    <a id ="system-wlan0_bandwidth-link" href="#">
        <img id="system-wlan0_bandwidth-image" class="img-responsive" src="#" alt="Wlan0 Bandwidth Usage">
    </a>
</div>
...
$("#system-wlan0_bandwidth-image").attr("src", "system-" + $hostName + "-wlan0_bandwidth-" + $timeFrame + ".png?time=" + $timestamp);
...
$("#system-wlan0_bandwidth-image").attr("href", "system-" + $hostName + "-wlan0_bandwidth-" + $timeFrame + ".png");