Stand-alone system for Raspberry Pi

Discussion in 'Tutorials' started by chileflora, Dec 31, 2019.

  1. chileflora

    chileflora New Member

    I am trying to set-up a totally independent ads-b receiver based on raspberry pi. By independent I mean operating without internet connection and using only locally visible airplanes.

    There are several etchables images, but they seem all be associated with some server (like flightaware, etc.), and from what I could understand none of them has the option to get the data directly

    I want to be able to read the ADS-B data programatically in real time, in python, and I do not need any display, just numerical data.

    What is the best software for what I want to achieve?
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

    Just use a normal Raspbian Lite image.

    Then use dump1090-fa or readsb to receive the data:
    https://github.com/wiedehopf/adsb-scripts/wiki/Automatic-installation-for-readsb
    https://github.com/wiedehopf/adsb-scripts/wiki/Automatic-installation-for-dump1090-fa

    Or use this guide:
    https://github.com/wiedehopf/adsb-wiki/wiki/Building-readsb-from-source

    The aircraft.json will be available in /run/readsb or /run/dump1090-fa
    That's updated every second, can be adjusted to be updated more often.

    Sample from aircraft.json:

    Code:
    {
      "now": 1577752654.9,
      "messages": 150155880,
      "aircraft": [
        {
          "hex": "4bb867",
          "flight": "PGT50Q  ",
          "alt_baro": 37000,
          "alt_geom": 37875,
          "gs": 517.6,
          "ias": 252,
          "tas": 442,
          "mach": 0.78,
          "track": 110.1,
          "track_rate": 0,
          "roll": 0,
          "mag_heading": 108.3,
          "baro_rate": 64,
          "geom_rate": 32,
          "squawk": "1176",
          "emergency": "none",
          "category": "A3",
          "nav_qnh": 1013.6,
          "nav_altitude_mcp": 36992,
          "nav_heading": 0,
          "lat": 51.006271,
          "lon": 9.358718,
          "nic": 7,
          "rc": 371,
          "seen_pos": 0,
          "version": 2,
          "nic_baro": 1,
          "nac_p": 8,
          "nac_v": 1,
          "sil": 3,
          "sil_type": "perhour",
          "gva": 1,
          "sda": 2,
          "alert": 0,
          "spi": 0,
          "mlat": [],
          "tisb": [],
          "messages": 22642,
          "seen": 0,
          "rssi": -1.7
        },
    
    
     
  3. chileflora

    chileflora New Member

    thanks a lot I will try it...