Updating jprochazka/adsb-receiver project with new 3.7.1?

Does this 3.7.1 announcement apply to those who are not feeding with the PiAware image? If it does can anyone shed some light on how to update it?

All the experts must be asleep, so here is what a non-expert did.
I updated mine yesterday, everything, system, mut & portal, but you could just run ./install.sh
In the window “Feeder Installation Options” FlightAware PiAware will have (update), select this option and away you go.

1 Like

I wouldn’t install or update dump1090-fa and piaware with adsb-receiver at all and if anything use it only for the extra functions.
adsb-receiver tries compiling the stuff and that for dump1090-fa can produce some errors.

Installation of the packages is described here:
PiAware - dump1090 ADS-B integration with FlightAware - FlightAware

Updating the packages on Raspbian should be as easy as:

sudo apt update
sudo apt upgrade

might need this

sudo apt dist-upgrade

If it doesn’t get upgraded as you like with the other command.

Note also that you have to install it via the method linked above, not via adsb-receiver for updates with apt. (Otherwise the flightaware package repository is not installed)

This wont work on boards with architecture other than armhf.

The beauty of installation by J Prochazka’s adsb-receiver projects is that it can install dump1090-fa and Piaware on different types of boards and PC.

2 Likes

Yeah that’s indeed correct.

Does it work already with 3.7.1?
Is there still the problem with bladeRF?

I tried that first but it was not listed as an option after the system updates and menu presentation. I will try wiedhopfs suggestion and see if that does it

Have not used JP’s script lately, so cannot tell. I vaugly remember that I saw something on github indicating JP has fixed bladeRF issue, but not sure.

This weekend, I will write Stretch Lite on a spare microSD card, and try JP’s script to find out the status.

JP’s SCRIPT FAILS TO INSTALL dump1090-fa.

JP’s script builds dump1090-fa ver 3.6.3, then tries to install ver 3.7.1, and fails.

cd ${RECEIVER_BUILD_DIRECTORY}/dump1090-fa 2>&1
git clone https://github.com/flightaware/dump1090.git
cd ${RECEIVER_BUILD_DIRECTORY}/dump1090-fa/dump1090 2>&1
dpkg-buildpackage -b
dpkg-deb --build debian/dump1090-fa ..
dpkg-deb: building package 'dump1090-fa' in '../dump1090-fa_3.6.3_armhf.deb'.
... ... ... 
  Entering the dump1090-fa build directory...
  Installing the dump1090-fa package...
dpkg: error: cannot access archive 'dump1090-fa_3.7.1_*.deb': No such file or directory
  Checking that the dump1090-fa package was installed properly...
  INSTALLATION HALTED!
  UNABLE TO INSTALL A REQUIRED PACKAGE.
  SETUP HAS BEEN TERMINATED!
The package "dump1090-fa" could not be installed.
  ------------------------------------------------------------------------------
  Dump1090-fa setup halted.

.

WORKAROUND

(1) First execute following 3 commands:

sudo apt-get update
sudo apt-get install git
git clone https://github.com/jprochazka/adsb-receiver.git ~/adsb-receiver

.

(2) Next carry out following workaround for dump1090-fa
sudo nano ~/adsb-receiver/bash/decoders/dump1090-fa.sh

  1. Ctrl+w, type git pull, press Enter key. Cursor will jump to:
    git pull
    Below this line, add following lines:
    cd ~/adsb-receiver/build/dump1090-fa/dump1090
    git checkout v3.7.1
    cd ~/adsb-receiver

  2. Ctrl+w, type git clone, press Enter key. Cursor will jump to:
    git clone https://github.com/flightaware/dump1090.git
    Below this line, add following 3 lines:
    cd ~/adsb-receiver/build/dump1090-fa/dump1090
    git checkout v3.7.1
    cd ~/adsb-receiver

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

.

.

