FlightAware Discussions

ADS-B Receiver Project Setup Scripts


#1847

I have installed the version 2.7.0 of the project and mistakenly removed the *.rdd files in the localhost/dump1090-local host folder. Is there a place i can download the rrd files only or a way to rebuild them when i try and build graphs it show missing files now. One other question if i change the port of the default server location to say port 100 instead of 80 would i have to change any config files to include that port other than the lightttp configs.


#1848

These are the data files.
Just do a reboot they are automatically generated. (you can also restart the collectd service)

As for port 80 changing to port 100 you will need to change the end of file /etc/collectd/collectd.conf
from

        <Module dump1090>
                <Instance localhost>
                        URL "http://localhost/dump1090"
                </Instance>
        </Module>

to

        <Module dump1090>
                <Instance localhost>
                        URL "http://localhost:100/dump1090"
                </Instance>
        </Module>

When you change lighttpd you need to restart that service here you need to restart collectd.


#1849

Is it possible to generate some performance graphs for dump978 similar to the dump1090 performance graphs?


#1850

dump978 does not output any statistics, so you would have to code that yourself :stuck_out_tongue_winking_eye:

No it is not possible easily, would be quite some work.
You would also need to modify/add to the data collection and maybe adjust the graph generation.


#1851

OrangePI PC - Workaround for “Temperature Graph is Missing”

(1) The Problem:

pi@orangepipc:~$ sudo ~/adsb-receiver/build/portal/graphs/make-collectd-graphs.sh 24h
[sudo] password for pi:
1949 (process ID) old priority 0, new priority 5
577x298
577x298
577x298
577x298
1107x284
577x298
577x298
577x298
577x298
577x298
ERROR: opening '/var/lib/collectd/rrd/localhost/table-localhost/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/table-localhost/gauge-cpu_temp.rrd': No such file or directory
ERROR: opening '/var/lib/collectd/rrd/localhost/interface-wlan0/if_octets.rrd': No such file or directory
577x298
1107x284
577x298
577x298
577x298
577x298
pi@orangepipc:~$

.

.

(2) The Workaround (Proposed by J Prochazka at Github)

1. Open file collectd.conf for editing

sudo nano /etc/collectd/collectd.conf

.

2. At end of above file, add following code

# Orange Pi specific values.
<Plugin table>
        <Table "/sys/devices/virtual/thermal/thermal_zone0/temp">
                Instance localhost
                Separator " "
                <Result>
                        Type gauge
                        InstancePrefix "cpu_temp"
                        ValuesFrom 0
                </Result>
        </Table>
</Plugin>

<Plugin "disk">
        Disk "mmcblk0"
        IgnoreSelected false
</Plugin>

Save file (Ctrl+o) and close it (Ctrl+x)

.

3. Reboot

sudo reboot

.

4. Wait 5 minutes, then update graphs

sudo ~/adsb-receiver/build/portal/graphs/make-collectd-graphs.sh 24h 

2994 (process ID) old priority 0, new priority 5
577x298
577x298
577x298
577x298
1107x284
577x298
577x298
577x298
577x298
577x298
577x298
577x298
ERROR: opening '/var/lib/collectd/rrd/localhost/interface-wlan0/if_octets.rrd': No such file or directory
577x298
1107x284
577x298
577x298
577x298
577x298
pi@orangepipc:~$

.

5. Clear browser cache (Ctrl+Shift+Delete) and Reloaded Browser (Ctrl+F5)

image

SUCCESS !!!


#1852

@ abcd567
Works also for Odroid X4. Thanks