ADS-B Receiver Project Setup Scripts

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.

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.

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

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.

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 !!!

1 Like

@ abcd567
Works also for Odroid X4. Thanks

see my earlier post in this thread (#1834):

ABCD567 seems to have found my solution of adding to installed version. Better option is to update bash/portal/graphs.sh so it installs correctly. Given the demise of the CHIP SBC, just remove the option of “if, elseif” for RPI or CHIP. Modified the file today for a reinstall and it worked fine on my Orange Pi PC. A couple of other problems but I will explain in a separate post. Think I need to learn how to add to GitHub.

1 Like

The current version of the script fails with
“dpkg: error: cannot access archive ‘dump1090-fa_3.7.1_*.deb’: No such file or directory”

File “~/adsb-receiver/bash/variables.sh” has been updated to include version 3.7.1 of Piaware and dump1090. Looks like there is no version 3.7.1 of dump-1090-fa on GitHub.

So change 3.7.1 to 3.6.3 in the code:

FlightAware PiAware

DUMP1090_FA_VERSION=“3.7.1” change to 3.6.3
PIAWARE_VERSION=“3.7.1” **script does not check for this so anything will do

Still need to modify ~/adsb-receiver/bash/feeders/piaware.sh to allow installation on Debian stretch (currently hard coded for jessie)

Also install failed for lack of “fakeroot” package - added to CheckPackage list in~/adsb-receiver/bash/decoders/dump1090-fa.sh

1 Like

Sure there is: GitHub - flightaware/dump1090 at v3.7.1

Thanks Oliver. Like I said, I need to investigate GitHub a bit more.

Figured out how to get that version using the install script. Also realised that I was not pulling the latest version of Piaware.:blush:

In ~/adsb-receiver/bash/decoders/dump1090-fa.sh, search for "git clone! and add “–branch v3.7.1” Note that is two dashes before the “branch”. You should end up with:
git clone --branch v3.7.1 GitHub - flightaware/dump1090: Dump1090 is a simple Mode S decoder for RTLSDR devices

Do the same for ~/adsb-receiver/bash/feeders/piaware.sh to get version 3.7.1

2 Likes

I deleted dump1090 to reinstall dump1090-fa
But after opening the browser
Become like this
403 - Forbidden
Can help me?
Thank you

Does this address work?

http://127.0.0.1/dump1090-fa/

Also show the output of those commands:

sudo journalctl --no-pager -u lighttpd
ls /etc/lighttpd/conf-enabled 

Yes
In operation

Oh i see, you are looking for the adsb receiver project portal.

Don’t know why the portal would stop to work.
I suggest reinstalling the adsb receiver project if you want that.

If you are just looking for my version of the graphs, they are found at:
http://127.0.0.1/graphs1090/

Note that reinstalling the adsb receiver project will mess with my version of the graphs.
You can reinstall my graphs version if you prefer that version afterwards to restore them to their normal functionality.

Overall i don’t recommend installing the receiver project graphs and my graphs at the same time.

Ok
So I have to remove dump1090-fa and reinstall ADS-B Receiver Project
Will it be restored?

What, the portal page?
It should be.
But you will need to do the portal setup again:
GitHub - jprochazka/adsb-receiver: Create your own ADS-B receiver and web portal.

(after doing the install.sh GitHub - jprochazka/adsb-receiver: Create your own ADS-B receiver and web portal.)

Sorry
After I reinstalled
Become like this

Do not know which step is wrong?

Me neither.

Do you really need the portal?
I mean the /dump1090-fa and /graphs1090 websites are all that really matters, right? :stuck_out_tongue:

Did you logged into the admin page first?
127.0.0.1/admin

It’s most likely due to the fast-cgi config for lighttpd not being enabled.
(you see the php code instead of a page generated by the php code)

Or php-cgi is not installed, but that should be taken care of by the receiver script.

Please show:

ls /etc/lighttpd/conf-available
ls /etc/lighttpd/conf-enabled