Open chuckwolber opened 9 months ago
FlightFeeders are specific hardware manufactured by FlightAware (https://www.flightaware.com/adsb/flightfeeder/). They run a software image that includes dump1090-fa, piaware, and other additional FlightFeeder-specific software. Amongst other things, the additional FlightFeeder-specific software provides a /status.json
that provides overall status information for the whole system, separate to the piaware status.json
This change to dump1090-fa was so that skyaware is aware of when it's running on FlightFeeder hardware, and will display "FlightFeeder SkyAware" versus self-installed piaware builds which will show "PiAware SkyAware".
so it's expected that
a) piaware itself will not include a type
field in the piaware status.json
;
b) dump1090-fa's skyaware lighttpd doesn't export a status.json
;
c) the skyaware display on a self-installed dump1090-fa / piaware install will show "PiAware SkyAware"
So I think this is all working as expected, unless there's some specific problem you ran into?
Copy that. Thank you for the clear explanation. I took a close look at the code and the status.json
stood out to me as a curious loose-end with no obvious explanation. My natural conclusion was that status.json
was a way for piaware
to communicate status back to the dump1090-fa
web interface. Based on your explanation, this was a bad assumption and the likeness is only coincidental.
Is it worth somehow noting that in a code comment or project documentation?
This commit made to dump1090-fa turned on a check in the
dump1090-fa
web interface to look for atype
variable instatus.json
. Whentype = "flightfeeder"
, a "FlightFeeder SkyAware" logo should appear on the web page and the page title will change to "FlightFeeder SkyAware". Otherwise a "PiAware SkyAware" logo appears and the page title is set to "PiAware SkyAware".Since
piaware
is acting in the role of flight feeder by consuming data fromdump1090-fa
and pushing it to FlightAware, is it reasonable to expect that thestatus.json
produced bypiaware
is indeed the samestatus.json
being consumed bydump1090-fa
?If so, it does not appear as if
piaware
is actually adding thetype
variable to thestatus.json
, nor does it appear as ifdump1090-fa
is able to properly access thestatus.json
produced bypiaware
.The following three patches will resolve the issue and get the correct logo and page title to appear. The first patch applies to the latest version of the
piaware
project. The latter two patches are intended for the latest version ofdump1090-fa
. I can submit a separate issue to thedump1090-fa
project if desired.