GithubHelp home page GithubHelp logo

airspy-conf's Introduction

airspy-conf

On popular request i've written a script that does all the work, so all you need to do is change the gain if you want :)

This script changes the piaware configuration, dump1090-fa / readsb configuration and installs a systemd-service to automatically run airspy_adsb. I have tested the script locally, it should work. But such things sometimes don't work as intended, keep that in mind.

In case your Airspy was purchased earlier than 2017, you will probably need to update its firmware, see the note in regards to ADS-B on the quick start page: https://airspy.com/quickstart/

dump1090-fa or readsb needs to be installed before you run this script otherwise the script can't change the configuration. It should work very well for example on a piaware-sd card image :) A normal Raspbian sd card image also works well. (On a Raspberry Pi the script will even install dump1090-fa for you if it's not present)

In case you don't want dump1090-fa to be installed/configured, you can download the script, and run it like this:

sudo bash install.sh only-airspy

If you are on a normal PC laptop and not on an RPi, i'd recommend using readsb instead of dump1090-fa: https://github.com/wiedehopf/adsb-scripts/wiki/Automatic-installation-for-readsb

Generally readsb might be nicer than dump1090-fa. Just to reiterate, this needs to be done before running this script. Or you can rerun this install script after installing readsb. You'll have to reconfigure airspy_adsb as this install overwrites the configuration.

Content:


Installation

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/wiedehopf/airspy-conf/master/install.sh)"

Other feeders

While dump1090-fa can be used for this script and configuration to work, you don't have to install piaware. It should work fine with all the common feeders (fr24, planefinder, ...). Just point them to port 30005 (beast protocol).


Changing airspy_adsb options

If you want to change the airspy options, edit the option file:

sudo nano /etc/default/airspy_adsb

For example you might want to enable the bias tee, just add -b at the end of the options line so it looks like this:

#other options
OPTIONS= -f 1 -x -p -b

There are other lines where you can change the gain or sample rate:

#gain is 0 to 21, each step of gain is equivalent to about 3dB, so reduce in increments of 1 if 21 is too high
GAIN=21

#sample rate can be 12 or 20, 20 is not recommended on the Raspbery Pi, if you chose it please check for lost samples with journalctl -en100 -u airspy_adsb
SAMPLE_RATE=12

Ctrl-O and Enter/Return to save and Ctrl-X to exit

Restart airspy_adsb with:

sudo systemctl restart airspy_adsb dump1090-fa

Some more options are discussed on the flightaware forums: https://discussions.flightaware.com/t/howto-airspy-mini-and-airspy-r2-piaware-dump1090-fa-configuration/44343

If you have questions it is best to just post in that thread!

Uninstall

Disables the airspy_adsb service, restores the dump1090-fa configuration and resets the piaware configuration to the default:

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/wiedehopf/airspy-conf/master/uninstall.sh)"

Update

Update / download airspy_adsb to /usr/local/bin while preserving options in /etc/default/airspy_adsb

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/wiedehopf/airspy-conf/master/update-binary.sh)"

airspy-conf's People

Contributors

gma2th avatar wiedehopf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.