Mirroring aircraft.json

Discussion in 'Feeding' started by strat-o, Apr 22, 2020.

  1. strat-o

    strat-o New Member

    Are there any recommendations on mirroring aircraft.json? I'm running piaware on a Pi but want to set up a separate server so I can filter aircraft geographically and store certain flight paths into a database.

    Here's my main question:
    I'm looking at doing a simple file mirror from the pi to my server. I would like to mirror /run/dump1090-fa/aircraft.json over to the same directory on my server. There are a couple of mirroring choices I'm currently looking at: lsyncd and DRBD. It looks like lsyncd is lighter weight of the two. Is it sufficient? I want to avoid missing any flights!

    BTW I am excited to see your thread on your ADSBx Custom Buster 1.0 and hope to dump dump1090-fa ASAP! I'll probably just set up a new Pi for this so I can continue to feed FlightAware (plus be able to upgrade easily) but also I'd like to start feeding adsbexchange plus get more data to my server as well.

    Thanks, strat-o
     
  2. strat-o

    strat-o New Member

    Actually I just now discovered that there is no /run/dump1090-fa directory on this fairly recent version of piaware. I did a search of the file system and found no instance of aircraft.json. I presume that would mean if I tried to set up adsbexchange-stats on my pi it would fail because none of the directories searched for by json-status ("/run/adsbexchange-feed", "/run/readsb", "/run/dump1090-fa", "/run/dump1090-mutability", "/run/dump1090") exist on my pi. I only see /run/piaware containing two files: piaware.pid and status.json. Any sugestions? Yes, I know, install your version! But besides that!
     
  3. wiedehopf

    wiedehopf Administrator Staff Member

  4. strat-o

    strat-o New Member

    Genius! It works. Also you were right, I must have slightly dislodged the SDR USB device when I was messing with the Pi earlier. Once I reseated it, I got my /run/dump1090-fa/aircraft.json.

    The http://ip-of-pi/dump1090-fa/data/aircraft.json solution solves the issue of having to write code. I'm not proud and will take a solution that immediately solves a need over writing code (no matter how fun that might have been) any day!

    Thanks wiedehopf! Strat-o
     
  5. wiedehopf

    wiedehopf Administrator Staff Member

    And the adsbexchange feed is running as well?
    It really doesn't interfere with the piaware card.
     
  6. strat-o

    strat-o New Member

    Oh, yes, I will install that. I forgot that you can accept my data even though I'm running dump1090-fa.
     
  7. wiedehopf

    wiedehopf Administrator Staff Member

  8. strat-o

    strat-o New Member

    OK, it's done and am feeding now from North Houston Texas. I'm also now logging all (need to verify, though) of my data from dump1090-fa into a Sqlite3 database. Thanks for you help.