Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

airspy graphs in tar1090 container #4

Closed
rikgale opened this issue Mar 27, 2023 · 5 comments
Closed

airspy graphs in tar1090 container #4

rikgale opened this issue Mar 27, 2023 · 5 comments

Comments

@rikgale
Copy link
Contributor

rikgale commented Mar 27, 2023

On a baremetal install of wiedehopf/airspy-conf the airspy info is shown in the graphs of the tar1090 container, but they do not appear to work when I am using this container.

How do I get these graphs to work?

I have posted both composes incase I am missing something obvious.

image

  tar1090:
    image: ghcr.io/sdr-enthusiasts/docker-tar1090:latest
    tty: true
    container_name: tar1090
    restart: always
    privileged: true
    environment:
      - UPDATE_TAR1090=true
      - TZ=${FEEDER_TZ}
      - BEASTHOST=readsb
      - MLATHOST=mlathub
      - LAT=${FEEDER_LAT}
      - LONG=${FEEDER_LONG}
      - TAR1090_DEFAULTCENTERLAT=${FEEDER_LAT}
      - TAR1090_DEFAULTCENTERLON=${FEEDER_LONG}
      - GRAPHS1090_DARKMODE=true
      - ENABLE_AIRSPY=yes
    ports:
      - 8082:80
    volumes:
      - /opt/adsb/tar1090/globe_history:/var/globe_history
      - /opt/adsb/tar1090/timelapse1090:/var/timelapse1090
      - /opt/adsb/tar1090/graphs1090:/var/lib/collectd
      - /run/airspy_adsb:/run/airspy_adsb
    tmpfs:
      - /run:exec,size=64M
      - /var/log
  airspy_adsb:
    image: ghcr.io/sdr-enthusiasts/airspy_adsb:latest
    tty: true
    container_name: airspy_adsb
    hostname: airspy_adsb
    restart: always
    devices:
      - /dev/bus/usb:/dev/bus/usb
    environment:
      - AIRSPY_ADSB_VERBOSE=true
      - AIRSPY_ADSB_TIMEOUT=90
      - AIRSPY_ADSB_FEC_BITS=1
      - AIRSPY_ADSB_WHITELIST_THRESHOLD=5
      - AIRSPY_ADSB_PREAMBLE_FILTER_NONCRC=8
      - AIRSPY_ADSB_CPUTIME_TARGET=60
      - AIRSPY_ADSB_PREAMBLE_FILTER_MAX=20
      - AIRSPY_ADSB_MLAT_FREQ=12
      - AIRSPY_ADSB_RF_GAIN=auto
      - AIRSPY_ADSB_BIAS_TEE=true
@drhanke
Copy link

drhanke commented Apr 1, 2023

Compared to wiedehopf this lack support of airpsy parameter " -S " that continuously saves the stats.json file for tar1090 to read.

Tried to add it simply by adding:

Handle` "-S"

if [[ "${AIRSPY_ADSB_STATS^^}" == "TRUE" ]]; then
AIRSPY_ADSB_CMD+=("-S /run/airspy_adsb/stats.json")
fi

And also mounted a volume to save this mapped to /run/airpy (and mapped to tar1090 to)
volumes:
- 'airspy_adsb:/run/airspy_adsb'

But oddly airspy-adsb aren´t able to save to that file, error message is "unable to find file"

Then made it a real ugly hack, just simply added it to the run command at the bottom and it simply works.
"${AIRSPY_ADSB_BIN}" "${AIRSPY_ADSB_CMD[@]}" -S /run/airspy_adsb/stats.json
2>&1 | stdbuf -oL awk '{print "[airspy_adsb] " $0}'

@rikgale
Copy link
Contributor Author

rikgale commented Apr 3, 2023

I don't really follow what you have done, but hopefully @mikenye might know how to enable this in the container.
Cheers. R :)

@hypeARM
Copy link

hypeARM commented Jun 25, 2023

I've been waiting for this change to see if it works

@rikgale
Copy link
Contributor Author

rikgale commented Jul 9, 2023

#5

Covers the fix for this.

@rikgale rikgale closed this as completed Jul 9, 2023
@dirkhh
Copy link
Contributor

dirkhh commented Jul 13, 2023

Please note that you also need to edit the configuration to share the magic directory with the ultrafeeder container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants