FlightAware Discussions

ADS-B Receiver Project Setup Scripts

On Stretch: php7.0-cgi
On Buster: php7.3-cgi

apt-cache policy php7.0-cgi
apt-cache policy php7.3-cgi

https://raw.githubusercontent.com/jprochazka/adsb-receiver/master/bash/portal/install.sh

## CHECK FOR PREREQUISITE PACKAGES

DISTRO_PHP_VERSION="5"
case $RECEIVER_OS_DISTRIBUTION in
debian raspbian)
if [[ $RECEIVER_OS_RELEASE -ge "9" ]]; then DISTRO_PHP_VERSION="7.0"; fi
;;
ubuntu)
if [ `bc -l <<< "$RECEIVER_OS_RELEASE >= 16.04"` -eq 1 ]; then DISTRO_PHP_VERSION="7.0"; fi
if [ `bc -l <<< "$RECEIVER_OS_RELEASE >= 17.10"` -eq 1 ]; then DISTRO_PHP_VERSION="7.1"; fi
if [ `bc -l <<< "$RECEIVER_OS_RELEASE >= 18.04"` -eq 1 ]; then DISTRO_PHP_VERSION="7.2"; fi
;;
esac

# Install PHP.
CheckPackage php${DISTRO_PHP_VERSION}-cgi
CheckPackage php${DISTRO_PHP_VERSION}-json

**Ok
two pictures

01
02 **

Let’s check if php-cgi is installed properly:

sudo apt update
sudo apt install php-cgi --reinstall
sudo apt install php-json --reinstall
sudo systemctl restart lighttpd

If that doesn’t help, i’m all out of ideas.

Hello
still the same
thank you for your help
It seems that you need to refill the software

Quote from: https://discussions.flightaware.com/t/piaware3-on-a-pi4-quick-dirty/55812

git clone https://github.com/jprochazka/adsb-receiver.git ~/adsb-receiver && cd $_
sed -i 's/\"9\" \]\]\; then DISTRO_PHP_VERSION=\".*\"/\"9\" \]\]\; then DISTRO_PHP_VERSION=\"7.2\"/' bash/portal/install.sh
sed -i 's/DUMP1090_FA_VERSION=\".*\"/DUMP1090_FA_VERSION=\"3.7.2\"/' bash/variables.sh
sed -i 's/PIAWARE_VERSION=\".*\"/PIAWARE_VERSION=\"3.7.2\"/' bash/variables.sh
sed -i 's/MLAT_CLIENT_VERSION=\".*\"/MLAT_CLIENT_VERSION=\"0.2.10\"/' bash/variables.sh
sed -i 's/MLAT_CLIENT_TAG=\".*\"/MLAT_CLIENT_TAG=\"0.2.10\"/' bash/variables.sh
sed -i 's/jessie/stretch/g' bash/feeders/piaware.sh
sed -i 's/dpkg-buildpackage -b 2>\&1/sudo rm -rf cx_Freeze-5.1.1\n    git clone https:\/\/github.com\/anthony-tuininga\/cx_Freeze.git cx_Freeze-5.1.1\n    dpkg-buildpackage -b 2>\&1/' bash/feeders/piaware.sh
chmod +x install.sh
./install.sh
1 Like

I have the same issue, have you been able to fix it?

Hello, friend
I have problem, Look Fail: Ajax call fail.

[2020-05-13 16:44 -03] multilateration data requested
[2020-05-13 16:44 -03] logged in to FlightAware as user Myfriend1
[2020-05-13 16:44 -03] site statistics URL: https://flightaware.com/adsb/stats/user/Myfriend1#stats-24008
[2020-05-13 16:44 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:44 -03] adept reported location: -10.16347, -48.31430, 66ft AMSL
[2020-05-13 16:45 -03] 0 msgs recv’d from dump1090 (0 in last 1m); 0 msgs sent to FlightAware
[2020-05-13 16:45 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:46 -03] no ADS-B data program seen listening on port 30005 for 71 seconds, next check in 60s
[2020-05-13 16:46 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:47 -03] no ADS-B data program seen listening on port 30005 for 131 seconds, next check in 60s
[2020-05-13 16:48 -03] no ADS-B data program seen listening on port 30005 for 191 seconds, next check in 60s
[2020-05-13 16:48 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:49 -03] no ADS-B data program seen listening on port 30005 for 251 seconds, next check in 60s
[2020-05-13 16:49 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:50 -03] no ADS-B data program seen listening on port 30005 for 311 seconds, next check in 60s
[2020-05-13 16:50 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:51 -03] attempting to start dump1090-fa using ‘systemctl --no-block restart dump1090-fa.service < /dev/null’…
[2020-05-13 16:51 -03] dump1090 start appears to have been successful
[2020-05-13 16:51 -03] no ADS-B data program seen listening on port 30005 for 371 seconds, trying to start it…
[2020-05-13 16:51 -03] attempting to start dump1090…
[2020-05-13 16:51 -03] no ADS-B data program seen listening on port 30005 for 10 seconds, next check in 60s
[2020-05-13 16:51 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:53 -03] no ADS-B data program seen listening on port 30005 for 131 seconds, next check in 60s
[2020-05-13 16:53 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:54 -03] no ADS-B data program seen listening on port 30005 for 191 seconds, next check in 60s
[2020-05-13 16:54 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:55 -03] no ADS-B data program seen listening on port 30005 for 251 seconds, next check in 60s
[2020-05-13 16:55 -03] 0 msgs recv’d from dump1090 (0 in last 5m); 0 msgs sent to FlightAware
[2020-05-13 16:55 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:56 -03] no ADS-B data program seen listening on port 30005 for 311 seconds, next check in 60s
[2020-05-13 16:57 -03] dump1090 start appears to have been successful
[2020-05-13 16:57 -03] attempting to start dump1090…
[2020-05-13 16:57 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:58 -03] no ADS-B data program is serving on port 30005, not starting multilateration client yet
[2020-05-13 16:59 -03] no ADS-B data program seen listening on port 30005 for 131 seconds, next check in 60s

