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

Difference between revisions of "Property Tree/Web Server"

From FlightGear wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{PropertyTree}}
 
{{PropertyTree}}
 
[[FlightGear]] has a few network access protocols. These are started as a [[Command Line Parameters|command line option]].
 
[[FlightGear]] has a few network access protocols. These are started as a [[Command Line Parameters|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 ==
 
== Web Server ==

Revision as of 14:34, 26 March 2013

FlightGear has a few network access protocols. These are started as 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. ;-)