(3) Next carry out following workaround for Piaware
sudo nano ~/adsb-receiver/bash/feeders/piaware.sh

  1. Ctrl+w, type git pull, press Enter key. Cursor will jump to:
    git pull
    Below this line, add following lines:
    cd ~/adsb-receiver/build/piaware_builder
    git checkout v3.7.1
    cd ~/adsb-receiver

  2. Ctrl+w, type git clone, press Enter key. Cursor will jump to:
    git clone https://github.com/flightaware/piaware_builder.git
    Below this line, add following 3 lines:
    cd ~/adsb-receiver/build/piaware_builder
    git checkout v3.7.1
    cd ~/adsb-receiver

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

.

(4) Last execute the following commands:

cd ~/adsb-receiver
chmod +x install.sh
./install.sh

.

RESULTS

pi@raspberrypi:~ $ apt-cache policy dump1090-fa
dump1090-fa:
  Installed: 3.7.1
  Candidate: 3.7.1
  Version table:
 *** 3.7.1 100
        100 /var/lib/dpkg/status
pi@raspberrypi:~ $ apt-cache policy piaware
piaware:
  Installed: 3.7.1
  Candidate: 3.7.1
  Version table:
 *** 3.7.1 100
        100 /var/lib/dpkg/status

.

.

4 Likes

thanks @abcd567 worked ok for me.
evangel

Yep, my thanks too.
Updated my Intel Atom 64bit system :wink:

Nigel.

Already posted how to update to 3.7.1 using script

2 Likes

Thanks for pointing to your workaround :+1: in adsb-receiver thread.
Somehow I have missed it.

You have added --branch v3.7.1 to git clone command, whereas I have left git clone commansd as is, and used git checkout v3.7.1 as independent command immediately after git clone. Both your and my methods are OK.

Your workaround will work with a FRESH install of adsb-receiver project, but if upgrading an existing install by re-running existing ./install.sh, the install.sh script will detect that source-code is already existing, and it will NOT use git clone --branch v3.7.1 . It will use git pull, which will update existing code for version 3.6.3, and not for 3.7.1

This is the reason that in my workaround, I have added git checkout v3.7.3 at two locations, one immediately after git clone and other immediately after git pull

1 Like

@abcd567

Yes it was just a workaround. I needed v3.7.1 but no one else had provided an answer :astonished: so had to google for a fix. Looks like your approach is a better long-term method so why didn’t you find it sooner? :wink: :wink:

I like using this script for my Orange Pi since it builds everything for me BUT unless I include the portal with graphs, I don’t get any Skyview output - no dump1090*.php anywhere. Hence cannot use the grpahs by @wiedehopf :disappointed:

Installling dump1090-fa should suffice as long as you have a fresh image.
The portal screws around with lighttpd configuration files so once installed it’s somewhat annoying.
Just compile dump1090-fa and piaware manually, it’s not that complicated.

Next time you have the problem just shout and we can try to find out what’s going on.

I use JP’s script for non-arm machines (e.g. x64_x86, i386 etc), and other than Debian based OS (like Ubuntu etc) as the pre-built packages are not available for these architectures.

Since both the RPi and OrangePi PC have arm cpu, and both Raspbian Stretch and Armbian Stretch are Debian based, I use the pre-built package available.

I have created a bash script more than a year ago for my personal use. I have been using it for package install on RPi and OPiPC.

(1) DUMP1090-FA + 5 FEEDERS + GRAPHS

NOTE:
THIS SCRIPT DOES NOT INSTALL DUMP978-FA AND SKYVIEW978.
THESE TWO I BUILT FROM SOURCE CODE MANUALLY

sudo touch ~/install_dump1090-fa_5feeders.sh
sudo chmod +x ~/install_dump1090-fa_5feeders.sh
sudo nano ~/install_dump1090-fa_5feeders.sh

## COPY-PASTE CODE BELOW, SAVE, THEN RUN
cd ~/
./install_dump1090-fa_5feeders.sh

