Tracking nearby flights around Ekensberg using SDR to collect ADS-B data and sending online.
- rtl-sdr
- dump1090
- python3
- Docker, Docker-compose
Hardware needed is a SDR stick (e.g. RTL2832U from http://www.rtl-sdr.com/), an antenna (an antenna made for 1090 MHz is significantly better, i.e. you will receive more data, than just the standard tv antenna that ships with most sdr dongles) and a computer, tested with OS X, a raspberry pi 1 mod b and a raspberry pi 3.
Install rtl-sdr using macports (http://www.macports.org/):
sudo port install rtl-sdr
Connect your SDR, e.g. R820T2 RTL2832U, and test rtl-sdr:
rtl_test -t
Install dump1090 (https://github.com/antirez/dump1090):
git clone [email protected]:antirez/dump1090.git
cd dump1090
make
./dump1090 --interactive --net --aggressive
- Go to
http://localhost:8080
and find the data athttp://localhost:8080/data.json
Install rtl-sdr on your raspi:
sudo apt-get install -y cmake pkg-config libusb-1.0
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig
Make sure no other drivers are loaded for your sdr dongle:
sudo vi /etc/modprobe.d/raspi-blacklist.conf
- Add these lines and save:
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
- Reboot
- Connect your sdr dongle and test it with
rtl_test -t
- Install 1090 by following the same steps above.
git clone <this repo>
- Make a copy of
.env.sample
as.env
and fill in exports source .env
python -m poster.post_data.py
Use a raspi 3 for more punch and built in wifi, probably works with earlier raspis to.
- Get jessie lite from https://www.raspberrypi.org/downloads/raspbian/ and write to sd-card.
- Follow e.g this guide http://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/
- Install
docker-compose
following https://github.com/hypriot/arm-compose - Add wifi access using e.g. https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md
- Add your local ssh key:
mkdir .ssh
touch .ssh/authorized_keys
sudo nano ~/.ssh/authorized_keys
- Fix for local ssh config, so you can
ssh pi-name
:
Host pi-name
HostName pi-name.local
User pi
PreferredAuthentications publickey
- Install byobu for easier terminal over ssh
sudo apt-get install byobu
. - Make sure no other drivers are used:
sudo vi /etc/modprobe.d/raspi-blacklist.conf
- Add these lines:
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
- Get this repo
git clone <repo url>
- Make a copy
.env
of.env.sample
and fill in. docker-compose up
- Describe example antenna