Local plotting?

Discussion in 'Feeding' started by telescopebuilder, Dec 9, 2019.

  1. Gary_B

    Gary_B New Member

    sudo journalctl --no-pager -u adsbexchange-stats

    upload_2020-1-6_15-13-34.png
     
  2. James

    James Guest

    Just need to figure out where your dump1090 is writing to and configure script appropriately ...

    I guess I'm going to have to give the json-stats a config in /etc/default/adsbexchange-stats
     
  3. James

    James Guest

    From those errors it thinks it's in /run/dump1090-fa ..

    did you try rebooting Pi and letting script try to detect again?
     
  4. wiedehopf

    wiedehopf Administrator Staff Member

  5. Gary_B

    Gary_B New Member

    Looks like the json is cd~/adsbexchange on my pi
     
  6. James

    James Guest

    That's not correct. It wouldn't or shouldn't be in /home/pi/adsbexchange by default.

    You need to figure out how you are launching dump1090 and how to pass args to it.

    If you are writing dump1090 json to teh SD and you've configure web server to view local dump1090 map from the Pi - then you will wreck the SD card with writes.
     
  7. Gary_B

    Gary_B New Member

    /var/run/dump1090-fa is active
    /var/run is not active
    /run/dump1090-fa is active
    upload_2020-1-6_16-30-37.png
     
  8. wiedehopf

    wiedehopf Administrator Staff Member

    So for the last half hour there are no errors.

    Is the page for the stats working now? It should be.
     
  9. Gary_B

    Gary_B New Member

    /etc/default/dump1090-fa config file
    # dump1090-fa configuration
    # This is sourced by /usr/share/dump1090-fa/start-dump1090-fa as a
    # shellscript fragment.

    # If you are using a PiAware sdcard image, this config file is regenerated
    # on boot based on the contents of piaware-config.txt; any changes made to this
    # file will be lost.

    # dump1090-fa won't automatically start unless ENABLED=yes
    ENABLED=yes

    RECEIVER_OPTIONS="--device-index 0 --gain -10 --ppm 0"
    DECODER_OPTIONS="--lat 52.9673029 --lon -112.6567874 --max-range 360 --fix"
    NET_OPTIONS="--net --net-heartbeat 60 --net-ro-size 1300 --net-ro-interval 0.2 --net-ri-port 0 --net-ro-port 30002 --net-sbs-port 30003 --net-bi-port 30004,30104 --net-bo-port 30005"
    JSON_OPTIONS="--json-location-accuracy 1"
     
  10. wiedehopf

    wiedehopf Administrator Staff Member

    The logs already show the stats script has been working for the last half hour.

    Just check the stats page please ....
     
  11. James

    James Guest

  12. Gary_B

    Gary_B New Member

  13. Gary_B

    Gary_B New Member

    Yes it does, Thank you very much
     
  14. Gary_B

    Gary_B New Member

    Should the /etc/default/adsbexchange-stats file have anything in it, mine is blank
     
  15. Gary_B

    Gary_B New Member

    The files are being writing in /var/run/dump1090-fa, but adsbexchange-stats isn't reading from that directory. What do I need to change? Thanks
     
  16. wiedehopf

    wiedehopf Administrator Staff Member

    Didn't you say it was working?

    Doesn't the screenshot by james prove that it's working?
     
  17. Gary_B

    Gary_B New Member

    As long a
    sudo journalctl --no-pager -u adsbexchange-stats
    doesn't matter
    upload_2020-1-7_14-51-49.png

    Yes it works fine.
     
  18. wiedehopf

    wiedehopf Administrator Staff Member

    You need to understand the log as well.

    The last line says it was started, there is no error showing below/after that.
    Thus it is working.
     
  19. Gary_B

    Gary_B New Member

    Ok, just thought json-status[409]: No Valid Directories Found. Exiting ... met something. Sorry.
     
  20. wiedehopf

    wiedehopf Administrator Staff Member

    So read the timestamp, it was before you changed to dump109-fa ;)