NOTES:

  1. FOLLOWING CODE TO BE COPY-PATED IN FILE install_dump-1090-fa_5feeders.sh
  2. REPLACE XXXXX, XX.XXXX, YY.YYYY, ZZZ WHEREVER THESE OCCUR BY THEIR ACTUAL VALUES.
#!/bin/bash
echo "updating....."
sudo apt-get update

## DUMP1090-FA INSTALLATION
echo "installing dump1090-fa......"
sudo wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.7.1_all.deb 
sudo dpkg -i piaware-repository_3.7.1_all.deb 
sudo apt-get update 
sudo apt-get install -y dump1090-fa 

## TERRAIN LIMIT RINGS
echo "Adding Terrain Limit Ring ...."
sudo wget -O /usr/share/dump1090-fa/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=12192"  

##  IMPORTANT NOTE: REPLACE XXXXXXXX BY YOUR HEYWHATSTHAT ID

## PIAWARE INSTALLATION
echo "installing Piaware data feeder......"
sudo apt-get install -y piaware 
sudo piaware-config allow-auto-updates yes 
sudo piaware-config allow-manual-updates yes 

echo "Adding Flightaware Feeder ID......"
sudo piaware-config feeder-id XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

## IMPORTANT NOTE: REPLACE XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX BY YOUR ACTUAL FEEDER ID

echo "Restarting Piaware Data feeder ...."
sudo systemctl restart piaware

## WIEDEHOPF's GRAPHS INSTALLATION
echo "Installing wiedehopf's Graphs...."
sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/graphs1090/master/install.sh)"
echo "Installation of Graphs completed..."

## PLANEFINDER DATA FEEDER INSTALLATION
echo "installing Planefider data feeder......"
wget http://client.planefinder.net/pfclient_4.1.1_armhf.deb
sudo dpkg -i pfclient_4.1.1_armhf.deb

echo "installing pfclient configuration......"
PF_FILE="/etc/pfclient-config.json"
sudo chmod 666 $PF_FILE
sudo cat <<\EOT > $PF_FILE
{
"tcp_address":"127.0.0.1",
"tcp_port":"30005",
"select_timeout":"10",
"data_upload_interval":"10",
"connection_type":"1",
"aircraft_timeout":"30",
"data_format":"1",
"latitude":"XX.XXXX",
"longitude":"YY.YYYY",
"sharecode":"XXXXXXXXXXXX"
}

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX, XX.XXXX, and YY.YYYY BY YOUR ACTUAL VALUES

echo ""
echo "Installation and configuration of PFClient completed....."
echo ""
echo "Restarting PFClient ....."
sudo systemctl restart pfclient

## RB24FEEDER INSTALLATION
echo "Starting installation of RadarBox24 feeder....."
sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"

## MLAT-CLIENT INSTALLATION
echo "Installing mlat-client....."
sudo apt-get install mlat-client

echo "Starting automatic configuration of RB24 feeder....."
RB24_FILE=/etc/rbfeeder.ini
sudo touch $RB24_FILE
sudo chmod 666 $RB24_FILE
sudo cat <<\EOT > $RB24_FILE
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sn=

lat=XX.XXXX
lon=YY.YYYY
alt=ZZZ

sat_used=0
sat_visible=0

[network]
mode=beast
external_port=30005
external_host=127.0.0.1

[mlat]
autostart_mlat=true

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX, XX.XXXX, YY.YYYY, ZZZ  BY YOUR ACTUAL VALUES

echo "Restating rbfeeder ...."
sudo systemctl restart rbfeeder

## OPENSKY FEEDER INSTALLATION
echo "Installing Opensky-network Feeder ....."
wget https://opensky-network.org/files/firmware/opensky-feeder_latest_armhf.deb
sudo dpkg -i opensky-feeder_latest_armhf.deb

## FR24FEED INSTALLATION
echo "Starting automatic configuration of FR24 feeder....."

FR24_FILE=/etc/fr24feed.ini
sudo touch $FR24_FILE
sudo chmod 666 $FR24_FILE
sudo cat <<\EOT > $FR24_FILE
receiver="beast-tcp"
host="127.0.0.1:30005"
fr24key="XXXXXXXXXXXXXXXX"

bs="no"
raw="no"
logmode="0"
windowmode="0"
mpx="no"
mlat="yes"
mlat-without-gps="yes"
use-http=yes
http-timeout=20

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX BY YOUR ACTUAL FR24KEY
echo ""

echo ""
echo echo "Starting installation of FR24 feeder....."
sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"

sudo systemctl restart fr24feed
echo "Installation and configuration of FR24 Feeder completed....."

.

(2) DUMP1090-MUTABILITY + 5 FEEDERS + GRAPHS

NOTE:
THIS SCRIPT DOES NOT INSTALL DUMP978-FA AND SKYVIEW978.
THESE TWO I BUILT FROM BUILT FROM SOURCE CODE MANUALLY

sudo touch ~/install_dump1090-mutab_5feeders.sh
sudo chmod +x ~/install_dump1090-mutab_5feeders.sh
sudo nano ~/install_dump1090-mutab_5feeders.sh

## COPY-PASTE CODE BELOW, SAVE, THEN RUN
cd ~/
./install_dump1090-mutab_5feeders.sh

NOTES:

  1. FOLLOWING CODE TO BE COPY-PATED IN FILE install_dump-1090-fa_5feeders.sh
  2. REPLACE XXXXX, XX.XXXX, YY.YYYY, ZZZ WHEREVER THESE OCCUR BY THEIR ACTUAL VALUES.
#!/bin/bash
echo "updating....."
sudo apt-get update

## DUMP1090-MUTABILITY INSTALLATION
echo "installing dump1090-mutability......"
echo "Installing packages needed to build, and needed to fulfill dependencies...."
sudo apt install -y git debhelper librtlsdr-dev lighttpd
sudo apt install -y rtl-sdr build-essential cron curl
sudo apt install -y fakeroot libusb-1.0-0-dev pkg-config 

echo "Installation of dump1090-mut dependencies & tools completed"

echo "CLONING THE SOURCE FILES....."
sudo git clone https://github.com/mutability/dump1090.git dump1090-mut  

echo "MOVING INTO CLONED DIRECTORY ...."
cd /home/pi/dump1090-mut  

echo "BUILDING DUMP1090-MUTABILITY PACKAGE ...."
sudo dpkg-buildpackage -b   

echo "INSTALLING THE DUMP1090-MUTABILITY PACKAGE ...."
cd ../
sudo dpkg -i dump1090-mutability_1.15~dev_*.deb   

echo "CONFIGURING THE WEB SERVER ...."
sudo lighty-enable-mod dump1090   
sudo systemctl force-reload lighttpd   

echo "STRETCH WORKAROUND (Ajax call Fail) ...."
sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules" 

echo "Adding Terrain Limit Ring ...."
sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=12192"  
##  IMPORTANT NOTE: REPLACE XXXXXXXX BY YOUR HEYWHATSTHAT ID

sudo dpkg-reconfigure dump1090-mutability 
echo "Installation of dump1090-mutability completed"

## PIAWARE INSTALLATION
echo "installing Piaware data feeder......"
sudo wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.7.1_all.deb 
sudo dpkg -i piaware-repository_3.7.1_all.deb 
sudo apt-get update 
sudo apt-get install -y piaware 
sudo piaware-config allow-auto-updates yes 
sudo piaware-config allow-manual-updates yes 

echo "Adding Flightaware Feeder ID......"
sudo piaware-config feeder-id XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

## IMPORTANT NOTE: REPLACE XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX BY YOUR ACTUAL FEEDER ID

echo "Restarting Piaware Data feeder ...."
sudo systemctl restart piaware

## WIEDEHOPF's GRAPHS INSTALLATION
echo "Installing wiedehopf's Graphs...."
sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/graphs1090/master/install.sh)"
echo "Installation of Graphs completed..."

