For those who want to use ADSBX image on Pi Zero with Grafana dashboard

Discussion in 'Tutorials' started by MDA, Apr 23, 2018.

  1. MDA

    MDA Administrator Staff Member

    This tutorial is based on tests performed by Jhonny Monclair (many thanks for time spent...).
    VLAN and other extra stuff was not tested, it only describes how to make Grafana dashboard working.
    Download latest ADSBx image:
    https://www.adsbexchange.com/forum/threads/working-new-adsbexchange-base-image-v1-0.618988/

    Burn it to SD card and edit adsb-config.txt (follow instructions at: https://www.adsbexchange.com/forum/threads/new-adsbexchange-base-image-v1-0.618988/)

    Insert card into your Pi and power it up. Wait until it will reboot and SSH into your Pi (user: pi password: adsb123 port 3226).

    Remove existing Grafana instance:
    Code:
    sudo apt-get remove grafana
    
    Download and install Grafana for armv6:
    Code:
    wget https://dl.bintray.com/fg2it/deb-rpi-1b/main/g/grafana_5.0.4_armhf.deb
    sudo dpkg -i grafana_5.0.4_armhf.deb
    Grafana should be now installed and working...open a browser at <IPofYourPi:3000> and login into the dashboard (user: adsb password: adsb or user: admin password: admin).
    If everything went as expected, all the gauges related to system parameters (cpu temp, voltage, memory, etc) will be "broken" and unreadable (next step will fix the panel)... Anyway, the part related to dump1090 and decoded messages should be ok. Logout and close the dashboard.
    The missing system gauges are under the control of Node_exporter. As for Grafana, it must be replaced by a right build (node_exporter-0.15.2).
    Code:
    wget https://github.com/prometheus/node_exporter/releases/download/v0.15.2/node_exporter-0.15.2.linux-armv6.tar.gz
    tar xzf node_exporter-0.15.2.linux-armv6.tar.gz
    sudo cp node_exporter-0.15.2.linux-armv6/node_exporter /usr/local/bin
    Node_exporter should be now installed, but inactive... In order to "ignite" all processes reboot your Pi.
    After reboot, ssh into Pi, login into dashboard and check. Everything should be now fixed and working.

    New message from Jhonny.
    If you wan't to decrease CPU load: first make backup of dump1090 script
    Code:
    cp adsbexchange-dump1090_maint.sh adsbexchange-dump1090_maint.orig
    Edit adsbexchange-dump1090_maint.sh
    Code:
    sudo nano adsbexchange-dump1090_maint.sh
    delete "--aggressive" and "--dcfilter" arguments.
    Save changes and reboot your Pi
     
    Last edited: Apr 23, 2018
    Dutchyb, Jhonny Monclair and James like this.