Solutions to common problems using dump1090 variants and ADS-B feeders
wiedehopf / adsb-scripts Goto Github PK
View Code? Open in Web Editor NEWSolutions to common problems for rtl_sdr / ADS-B stuff
License: MIT License
Solutions to common problems for rtl_sdr / ADS-B stuff
License: MIT License
Solutions to common problems using dump1090 variants and ADS-B feeders
is there any possibility to get notified when the install/upgrade script should be re-run because of an (important) update of readsdb/tar1090? unfortunately you do not provide github releases :(
In a couple of your script I have noticed you use the mictronics version of readsb instead of your own. Wouldn’t it be more useful to change that?
How do I fix this?
Thanks for making this available.
Can supply more info is needed.
Cloning into '/usr/local/share/adsb-wiki/readsb-install/git'...
remote: Enumerating objects: 109, done.
remote: Counting objects: 100% (109/109), done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 109 (delta 20), reused 57 (delta 8), pack-reused 0
Receiving objects: 100% (109/109), 272.34 KiB | 297.00 KiB/s, done.
Resolving deltas: 100% (20/20), done.
Checking connectivity... done.
dpkg-buildpackage: unknown option or argument -ui
as far as i know "-10" activate the AGC of RTLchip which isnt true AGC. is that right?
i want disable the "-10" setting, i tried it by removing "-10" from /etc/default/autogain1090 (using readsb not dump1090-fa).
( stock ga=(.... 48.0 49.6 -10) changed to> ga=(....48.0 49.6)
but autogain1090 set "-10" anyway. isnt it the right way or is it not possible to disable it ?
of course i restart the service and/or reboot the system.
hi i have a problem with install readsb-install.sh
i have a error
dpkg-checkbuilddeps: Fehler: Nicht erfüllte Bauabhängigkeiten: librtlsdr-dev
Hi, wanted to give you a heads-up that I've got some changes planned to how dump1090-fa's config file works in 6.0, which are likely to break your scripts that do sed-driven replacements on that file.
The current changes are on the dev branch: https://github.com/flightaware/dump1090/blob/dev/debian/dump1090-fa.default
The tl;dr is that rather than having the config directly include a long list of command-line options, instead the config has separate vars for different features and the start-dump1090-fa script assembles those into options.
If there's anything unworkable in the new format (or if there are settings you want to see in there that aren't directly supported), let me know and I'll see what I can do?
Hi,
The drivers for V.4 DVB-Ts are out @ https://github.com/rtlsdrblog/rtl-sdr-blog and are downward compatible to V.3 receivers, so you might consider switching.
Thanks and best regards,
Michael
Ran following installation script on Ubuntu 24.04 (noble) amd64
sudo bash -c "$(wget -O - https://github.com/wiedehopf/adsb-scripts/raw/master/readsb-install.sh)"
The above script failed to install readsb with following error message:
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
make: *** [Makefile:136: readsb.o] Error 1
[ERROR] Error in line 115 when executing: make "-j${THREADS}" AIRCRAFT_HASH_BITS=16 RTLSDR=yes OPTIMIZE="$CFLAGS" "$@"
I was trying to install readsb via your install script and the script throws a "Permission denied" error when trying to mount root as rw. The script is running under sudo and I am inside a LXC container.
mihanson@ads:~$ sudo bash -c "$(wget -O - https://github.com/wiedehopf/adsb-scripts/raw/master/readsb-install.sh)"
--2024-07-02 19:35:28-- https://github.com/wiedehopf/adsb-scripts/raw/master/readsb-install.sh
Resolving github.com (github.com)... 140.82.116.4
Connecting to github.com (github.com)|140.82.116.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/readsb-install.sh [following]
--2024-07-02 19:35:28-- https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/readsb-install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10590 (10K) [text/plain]
Saving to: 'STDOUT'
100%[===================================================================================================================================================================================>] 10.34K --.-KB/s in 0s
2024-07-02 19:35:29 (161 MB/s) - written to stdout [10590/10590]
[sudo] password for mihanson:
665325 (process ID) old priority 0, new priority 10
mount: /: permission denied.
dmesg(1) may have more information after failed mount system call.
[ERROR] Error in line 62 when executing: mount -o remount,rw /
mihanson@ads:~$ mount
/dev/rbd0 on / type ext4 (rw,relatime,stripe=16)
none on /dev type tmpfs (rw,relatime,size=492k,mode=755,uid=100000,gid=100000,inode64)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
proc on /proc/sys/net type proc (rw,nosuid,nodev,noexec,relatime)
proc on /proc/sys type proc (ro,relatime)
proc on /proc/sysrq-trigger type proc (ro,relatime)
sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
sysfs on /sys/devices/virtual/net type sysfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
udev on /dev/bus/usb/003 type devtmpfs (rw,nosuid,relatime,size=32565096k,nr_inodes=8141274,mode=755,inode64)
proc on /dev/.lxc/proc type proc (rw,relatime)
sys on /dev/.lxc/sys type sysfs (rw,relatime)
none on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime)
lxcfs on /proc/cpuinfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/diskstats type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/loadavg type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/meminfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/slabinfo type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/stat type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/swaps type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /proc/uptime type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
lxcfs on /sys/devices/system/cpu type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)
udev on /dev/full type devtmpfs (rw,nosuid,relatime,size=32565096k,nr_inodes=8141274,mode=755,inode64)
udev on /dev/null type devtmpfs (rw,nosuid,relatime,size=32565096k,nr_inodes=8141274,mode=755,inode64)
udev on /dev/random type devtmpfs (rw,nosuid,relatime,size=32565096k,nr_inodes=8141274,mode=755,inode64)
udev on /dev/tty type devtmpfs (rw,nosuid,relatime,size=32565096k,nr_inodes=8141274,mode=755,inode64)
udev on /dev/urandom type devtmpfs (rw,nosuid,relatime,size=32565096k,nr_inodes=8141274,mode=755,inode64)
udev on /dev/zero type devtmpfs (rw,nosuid,relatime,size=32565096k,nr_inodes=8141274,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
devpts on /dev/ptmx type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
devpts on /dev/console type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
devpts on /dev/tty1 type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
devpts on /dev/tty2 type devpts (rw,nosuid,noexec,relatime,gid=100005,mode=620,ptmxmode=666,max=1026)
none on /proc/sys/kernel/random/boot_id type tmpfs (ro,nosuid,nodev,noexec,relatime,size=492k,mode=755,uid=100000,gid=100000,inode64)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,uid=100000,gid=100000,inode64)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=13039580k,nr_inodes=819200,mode=755,uid=100000,gid=100000,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,uid=100000,gid=100000,inode64)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysctl.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
tmpfs on /var/cache/fontconfig type tmpfs (rw,nosuid,nodev,relatime,size=32000k,mode=755,uid=100000,gid=100000,inode64)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=6519788k,nr_inodes=1629947,mode=700,uid=101000,gid=101000,inode64)
Hi, can you add a description to the repository? How about this one:
Solutions to common problems using dump1090 variants and ADS-B feeders.
Thanks!
Hello, great project, thanks! I am trying to use dual receivers for a 1090 and 978 setup, using the nooelec V5 sdr. When i tried to install the dump978-fa from the https://github.com/wiedehopf/adsb-wiki/wiki/Dual-1090-978-setup page using the below command, i get the error listed below the code. Is there something I need to change to make this work? Do I need to change anything based on my SDR also, or does that part not really matter?
Code enterred:
dpkg --print-architecture | grep -qs -e armhf && URL="https://flightaware.com/adsb/piaware/files/packages/pool/piaware/f/flightaware-apt-repository/flightaware-apt-repository_1.1_all.deb"
wget -O /tmp/piaware-repo.deb "$URL"
sudo dpkg -i piaware-repo.deb
sudo apt update
sudo apt install -y dump978-fa soapysdr-module-rtlsdr
sudo sed -i -e 's/RECEIVER_OPTIONS.*/RECEIVER_OPTIONS="--sdr-gain 43.9 --sdr driver=rtlsdr,serial=978 --format CS8"/' /etc/default/dump978-fa
sudo systemctl restart dump978-fa
ERROR:
http://: Invalid host name.
dpkg: error: cannot access archive 'piaware-repo.deb': No such file or directory
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
212 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package dump978-fa
sed: can't read /etc/default/dump978-fa: No such file or directory
Failed to restart dump978-fa.service: Unit dump978-fa.service not found.
After fresh install of my ADS-B feeder, I was wondering why it had an older version shown on the web-interface than my other one installed several years ago.
Workaround:
- wget -O fr24.deb https://repo-feed.flightradar24.com/rpi_binaries/fr24feed_1.0.34-0_armhf.deb
+ wget -O fr24.deb https://repo-feed.flightradar24.com/rpi_binaries/fr24feed_1.0.46-2_armhf.deb
And everything worked like a charm on my raspberry pis.
Building it fails on Debian GNU/Linux 11 (bullseye). Any idea why?
`
cc -Wdate-time -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=""wiedehopf git: 98e86ab (commited: Fri Sep 3 15:25:38 2021 0200)"" -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -DAIRCRAFT_HASH_BITS=15 -DENABLE_RTLSDR -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -g -O2 -ffile-prefix-map=/usr/local/share/adsb-wiki/readsb-install/git=. -fstack-protector-strong -Wformat -Werror=format-security -march=native -Wno-format-truncation -c receiver.c -o receiver.o
globe_index.c: In function ‘load_blob’:
globe_index.c:1293:116: error: array subscript 8261 is above array bounds of ‘struct craftArray[8261]’ [-Werror=array-bounds]
1293 | (stderr, "hex: %06x, old_index: %d, new_index: %d, GLOBE_MAX_INDEX: %d\n", a->addr, Modes.globeLists[new_index].len, new_index, GLOBE_MAX_INDEX );
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~
In file included from globe_index.c:1:
readsb.h:439:23: note: while referencing ‘globeLists’
439 | struct craftArray globeLists[GLOBE_MAX_INDEX+1];
| ^~~~~~~~~~
readsb.h:639:22: note: defined here ‘Modes’
639 | extern struct _Modes Modes;
| ^~~~~
cc -Wdate-time -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=""wiedehopf git: 98e86ab (commited: Fri Sep 3 15:25:38 2021 0200)"" -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -DAIRCRAFT_HASH_BITS=15 -DENABLE_RTLSDR -std=c11 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -g -O2 -ffile-prefix-map=/usr/local/share/adsb-wiki/readsb-install/git=. -fstack-protector-strong -Wformat -Werror=format-security -march=native -Wno-format-truncation -c aircraft.c -o aircraft.o
cc1: all warnings being treated as errors
make[2]: *** [Makefile:94: globe_index.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/usr/local/share/adsb-wiki/readsb-install/git'
make[1]: *** [debian/rules:46: override_dh_auto_build] Error 2
make[1]: Leaving directory '/usr/local/share/adsb-wiki/readsb-install/git'
make: *** [debian/rules:61: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Something went wrong building the debian package, exiting!
`
Hello,
i need help adapting the script.
So far, I have adapted all relevant path information and the installation has been successful.
dump1090-mutability-autogain.sh
#!/bin/bash
#script to change gain
mkdir -p /usr/local/bin
cat >/usr/local/bin/dump1090-mutability-autogain <<"EOF"
#!/bin/bash
low=1.0
high=5.0
ga=(0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 -10)
tmp=/var/tmp/dump1090-mutability-autogain
mkdir -p $tmp
stats=/run/dump1090-mutability/stats.json
source /etc/default/dump1090-mutability-autogain
if ! [[ -f $stats ]]; then echo "$stats not found, is dump1090-mutability running?"; exit 0; fi
oldstrong=$(cat $tmp/strong 2>/dev/null)
oldtotal=$(cat $tmp/total 2>/dev/null)
if [[ -z $oldstrong ]] || [[ -z $oldtotal ]]; then
oldstrong=0
oldtotal=0
fi
strong=$(grep total $stats | sed 's/.strong_signals":([0-9]).remote./\1/' | tee $tmp/strong)
total=$(grep total $stats | sed 's/.accepted":[([0-9]).remote./\1/' | tee $tmp/total)
if [[ -z $strong ]] || [[ -z $total ]]; then echo "unrecognized format: $stats"; exit 0; fi
if [[ $oldtotal > $total ]] || [[ $oldstrong > $strong ]] || [[ $oldtotal == $total ]]; then
oldstrong=0
oldtotal=0
fi
strong=$((strong - oldstrong))
total=$((total - oldtotal))
percent=$(awk "BEGIN {printf "%.3f", $strong * 100 / $total}")
strong=$percent
if [[ $strong == "nan" ]]; then echo "Error, can't automatically adjust gain!"; exit 1; fi
oldgain=$(grep -P -e 'gain \K[0-9-.]*' -o /etc/default/dump1090-mutability)
gain_index=28
for i in "${!ga[@]}"; do
if [[ "${ga[$i]}" = "${oldgain}" ]]; then gain_index="${i}"; fi
done
if ! awk "BEGIN{ exit ($strong > $low) }" && ! awk "BEGIN{ exit ($strong < $high) }"; then
echo "No gain change needed, percentage of messages >-3dB is in nominal range. (${strong}%)"
exit 0
fi
if ! awk "BEGIN{ exit ($strong < $low) }"
then gain_index=$(($gain_index+1)); action=Increasing; fi
if ! awk "BEGIN{ exit ($strong > $high) }" && [[ $gain_index == 0 ]]
then echo "Gain already at minimum! (${strong}% messages >-3dB)"; exit 0; fi
if ! awk "BEGIN{ exit ($strong > $high) }"
then gain_index=$(($gain_index-1)); action=Decreasing; fi
gain="${ga[$gain_index]}"
if [[
if [ -f /boot/piaware-config.txt ]
then
piaware-config rtlsdr-gain $gain
fi
if ! grep gain /etc/default/dump1090-mutability &>/dev/null; then sed -i -e 's/RECEIVER_OPTIONS="/RECEIVER_OPTIONS="--gain 49.6 /' /etc/default/dump1090-mutability;fi
sed -i -E -e "s/--gain .?[0-9].?[0-9] /--gain $gain /" /etc/default/dump1090-mutability
systemctl restart dump1090-mutability
#reset numbers
echo 0 > $tmp/strong
echo 0 > $tmp/total
echo "$action gain to
EOF
chmod a+x /usr/local/bin/dump1090-mutability-autogain
config_file=/etc/default/dump1090-mutability-autogain
if ! [ -f $config_file ]; then
cat >/etc/default/dump1090-mutability-autogain <<"EOF"
#!/bin/bash
low=1.0
high=9.0
ga=(0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 -10)
EOF
fi
rm -f /etc/cron.d/dump1090-mutability-autogain
cat >/lib/systemd/system/dump1090-mutability-autogain.service <<"EOF"
[Unit]
Description=autogain for dump1090-mutability
[Service]
ExecStart=/usr/local/bin/dump1090-mutability-autogain
EOF
cat >/lib/systemd/system/dump1090-mutability-autogain.timer <<"EOF"
[Unit]
Description=Nightly automic gain adjustment for dump1090-mutability
[Timer]
OnCalendar=--* 02:30:00
RandomizedDelaySec=30m
[Install]
WantedBy=timers.target
EOF
if grep jessie /etc/os-release >/dev/null; then
sed -i -e '/Randomized/d' /lib/systemd/system/dump1090-mutability-autogain.timer
fi
systemctl daemon-reload
systemctl enable dump1090-mutability-autogain.timer
systemctl restart dump1090-mutability-autogain.timer
echo --------------
echo "All done!"
If I understand the construct correctly, the gain value is then entered in /etc/default/dump1090-mutability.
The corresponding lines should be here:
/usr/local/bin/dump1090-mutability-autogain
The problem now is, that it does not work with dump1090-mutability, that there is not the entry
RECEIVER_OPTIONS="--device-index 0 --gain 49.6 --ppm 0",
but
GAIN="30".
/etc/default/dump1090-mutability at the moment similar to dump1090-fa
What do I need to do to enter the gain value in GAIN=?
Thank you for every hint!
Best regards, Carsten
As I can’t create an issue on readsb repo:
I created a Docker image with readsb using GitHub actions. The makefile is using march=native. This lead to a non working binary on my nehalem xeons. Currently I solve it by:
‘’’
sed -i “s/march=native/mtune=nehalem/g Makefile”
‘’’
My suggestion is to move from march to mtune (which would allow it to run everywhere (x86) instead of just that cpu generation)
Hi,
I used the install.sh script for the Bundle install for dump1090fa. So far so good.
However, when I try to access the three different web interfaces, only /dump1090-fa is accessible. Both /dump1090 and /tar1090 return a 403 Error in the browser.
My guess is it's a permission error but I cannot find anything in the lighthttp log files.
Does anyone here have any pointers as to where to adjust permissions or find out more?
-- nick
- wget -O fr24.deb https://repo-feed.flightradar24.com/rpi_binaries/fr24feed_1.0.46-2_armhf.deb
+ wget -O fr24.deb https://repo-feed.flightradar24.com/rpi_binaries/fr24feed_1.0.48-0_armhf.deb
update manual:
Step 1.3 - Would you like to participate in MLAT calculations? (yes/no)$:
no
Step 3.A - Enter antenna's latitude (DD.DDDD)
DD.DDDD
Step 3.B - Enter antenna's longitude (DDD.DDDD)
DDD.DDDD
Step 3.C - Enter antenna's altitude above the sea level (in feet)
HHH
Step 4.1 - Receiver selection:
Enter your receiver type (1-7)$:
4 (ModeS Beast ... yes really, no it doesn't matter what receiver you're actually running, this means a beast protocol connection to readsb, the decoder at the top of this guide)
Step 4.2 - Please select connection type:
Enter your connection type (1-2)$:
1 (Network ... yes really, it will connect to the decoder at the top of this guide using local loopback)
Step 4.3A - Please enter your receiver's IP address/hostname (127.0.0.1 is correct for everyone, means same computer)
127.0.0.1
Step 4.3B - Please enter your receiver's data port number
30005
Step 5.1 - Would you like to enable RAW data feed on port 30334 (yes/no)$:
no
Step 5.2 - Would you like to enable Basestation data feed on port 30003 (yes/no)$:
no
readsb-gain
and readsb-set-location
are not accessible like described here:
adsb-scripts/readsb-install.sh
Lines 248 to 251 in 3028c5b
Hi,
I just changed my decoder from ‘rtlsdr’ to ‘hackrf one’, but I found that the dump1090 could not work anymore, which shows ‘ no supported device found ‘. I’ve tried to change the ‘RECEIVER = rtlsdr’ to ‘RECEIVER = hackrf’ in the dump1090 config file, but it still not work. I don’t know if the version from the automated install is not supported to hackrf? Or is there any way to solve this problem?
Thanks!
I tried to install "readsb-install.sh" and got this error message as those long params don't exist in Debian Jessie (Raspbian).
dpkg-buildpackage: unknown option or argument --build-profiles=rtlsdr
dpkg-buildpackage: unknown option or argument --no-sign
Solution is to use the short form:
if ! dpkg-buildpackage -b -Prtlsdr -uc
I realise this may not be in the correct section as it relates to the Wiki page.
https://github.com/wiedehopf/adsb-wiki/wiki/Raspbian-Lite:-ADS-B-receiver
I received an e-mail from Flightradar that the current version that I was running was soon to be phased out.
"We have noticed that you are using an older version of Flightradar24 data sharing software (1.0.29-8) that we are phasing out. We would therefore like you to upgrade to the latest version (1.0.34-0) before Feb 28, 2023."
I went to the wiki page which I used to install it originally using the command sudo bash -c "$(wget -O - https://github.com/wiedehopf/adsb-scripts/raw/master/fr24-nopackage.sh)"
It did update my setup however, only to Software Version 1.0.30-3
Would it be possible to update your script to allow it to upgrade to the latest version 1.0.34-0?
Alright, so I have dump1090-mutability installed, sending data to FR24feed and flightaware. Just found your script for the gain through the flightaware forums. Installed it, and I'm now running the 1-hour long For-loop to get an initial gain setting. It's giving the error: "stats.json not found, is the decoder running?"
Watching my adsb map at the same time, I'm pretty sure it's still changing the gain, but the command "sudo journalctl -eu autogain1090" shows that nothing is being written to the logs.
Will this work at all for a standard dump1090-mutability installation? I'm considering just reinstalling dump1090 with your scripts, but if I can keep what I have already and use the gain script that would be ideal!
Hello,
I got 2 errors , when I run the install script in openwebRX plus Raspberry Pi 4B IMG.
sudo bash -c "$(wget -O - https://github.com/wiedehopf/adsb-scripts/raw/master/readsb-install.sh)" sudo reboot
I also find a similar situation issue here : #4
lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
The following packages have unmet dependencies:
librtlsdr-dev : Depends: librtlsdr0 (= 0.6.0-3) but 0.7.0~rtlsdrblog1 is to be installed
E: Unable to correct problems, you have held broken packages.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.30.2-1+deb11u2).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Cloning into '/usr/local/share/adsb-wiki/readsb-install/git'...
remote: Enumerating objects: 149, done.
remote: Counting objects: 100% (149/149), done.
remote: Compressing objects: 100% (130/130), done.
remote: Total 149 (delta 27), reused 86 (delta 8), pack-reused 0
Receiving objects: 100% (149/149), 460.46 KiB | 543.00 KiB/s, done.
Resolving deltas: 100% (27/27), done.
rm -f *.o uat2esnt/*.o compat/clock_gettime/*.o compat/clock_nanosleep/*.o readsb viewadsb cprtests crctests convert_benchmark
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
cc -std=c11 -W -D_GNU_SOURCE -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -DMODES_READSB_VERSION=\""3.14.1619 wiedehopf git: 000ff0e (committed: Thu Mar 28 08:59:49 2024 0100)"\" -Wdate-time -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-format-truncation -DAIRCRAFT_HASH_BITS=16 -DENABLE_RTLSDR -g -O2 -march=native -mno-unaligned-access -c argp.c -o argp.o
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
cc -std=c11 -W -D_GNU_SOURCE -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -DMODES_READSB_VERSION=\""3.14.1619 wiedehopf git: 000ff0e (committed: Thu Mar 28 08:59:49 2024 0100)"\" -Wdate-time -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-format-truncation -DAIRCRAFT_HASH_BITS=16 -DENABLE_RTLSDR -g -O2 -march=native -mno-unaligned-access -c anet.c -o anet.o
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
cc -std=c11 -W -D_GNU_SOURCE -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -DMODES_READSB_VERSION=\""3.14.1619 wiedehopf git: 000ff0e (committed: Thu Mar 28 08:59:49 2024 0100)"\" -Wdate-time -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-format-truncation -DAIRCRAFT_HASH_BITS=16 -DENABLE_RTLSDR -g -O2 -march=native -mno-unaligned-access -c interactive.c -o interactive.o
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
cc -std=c11 -W -D_GNU_SOURCE -D_DEFAULT_SOURCE -Wall -Werror -fno-common -O2 -DMODES_READSB_VERSION=\""3.14.1619 wiedehopf git: 000ff0e (committed: Thu Mar 28 08:59:49 2024 0100)"\" -Wdate-time -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-format-truncation -DAIRCRAFT_HASH_BITS=16 -DENABLE_RTLSDR -g -O2 -march=native -mno-unaligned-access -c mode_ac.c -o mode_ac.o
Package librtlsdr was not found in the pkg-config search path.
Perhaps you should add the directory containing `librtlsdr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'librtlsdr' found
In file included from readsb.h:101,
from interactive.c:54:
threadpool.h:36:14: fatal error: zstd.h: No such file or directory
36 | #include <zstd.h>
| ^~~~~~~~
compilation terminated.
make: *** [Makefile:139: interactive.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from readsb.h:101,
from mode_ac.c:51:
threadpool.h:36:14: fatal error: zstd.h: No such file or directory
36 | #include <zstd.h>
| ^~~~~~~~
compilation terminated.
make: *** [Makefile:139: mode_ac.o] Error 1
[ERROR] Error in line 115 when executing: make "-j${THREADS}" AIRCRAFT_HASH_BITS=16 RTLSDR=yes OPTIMIZE="$CFLAGS" "$@"
Thank you .!
Today I received an email from FR24 that my feeder is not up to date (version 1.0.29-8) and that I have to update to the latest version (1.0.34-0) before Feb 28, 2023. I have been following your instruction to update in section 10 here https://github.com/wiedehopf/adsb-wiki/wiki/Raspbian-Lite:-ADS-B-receiver but it seems I am still on an older version (fr24feed output is showing version 1.0.30-3/generic).
The instruction in the email from FR24 is to run the following commands - one at a time:
sudo chmod +x /usr/lib/fr24/fr24feed_updater.sh
sudo /usr/lib/fr24/fr24feed_updater.sh
But the folder fr24 does not exist in lib. Can you help please?
Thank you!
Execution of readsb-install.sh failed on Raspberry Pi 2B.
The problematic statement is
THREADS=$(( $(grep -c ^processor /proc/cpuinfo) - 1 ))
This evaluates to THREADS=0 if only 1 CPU is present and causes the next make statement to fail because -j 0 is not a valid option.
I fixed this manually to THREADS=1 and now I'm using readsb + adsexchange + fr24 on my old Raspberry Pi 2 (Recycle!).
Anyway, thank you for this great piece of software!
Hi,
if I try to update my FR24 feeder with the fr24-nopackage script terminates withe a permission denied error (see error log below). Is this a server error or problem with the script?
-- oliver
sudo bash -c "$(wget -O - https://github.com/wiedehopf/adsb-scripts/raw/master/fr24-nopackage.sh)"
--2023-02-05 14:29:34-- https://github.com/wiedehopf/adsb-scripts/raw/master/fr24-nopackage.sh
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/fr24-nopackage.sh [following]
--2023-02-05 14:29:34-- https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/fr24-nopackage.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1004 [text/plain]
Saving to: ‘STDOUT’
- 100%[==============================================>] 1004 --.-KB/s in 0s
2023-02-05 14:29:35 (14.7 MB/s) - written to stdout [1004/1004]
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
perl is already the newest version (5.32.1-4+deb11u2).
wget is already the newest version (1.21-1+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package fr24feed
fr24.deb: Permission denied
What is needed to support for arm64 architecture?
Hello, and sorry for posting this in the issues section, as it's not an error but a question.
It is about: https://github.com/wiedehopf/adsb-scripts/wiki/Automatic-gain-optimization-for-readsb-and-dump1090-fa
Thanks for publishing it, works great.
My only question is: running your script on a PiAware installation, should I disable the Piaware built-in autogain setting?
RECEIVER_GAIN=43.9
ADAPTIVE_DYNAMIC_RANGE=yes
ADAPTIVE_DYNAMIC_RANGE_TARGET=
ADAPTIVE_BURST=no
ADAPTIVE_MIN_GAIN=
ADAPTIVE_MAX_GAIN=
from the file: /etc/default/dump1090-fa
Wondering if this should be changed somehow.
Thanks for the scripts!
I've just installed fr24feed.service
config file from GitHub, restarted both:
and noticed that fr24feed
still keeps logging to /var/log/fr24feed/fr24feed.log
on my Raspberry Pi 3.
Actually, the fr24feed.service
config enabled both log destinations:
fr24feed
SyslogIdentifier/var/log/fr24feed/fr24feed.log
file.When I stopped fr24feed service a minute ago, the /var/log/fr24feed/fr24feed.log
file reflected this:
[main][i]Terminating on user request
[main][i]Terminating worker threads
How can I troubleshoot this issue further? I would like to turn OFF the /var/log/fr24feed/fr24feed.log
to protect SD card.
Regards,
-DarS
I wanted to update readsb via the update/install script and the following error happened:
dpkg-buildpackage: info: host architecture armhf
dpkg-source --before-build git
debian/rules clean
dh clean --with=systemd
Initialization of state variables in list context currently forbidden at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 2032, near ");"
BEGIN not safe after errors--compilation aborted at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 2716.
Compilation failed in require at /usr/bin/dh line 15.
BEGIN failed--compilation aborted at /usr/bin/dh line 15.
debian/rules:54: recipe for target 'clean' failed
make: *** [clean] Error 2
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
Something went wrong building the debian package, exiting!
This is under buster Raspberry OS.
Hi there,
just setting up a new RPi with your very cool scripts but after installing autogain1090 I get an awk syntax error (the "basic" stuff works as expected as far as I can tell):
pi@flight:~ $ sudo autogain1090
awk: line 1: syntax error at or near }
awk: line 1: syntax error at or near }
No gain change needed, percentage of messages >-3dB is in nominal range. (0,968%)
Any idea?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.