Dear all,
My setup is Pi zero W + FA Orange Dongle + Piaware SD 3.8.1
My problems are:
Problem 1: PHP
E: Unable to locate package php7.0-cgi
E: Couldn’t find any package by glob ‘php7.0-cgi’
E: Couldn’t find any package by regex ‘php7.0-cgi’
Checking if the package php7.0-cgi is installed… [INSTALLATION ATTEMPT FAILED]
Attempting to Install the package php7.0-cgi again in 5 seconds (ATTEMPT 5 OF 5)…

Problem 2: mysql-server
E: Package ‘mysql-server’ has no installation candidate

Thanks in advance.

James

The main problem here is that this project is largely unmaintained at the moment. If you just want to get the stats collection and graphing you are probably better if installing this:

Unless there are specific features that you want from this portal setup. I wouldn’t worry about fixing it and just use what works.

3 Likes

PHP7.0 is meanwhile updated. You will need to install a newer version. Same for MySQL whic is now named MariaDB with same functionality.

As caius mentioned i would not spend that much time on an outdated project

1 Like

Fully agree

However as an academic interest only, the project was updated upto Debian 9 (Stretch) and Ubuntu 18 (Bionic). It can not detect Debian Buster (10), and hence tries to install default php5.

If someone is keen to use it, then he has to edit file adsb-receiver/bash/portal/install.sh, and change the line:
DISTRO_PHP_VERSION="5"
to:
DISTRO_PHP_VERSION="7.3"

ALTERNATIVELY,
change line:

        if [[ $RECEIVER_OS_RELEASE -ge "9" ]]; then DISTRO_PHP_VERSION="7.0"; fi

To:

        if [[ $RECEIVER_OS_RELEASE -ge "10" ]]; then DISTRO_PHP_VERSION="7.3"; fi

 
 

pi@piaware:~ $ sudo nano adsb-receiver/bash/portal/install.sh  
... ... ...
... ... ...
## CHECK FOR PREREQUISITE PACKAGES

DISTRO_PHP_VERSION="5"
case $RECEIVER_OS_DISTRIBUTION in
    debian|raspbian)
        if [[ $RECEIVER_OS_RELEASE -ge "9" ]]; then DISTRO_PHP_VERSION="7.0"; fi
        ;;
    ubuntu)
        if [ `bc -l <<< "$RECEIVER_OS_RELEASE >= 16.04"` -eq 1 ]; then DISTRO_PHP_VERSION="7.0"; fi
        if [ `bc -l <<< "$RECEIVER_OS_RELEASE >= 17.10"` -eq 1 ]; then DISTRO_PHP_VERSION="7.1"; fi
        if [ `bc -l <<< "$RECEIVER_OS_RELEASE >= 18.04"` -eq 1 ]; then DISTRO_PHP_VERSION="7.2"; fi
        ;;
esac

# Install PHP.
CheckPackage php${DISTRO_PHP_VERSION}-cgi
CheckPackage php${DISTRO_PHP_VERSION}-json

EDIT :

In addition to updating php version in file adsb-receiver/bash/portal/install.sh as above, the version numbers of dump1090-fa, piaware, and mlat-client need to be updated in file adsb-receiver/bash/variables.sh

pi@piaware:~ $ sudo nano adsb-receiver/bash/variables.sh

## SOFTWARE VERSIONS 
# The ADS-B Receiver Project
PROJECT_VERSION="2.7.2" 
# RTL-SDR OGN
RTLSDROGN_VERSION="0.2.5" 
# FlightAware PiAware
DUMP1090_FA_VERSION="3.7.1"
PIAWARE_VERSION="3.7.1" 
# PlaneFinder Client
PLANEFINDER_CLIENT_VERSION_ARM="4.1.1"
PLANEFINDER_CLIENT_VERSION_I386="4.1.1" 
# Flightradar24 Client
FLIGHTRADAR24_CLIENT_VERSION_I386="1.0.18-5" 
# mlat-client
MLAT_CLIENT_VERSION="0.2.6"
MLAT_CLIENT_TAG="v0.2.6" 
# PhantomJSPHANTOMJS_VERSION="2.1.1" 

Thank you! :grinning: :grinning: :grinning: It works flawlessly for my Piaware 3.8.1 SD.

2 Likes