Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Property Tree/Web Server

From FlightGear wiki
Revision as of 19:53, 4 May 2013 by Hooray (Talk | contribs)

Jump to: navigation, search

FlightGear has a few network access protocols. These are started via a command line option.

And, just for fun we have an embedded web server you can activate which exposes the internal property tree via a web style interface that you can browse (and edit) with any web browser. You can literally fly the airplane remotely via your web browser. It's primarily there as an interactive remote debugging tool, but it could be used for many things.


Web Server

To view the PropertyTree with a web browser, start FlightGear with the following option:

fgfs --httpd=5480

where 5480 is the port number. You can pick any port number, but 5480 will probably work just fine.

On the same machine, fire up a web browser and open up the following url:

http://localhost:5480/

You can now browse the entire FG property tree "live" as the sim is running. You need to refresh the browser to see changes and you can even change values if you like. You can configure autopilot modes and even set control inputs so you could literally fly the airplane from your web browser, although it's maybe not the most convenient interface for doing that. ;-)

Note that you can setup as many of these as you want ... for instance, just to be obscene you could do:

  • --httpd=5400
  • --httpd=5401
  • --httpd=5402
  • --props=5403
  • --props=5404
  • --props=5405

Now you have 6 different network interfaces running that you can access from anywhere. [Note: security issues if not used wisely.]