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
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!
piaware sd-card has /run/dump1090-fa .... you're not looking right. or dump1090-fa is not running? https://github.com/wiedehopf/adsb-wiki/wiki/Debug-commands Just use the URL http://ip-of-pi/dump1090-fa/data/aircraft.json This one command will work fine for feeding adsbexchange from a piaware image, won't disturb any other feeder (only uses beast data from port 30005) https://github.com/adsbxchange/adsb-exchange#obtaining-and-using-the-scripts
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
Oh, yes, I will install that. I forgot that you can accept my data even though I'm running dump1090-fa.
You can even have the fancy map that's used for the adsbexchange global radar, dump1090-fa really isn't an issue. https://github.com/wiedehopf/tar1090#tar1090
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.