## PLANEFINDER DATA FEEDER INSTALLATION
echo "installing Planefider data feeder......"
wget http://client.planefinder.net/pfclient_4.1.1_armhf.deb
sudo dpkg -i pfclient_4.1.1_armhf.deb

echo "installing pfclient configuration......"
PF_FILE="/etc/pfclient-config.json"
sudo chmod 666 $PF_FILE
sudo cat <<\EOT > $PF_FILE
{
"tcp_address":"127.0.0.1",
"tcp_port":"30005",
"select_timeout":"10",
"data_upload_interval":"10",
"connection_type":"1",
"aircraft_timeout":"30",
"data_format":"1",
"latitude":"XX.XXXX",
"longitude":"YY.YYYY",
"sharecode":"XXXXXXXXXXXX"
}

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX, XX.XXXX, and YY.YYYY BY YOUR ACTUAL VALUES

echo "Installation and configuration of PFClient completed....."
echo "Restarting PFClient ....."
sudo systemctl restart pfclient

## RB24FEEDER INSTALLATION
echo "Starting installation of RadarBox24 feeder....."
sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"

## MLAT-CLIENT INSTALLATION
echo "Installing mlat-client....."
sudo apt-get install mlat-client

echo "Starting automatic configuration of RB24 feeder....."

RB24_FILE=/etc/rbfeeder.ini
sudo touch $RB24_FILE
sudo chmod 666 $RB24_FILE
sudo cat <<\EOT > $RB24_FILE
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sn=

lat=XX.XXXX
lon=YY.YYYY
alt=ZZZ

sat_used=0
sat_visible=0

[network]
mode=beast
external_port=30005
external_host=127.0.0.1

[mlat]
autostart_mlat=true

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX, XX.XXXX, YY.YYYY, ZZZ  BY YOUR ACTUAL VALUES

echo "Restarting rbfeeder...."
sudo systemctl restart rbfeeder

## OPENSKY FEEDER INSTALLATION
echo "Installing Opensky-network Feeder ....."
wget https://opensky-network.org/files/firmware/opensky-feeder_latest_armhf.deb
sudo dpkg -i opensky-feeder_latest_armhf.deb

## FR24FEED INSTALLATION
echo "Starting automatic configuration of FR24 feeder....."

FR24_FILE=/etc/fr24feed.ini
sudo touch $FR24_FILE
sudo chmod 666 $FR24_FILE
sudo cat <<\EOT > $FR24_FILE
receiver="beast-tcp"
host="127.0.0.1:30005"
fr24key="XXXXXXXXXXXXXXXX"

bs="no"
raw="no"
logmode="0"
windowmode="0"
mpx="no"
mlat="yes"
mlat-without-gps="yes"
use-http=yes
http-timeout=20

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX BY YOUR ACTUAL FR24KEY
echo ""

echo ""
echo echo "Starting installation of FR24 feeder....."
sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"

sudo systemctl restart fr24feed
echo ""
echo "Installation and configuration of FR24 Feeder completed....."

1 Like

I used to compile them manually - just got lazy.

Had a look at the portal install script to try to figure out what it was doing. It installs php, php-cgi and php-json. Did that manually but something still wrong - phpinfo.php gives a 403 error.

I’ll ditch this effort and install manually.

I like the ability to uninstall your graphs. The OrangePi has been locking up at intervals - still pings but no remote access. One of the logs before the crash mentioned “rrd: illegal attempt to update using time xx”. TIme differences seemed to be the problem even though ntp is running and getting the time. Whether that really was the problem, being able to run two systems, one with graphs, one without may confirm the problem (or not!).

:scream: I didn’t realise that!!!

I’ll give that a go.

That shouldn’t affect the system itself.
It’s just shown when you restart collectd for example or the time is indeed being changed.

@idh
@wiedehopf

In my post above, I have added script for dump1090-mutability. It has now two scripts:

(1) DUMP1090-FA + 5 FEEDERS + GRAPHS
(2) DUMP1090-MUTABILITY + 5 FEEDERS + GRAPHS