usage: GET http://localhost:8080/flighthistory/track.json retrieves track as JSON data { flightHistory: [ { latitude: (number), longitude: (number), altitude: (number) } ] } GET http://localhost:8080/flighthistory/track.kml retrieves track as KML path optional request parameter: LineColor=(hex encoded rgba color) LineWidth=(line width in pixel) PolyColor=(hex encoded rgba color) interval=(number of seconds to auto-refresh)
36 lines
684 B
CMake
36 lines
684 B
CMake
include(FlightGearComponent)
|
|
|
|
set(SOURCES
|
|
httpd.cxx
|
|
ScreenshotUriHandler.cxx
|
|
PropertyUriHandler.cxx
|
|
JsonUriHandler.cxx
|
|
FlightHistoryUriHandler.cxx
|
|
PkgUriHandler.cxx
|
|
RunUriHandler.cxx
|
|
NavdbUriHandler.cxx
|
|
PropertyChangeWebsocket.cxx
|
|
PropertyChangeObserver.cxx
|
|
jsonprops.cxx
|
|
SimpleDOM.cxx
|
|
)
|
|
|
|
set(HEADERS
|
|
urihandler.hxx
|
|
httpd.hxx
|
|
ScreenshotUriHandler.hxx
|
|
PropertyUriHandler.hxx
|
|
JsonUriHandler.hxx
|
|
FlightHistoryUriHandler.hxx
|
|
PkgUriHandler.hxx
|
|
RunUriHandler.hxx
|
|
NavdbUriHandler.hxx
|
|
HTTPRequest.hxx
|
|
Websocket.hxx
|
|
PropertyChangeWebsocket.hxx
|
|
PropertyChangeObserver.hxx
|
|
jsonprops.hxx
|
|
SimpleDOM.hxx
|
|
)
|
|
|
|
flightgear_component(Http "${SOURCES}" "${HEADERS}")
|