<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki4.fsairlines.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Konny</id>
	<title>FSAirlinesWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki4.fsairlines.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Konny"/>
	<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php/Special:Contributions/Konny"/>
	<updated>2026-04-07T10:55:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=3238</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=3238"/>
		<updated>2013-06-27T06:37:52Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Blackbox Packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/info-flighttracker FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/downloads/blackbox_new.zip Blackbox by Erwin Polreich ]&lt;br /&gt;
|Standard-Blackbox with some extra warnings, as for instance &amp;quot;switch on/off landing lights!&amp;quot; or &amp;quot;too fast!&amp;quot;. A more detailed description of the extensions and the installation guidance is contained in the zip-file.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Comments===&lt;br /&gt;
With the blackbox.xml being a standard xml-file you can easily add comments between the single tags to improve the readability in bigger files. A comment starts with &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;!--&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; and ends with &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;--&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;. Here is a little exampe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log start of flight --&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log landing lights on --&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Tag&lt;br /&gt;
!Attributes&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|See [[#Event criteria|Event criteria]] and [[#Event actions|Event actions]]&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Combination tag|Combination tag]]&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Startflight tag|Startflight tag]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only at the beginning of the flight and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*add a timer for events (e.g. event triggered after x secs/mins elapsed or event action occurs after a delay of x secs/mins)&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=3235</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=3235"/>
		<updated>2013-06-10T21:04:04Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Blackbox Packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/info-flighttracker FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/downloads/blackbox_new.zip Blackbox by Erwin Polreich ]&lt;br /&gt;
|coming soon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Comments===&lt;br /&gt;
With the blackbox.xml being a standard xml-file you can easily add comments between the single tags to improve the readability in bigger files. A comment starts with &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;!--&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; and ends with &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;--&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;. Here is a little exampe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log start of flight --&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log landing lights on --&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Tag&lt;br /&gt;
!Attributes&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|See [[#Event criteria|Event criteria]] and [[#Event actions|Event actions]]&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Combination tag|Combination tag]]&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Startflight tag|Startflight tag]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only at the beginning of the flight and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*add a timer for events (e.g. event triggered after x secs/mins elapsed or event action occurs after a delay of x secs/mins)&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Awards&amp;diff=3229</id>
		<title>Awards</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Awards&amp;diff=3229"/>
		<updated>2013-03-11T22:24:35Z</updated>

		<summary type="html">&lt;p&gt;Konny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
On FSAirlines there are three different awards which are given to the best pilots of every month. Each pilot who is given such an award can find the badge on his [[profile]]. Additionally there are awards which every pilot can achieve after having flown a certain amount of miles/hours/...&lt;br /&gt;
&lt;br /&gt;
==Pilot of the month awards==&lt;br /&gt;
&lt;br /&gt;
===Most miles===&lt;br /&gt;
The pilot who has flown the most miles within a month (miles are adjusted by the simulation rate).&lt;br /&gt;
&lt;br /&gt;
===Most hours===&lt;br /&gt;
The pilot who has been in cockpit for the longest time within a month (hours are adjuste by the simulation rate).&lt;br /&gt;
&lt;br /&gt;
===Best rating===&lt;br /&gt;
The pilot who did at least 5 flights and has the best average [[flight rating]]. If more than one pilot have the same average flight rating, the one with the most flights is chosen.&lt;br /&gt;
&lt;br /&gt;
==Standard awards==&lt;br /&gt;
The standard awards are given to any pilot achieving one of the goals listed below. For each category there are basic, 1-star, 2-star awards and finally one golden 3-star award.&lt;br /&gt;
&lt;br /&gt;
===Airports===&lt;br /&gt;
The number of airports you have visited:&lt;br /&gt;
10, 50, 200 or 500 Airports.&lt;br /&gt;
&lt;br /&gt;
===Real-Time===&lt;br /&gt;
The number of real-time flights in a row you have done:&lt;br /&gt;
10, 50, 250 or 1000 flights.&lt;br /&gt;
&lt;br /&gt;
===100%===&lt;br /&gt;
The number of flights in a row with a 100% rating you have done:&lt;br /&gt;
10, 50, 200 or 500 flights.&lt;br /&gt;
&lt;br /&gt;
===Passengers===&lt;br /&gt;
The number of passengers you have transported.&lt;br /&gt;
1000, 10000, 25000, 100000 or 500000 PAX.&lt;br /&gt;
&lt;br /&gt;
===Miles===&lt;br /&gt;
The nautical miles you have done (divided by simulation-rate):&lt;br /&gt;
1000, 10000, 100000, 250000 or 1000000 nm.&lt;br /&gt;
&lt;br /&gt;
===Hours===&lt;br /&gt;
The total hours have flown on FSAirlines (divided by simulation-rate):&lt;br /&gt;
50, 100, 250, 500, 1000 or 5000 hours.&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3222</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3222"/>
		<updated>2013-01-12T00:34:42Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Flight Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially.&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
If you need something to get started here&#039;s a small example PHP-script showing a list of your pilots&#039; names. Just replace the va_id by your own.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  $objDOM = new DOMDocument();&lt;br /&gt;
  $objDOM-&amp;gt;load(&amp;quot;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  //uncomment to show raw xml-data&lt;br /&gt;
  //echo $objDOM-&amp;gt;saveXML();&lt;br /&gt;
&lt;br /&gt;
  $dataNodes = $objDOM-&amp;gt;getElementsByTagName(&amp;quot;data&amp;quot;);&lt;br /&gt;
  foreach( $dataNodes as $node )&lt;br /&gt;
  {&lt;br /&gt;
    $name = $node-&amp;gt;getAttribute(&amp;quot;name&amp;quot;);&lt;br /&gt;
    $surname = $node-&amp;gt;getAttribute(&amp;quot;surname&amp;quot;);&lt;br /&gt;
    echo &amp;quot;{$name} {$surname} &amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values. Lately added options are marked &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;green&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions use parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|- &lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path, pax_economy, pax_business, pax_first, config_name&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price (deprecated, will be removed in next release), reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters in brackets are optional&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp, number, lon, lat, pax_economy, pax_business, pax_first&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, number, pax_economy, pax_business, pax_first&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;pax_economy, pax_business, pax_first&amp;lt;/span&amp;gt;&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;vs, pax_economy, pax_business, pax_first, ticket_business, ticket_first, fuel_start, fuel_dep, fuel_takeoff, fuel_land, fuel_finish, ticket_factor, interface, simversion, os&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id, remarks, route, limit_pax, limit_cargo&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, rank, flights, rating, hours, distance, pax, cargo_kg, picture&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|- &lt;br /&gt;
| getDistance&lt;br /&gt;
| va_id, icao_from, icao_to&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| distance&lt;br /&gt;
|- &lt;br /&gt;
| getMetar&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| metar&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Requested additional functions===&lt;br /&gt;
The following list contains all the functions which were requested by users but aren&#039;t implemented yet.&lt;br /&gt;
*Create, edit and delete routes&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3221</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3221"/>
		<updated>2013-01-12T00:31:34Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Flight Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially.&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
If you need something to get started here&#039;s a small example PHP-script showing a list of your pilots&#039; names. Just replace the va_id by your own.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  $objDOM = new DOMDocument();&lt;br /&gt;
  $objDOM-&amp;gt;load(&amp;quot;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  //uncomment to show raw xml-data&lt;br /&gt;
  //echo $objDOM-&amp;gt;saveXML();&lt;br /&gt;
&lt;br /&gt;
  $dataNodes = $objDOM-&amp;gt;getElementsByTagName(&amp;quot;data&amp;quot;);&lt;br /&gt;
  foreach( $dataNodes as $node )&lt;br /&gt;
  {&lt;br /&gt;
    $name = $node-&amp;gt;getAttribute(&amp;quot;name&amp;quot;);&lt;br /&gt;
    $surname = $node-&amp;gt;getAttribute(&amp;quot;surname&amp;quot;);&lt;br /&gt;
    echo &amp;quot;{$name} {$surname} &amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values. Lately added options are marked &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;green&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions use parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|- &lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path, pax_economy, pax_business, pax_first, config_name&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price (deprecated, will be removed in next release), reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters in brackets are optional&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp, number, lon, lat, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;pax_economy, pax_business, pax_first&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, number, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;pax_economy, pax_business, pax_first&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat, vs, pax_economy, pax_business, pax_first, ticket_business, ticket_first, fuel_start, fuel_dep, fuel_takeoff, fuel_land, fuel_finish, ticket_factor, interface, simversion, os&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id, remarks, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;route, limit_pax, limit_cargo&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, rank, flights, rating, hours, distance, pax, cargo_kg, picture&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|- &lt;br /&gt;
| getDistance&lt;br /&gt;
| va_id, icao_from, icao_to&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| distance&lt;br /&gt;
|- &lt;br /&gt;
| getMetar&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| metar&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Requested additional functions===&lt;br /&gt;
The following list contains all the functions which were requested by users but aren&#039;t implemented yet.&lt;br /&gt;
*Create, edit and delete routes&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3217</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3217"/>
		<updated>2012-12-07T23:13:50Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Flight Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially.&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
If you need something to get started here&#039;s a small example PHP-script showing a list of your pilots&#039; names. Just replace the va_id by your own.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  $objDOM = new DOMDocument();&lt;br /&gt;
  $objDOM-&amp;gt;load(&amp;quot;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  //uncomment to show raw xml-data&lt;br /&gt;
  //echo $objDOM-&amp;gt;saveXML();&lt;br /&gt;
&lt;br /&gt;
  $dataNodes = $objDOM-&amp;gt;getElementsByTagName(&amp;quot;data&amp;quot;);&lt;br /&gt;
  foreach( $dataNodes as $node )&lt;br /&gt;
  {&lt;br /&gt;
    $name = $node-&amp;gt;getAttribute(&amp;quot;name&amp;quot;);&lt;br /&gt;
    $surname = $node-&amp;gt;getAttribute(&amp;quot;surname&amp;quot;);&lt;br /&gt;
    echo &amp;quot;{$name} {$surname} &amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values. Lately added options are marked &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;green&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions use parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|- &lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path, pax_economy, pax_business, pax_first, config_name&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price (deprecated, will be removed in next release), reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters in brackets are optional&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp, number, lon, lat, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;pax_economy, pax_business, pax_first&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, number, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;pax_economy, pax_business, pax_first&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id, remarks, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;route, limit_pax, limit_cargo&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, rank, flights, rating, hours, distance, pax, cargo_kg, picture&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|- &lt;br /&gt;
| getDistance&lt;br /&gt;
| va_id, icao_from, icao_to&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| distance&lt;br /&gt;
|- &lt;br /&gt;
| getMetar&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| metar&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Requested additional functions===&lt;br /&gt;
The following list contains all the functions which were requested by users but aren&#039;t implemented yet.&lt;br /&gt;
*Create, edit and delete routes&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3216</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3216"/>
		<updated>2012-12-02T18:31:27Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Flight Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially.&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
If you need something to get started here&#039;s a small example PHP-script showing a list of your pilots&#039; names. Just replace the va_id by your own.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  $objDOM = new DOMDocument();&lt;br /&gt;
  $objDOM-&amp;gt;load(&amp;quot;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  //uncomment to show raw xml-data&lt;br /&gt;
  //echo $objDOM-&amp;gt;saveXML();&lt;br /&gt;
&lt;br /&gt;
  $dataNodes = $objDOM-&amp;gt;getElementsByTagName(&amp;quot;data&amp;quot;);&lt;br /&gt;
  foreach( $dataNodes as $node )&lt;br /&gt;
  {&lt;br /&gt;
    $name = $node-&amp;gt;getAttribute(&amp;quot;name&amp;quot;);&lt;br /&gt;
    $surname = $node-&amp;gt;getAttribute(&amp;quot;surname&amp;quot;);&lt;br /&gt;
    echo &amp;quot;{$name} {$surname} &amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values. Lately added options are marked &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;green&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions use parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|- &lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path, pax_economy, pax_business, pax_first, config_name&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price (deprecated, will be removed in next release), reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters in brackets are optional&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp, number, lon, lat&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, number, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;pax_economy, pax_business, pax_first&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id, remarks, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;route, limit_pax, limit_cargo&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, rank, flights, rating, hours, distance, pax, cargo_kg, picture&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|- &lt;br /&gt;
| getDistance&lt;br /&gt;
| va_id, icao_from, icao_to&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| distance&lt;br /&gt;
|- &lt;br /&gt;
| getMetar&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| metar&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Requested additional functions===&lt;br /&gt;
The following list contains all the functions which were requested by users but aren&#039;t implemented yet.&lt;br /&gt;
*Create, edit and delete routes&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3215</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3215"/>
		<updated>2012-12-02T18:25:36Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Flight Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially.&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
If you need something to get started here&#039;s a small example PHP-script showing a list of your pilots&#039; names. Just replace the va_id by your own.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  $objDOM = new DOMDocument();&lt;br /&gt;
  $objDOM-&amp;gt;load(&amp;quot;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  //uncomment to show raw xml-data&lt;br /&gt;
  //echo $objDOM-&amp;gt;saveXML();&lt;br /&gt;
&lt;br /&gt;
  $dataNodes = $objDOM-&amp;gt;getElementsByTagName(&amp;quot;data&amp;quot;);&lt;br /&gt;
  foreach( $dataNodes as $node )&lt;br /&gt;
  {&lt;br /&gt;
    $name = $node-&amp;gt;getAttribute(&amp;quot;name&amp;quot;);&lt;br /&gt;
    $surname = $node-&amp;gt;getAttribute(&amp;quot;surname&amp;quot;);&lt;br /&gt;
    echo &amp;quot;{$name} {$surname} &amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values. Lately added options are marked &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;green&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions use parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|- &lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path, pax_economy, pax_business, pax_first, config_name&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price (deprecated, will be removed in next release), reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters in brackets are optional&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp, number, lon, lat&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, number&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id, remarks, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;route, limit_pax, limit_cargo&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, rank, flights, rating, hours, distance, pax, cargo_kg, picture&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|- &lt;br /&gt;
| getDistance&lt;br /&gt;
| va_id, icao_from, icao_to&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| distance&lt;br /&gt;
|- &lt;br /&gt;
| getMetar&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| metar&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Requested additional functions===&lt;br /&gt;
The following list contains all the functions which were requested by users but aren&#039;t implemented yet.&lt;br /&gt;
*Create, edit and delete routes&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3214</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3214"/>
		<updated>2012-12-02T18:25:04Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Flight Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially.&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
If you need something to get started here&#039;s a small example PHP-script showing a list of your pilots&#039; names. Just replace the va_id by your own.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  $objDOM = new DOMDocument();&lt;br /&gt;
  $objDOM-&amp;gt;load(&amp;quot;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  //uncomment to show raw xml-data&lt;br /&gt;
  //echo $objDOM-&amp;gt;saveXML();&lt;br /&gt;
&lt;br /&gt;
  $dataNodes = $objDOM-&amp;gt;getElementsByTagName(&amp;quot;data&amp;quot;);&lt;br /&gt;
  foreach( $dataNodes as $node )&lt;br /&gt;
  {&lt;br /&gt;
    $name = $node-&amp;gt;getAttribute(&amp;quot;name&amp;quot;);&lt;br /&gt;
    $surname = $node-&amp;gt;getAttribute(&amp;quot;surname&amp;quot;);&lt;br /&gt;
    echo &amp;quot;{$name} {$surname} &amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values. Lately added options are marked &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;green&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions use parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|- &lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path, pax_economy, pax_business, pax_first, config_name&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price (deprecated, will be removed in next release), reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters in brackets are optional&amp;lt;/ref&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp, number, lon, lat&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, number&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id, remarks, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;route, limit_pax, limit_cargo&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, rank, flights, rating, hours, distance, pax, cargo_kg, picture&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|- &lt;br /&gt;
| getDistance&lt;br /&gt;
| va_id, icao_from, icao_to&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| distance&lt;br /&gt;
|- &lt;br /&gt;
| getMetar&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| metar&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Requested additional functions===&lt;br /&gt;
The following list contains all the functions which were requested by users but aren&#039;t implemented yet.&lt;br /&gt;
*Create, edit and delete routes&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3209</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=3209"/>
		<updated>2012-09-12T13:56:31Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Aircraft Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially.&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
If you need something to get started here&#039;s a small example PHP-script showing a list of your pilots&#039; names. Just replace the va_id by your own.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  $objDOM = new DOMDocument();&lt;br /&gt;
  $objDOM-&amp;gt;load(&amp;quot;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  //uncomment to show raw xml-data&lt;br /&gt;
  //echo $objDOM-&amp;gt;saveXML();&lt;br /&gt;
&lt;br /&gt;
  $dataNodes = $objDOM-&amp;gt;getElementsByTagName(&amp;quot;data&amp;quot;);&lt;br /&gt;
  foreach( $dataNodes as $node )&lt;br /&gt;
  {&lt;br /&gt;
    $name = $node-&amp;gt;getAttribute(&amp;quot;name&amp;quot;);&lt;br /&gt;
    $surname = $node-&amp;gt;getAttribute(&amp;quot;surname&amp;quot;);&lt;br /&gt;
    echo &amp;quot;{$name} {$surname} &amp;lt;br/&amp;gt;&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values. Lately added options are marked &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;green&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions use parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|- &lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path, pax_economy, pax_business, pax_first, config_name&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price (deprecated, will be removed in next release), reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot;&amp;gt;Parameters in brackets are optional&amp;lt;/ref&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp, number, &amp;lt;span style=&amp;quot;background-color:#B9FFC5;&amp;quot;&amp;gt;lon, lat&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, number&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, rank, flights, rating, hours, distance, pax, cargo_kg, picture&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|- &lt;br /&gt;
| getDistance&lt;br /&gt;
| va_id, icao_from, icao_to&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| distance&lt;br /&gt;
|- &lt;br /&gt;
| getMetar&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| metar&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Requested additional functions===&lt;br /&gt;
The following list contains all the functions which were requested by users but aren&#039;t implemented yet.&lt;br /&gt;
*Create, edit and delete routes&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Statistics&amp;diff=2671</id>
		<title>Statistics</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Statistics&amp;diff=2671"/>
		<updated>2011-11-16T18:39:39Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* An individual airline */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
FSAirlines shows a lot of statistics about the airlines, pilots and aircraft types. The main statistics page is found in the &#039;&#039;&#039;Crew Centre&#039;&#039;&#039; under &#039;&#039;&#039;Database&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Categories==&lt;br /&gt;
You can choose between different categories.&lt;br /&gt;
&lt;br /&gt;
===All airlines===&lt;br /&gt;
Show statistics where all airlines are compared.&lt;br /&gt;
&lt;br /&gt;
===All pilots===&lt;br /&gt;
Show statistics of individual pilots.&lt;br /&gt;
&lt;br /&gt;
===All aircraft types===&lt;br /&gt;
Show statistics of the different aircraft types.&lt;br /&gt;
&lt;br /&gt;
===An individual airline===&lt;br /&gt;
You can also show the statistics of the pilots in a certain airline. For an airline to show up in the list of choosable airlines it must have &#039;&#039;&#039;at least three active pilots&#039;&#039;&#039; within the last month.&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
Choose which data to show.&lt;br /&gt;
&lt;br /&gt;
===Passenger Miles===&lt;br /&gt;
The sum of each flight&#039;s passengers times miles (adjusted by simulation rate).&lt;br /&gt;
&lt;br /&gt;
===Cargo Miles===&lt;br /&gt;
The sum of each flight&#039;s cargo times miles (adjusted by simulation rate).&lt;br /&gt;
&lt;br /&gt;
===Payload Miles===&lt;br /&gt;
The sum of each flight&#039;s pax+cargo times miles (adjusted by simulation rate).&lt;br /&gt;
&lt;br /&gt;
===Passengers===&lt;br /&gt;
The sum of passengers transported.&lt;br /&gt;
&lt;br /&gt;
===Cargo===&lt;br /&gt;
The sum of cargo transported.&lt;br /&gt;
&lt;br /&gt;
===Payload===&lt;br /&gt;
The sum of each flight&#039;s pax+cargo divided by 100.&lt;br /&gt;
&lt;br /&gt;
===Miles===&lt;br /&gt;
The sum of the miles flown (adjusted by simulation rate).&lt;br /&gt;
&lt;br /&gt;
===Hours===&lt;br /&gt;
The sum of each flight&#039;s hours (adjusted by simulation rate).&lt;br /&gt;
&lt;br /&gt;
===Rating===&lt;br /&gt;
The sum of the [[Flight Rating|flight ratings]].&lt;br /&gt;
&lt;br /&gt;
===Average Rating===&lt;br /&gt;
The average [[Flight Rating|flight rating]].&lt;br /&gt;
&lt;br /&gt;
===Raw Miles===&lt;br /&gt;
The sum of the miles (not adjusted by simulation rate).&lt;br /&gt;
&lt;br /&gt;
===Raw Passenger Miles===&lt;br /&gt;
The sum of each flight&#039;s pax times miles (not adjusted by simulation rate).&lt;br /&gt;
&lt;br /&gt;
==Period==&lt;br /&gt;
Choose which period to show in the statistics: Current month, last month, cumulative or last 30/60/90 days.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Database Features]]&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2581</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2581"/>
		<updated>2011-07-21T20:35:07Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Blackbox Packages */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/info-flighttracker FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Comments===&lt;br /&gt;
With the blackbox.xml being a standard xml-file you can easily add comments between the single tags to improve the readability in bigger files. A comment starts with &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;!--&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; and ends with &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;--&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;. Here is a little exampe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log start of flight --&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log landing lights on --&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Tag&lt;br /&gt;
!Attributes&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|See [[#Event criteria|Event criteria]] and [[#Event actions|Event actions]]&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Combination tag|Combination tag]]&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Startflight tag|Startflight tag]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only at the beginning of the flight and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*add a timer for events (e.g. event triggered after x secs/mins elapsed or event action occurs after a delay of x secs/mins)&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2516</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2516"/>
		<updated>2011-04-18T21:36:30Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Comments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Comments===&lt;br /&gt;
With the blackbox.xml being a standard xml-file you can easily add comments between the single tags to improve the readability in bigger files. A comment starts with &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;&amp;lt;!--&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; and ends with &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;--&amp;gt;&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;. Here is a little exampe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log start of flight --&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log landing lights on --&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Tag&lt;br /&gt;
!Attributes&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|See [[#Event criteria|Event criteria]] and [[#Event actions|Event actions]]&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Combination tag|Combination tag]]&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Startflight tag|Startflight tag]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only at the beginning of the flight and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*add a timer for events (e.g. event triggered after x secs/mins elapsed or event action occurs after a delay of x secs/mins)&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2515</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2515"/>
		<updated>2011-04-18T21:32:05Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Comments===&lt;br /&gt;
With the blackbox.xml being a standard xml-file you can easily add comments between the single tags to make maintaining bigger files more easy and improve the readability. A comment is starts with &#039;&#039;&#039;&amp;lt;!--&#039;&#039;&#039; and ends with &#039;&#039;&#039;--&amp;gt;&#039;&#039;&#039;. Here is a little exampe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log start of flight --&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;!-- log landing lights on --&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Tag&lt;br /&gt;
!Attributes&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|See [[#Event criteria|Event criteria]] and [[#Event actions|Event actions]]&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Combination tag|Combination tag]]&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Startflight tag|Startflight tag]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only at the beginning of the flight and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*add a timer for events (e.g. event triggered after x secs/mins elapsed or event action occurs after a delay of x secs/mins)&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2514</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2514"/>
		<updated>2011-04-18T21:12:30Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Requested Additions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Tag&lt;br /&gt;
!Attributes&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|See [[#Event criteria|Event criteria]] and [[#Event actions|Event actions]]&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Combination tag|Combination tag]]&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Startflight tag|Startflight tag]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only at the beginning of the flight and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*add a timer for events (e.g. event triggered after x secs/mins elapsed or event action occurs after a delay of x secs/mins)&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Known_Problems&amp;diff=2511</id>
		<title>Known Problems</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Known_Problems&amp;diff=2511"/>
		<updated>2011-04-17T00:26:19Z</updated>

		<summary type="html">&lt;p&gt;Konny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here is a list of known problems and their fixes. If you have one to add to this list, please mention it at the talk page.&lt;br /&gt;
&lt;br /&gt;
==Client doesn&#039;t recognize Landing Lights status==&lt;br /&gt;
Some aircraft add-ons use a special way of setting the landing lights which can&#039;t be recognized by the Client. This is a problem caused by the developers of the add-on not using the standard SDK functions. If you experience this problem you can force the landing lights status as it is seen by the Client. The hotkey to toggle the landing lights is Ctrl-Shift-L. Having used this hotkey once in a flight the Client from then on will ignore the landing light readings from the flight simulator.&lt;br /&gt;
&lt;br /&gt;
==[http://fsairlines.net/forum/viewtopic.php?f=60&amp;amp;t=5732 Tinmouse B737-200 Fueling Problem]==&lt;br /&gt;
If you are using the Tinmouse II Boeing 737-200 to fly on FSA you may have a problem refuelling. One of CBFS pilots has identified this problem and found a workaround. The chaps developing the Tinmouse II very kindly offered the facility to use the panel with the FFX/Vistaliner B737-200 and provided alternative .air and .cfg files for that aircraft. However, to identify which model was being used so that the panel sends the correct spoiler animations etc for the appropriate model, they added a dummy fuel tank to the Tinmouse aircraft.cfg&lt;br /&gt;
&lt;br /&gt;
In the aircraft.cfg for the tinmouse look for the [fuel] as below :-&lt;br /&gt;
&lt;br /&gt;
[fuel]&lt;br /&gt;
&lt;br /&gt;
//Longitudinal (feet), Lateral (feet), Vertical (feet), Usable(gallons), Unusable (gallons)&lt;br /&gt;
&lt;br /&gt;
fuel_type = 2&lt;br /&gt;
number_of_tank_selectors = 1&lt;br /&gt;
&lt;br /&gt;
Center1 = 6.25, 0, -0.2, 2303.7, 0 // 15433 lbs max&lt;br /&gt;
LeftMain = 1.5, -9.6, -0.2, 1428.15, 0 // 9567 lbs max&lt;br /&gt;
RightMain = 1.5, 9.6, -0.2, 1428.15, 0 &lt;br /&gt;
RightTip = 0.0, 0.0, 0.0, 1.0, 0 //DO NOT REMOVE presence of this tank used to identify Terry Gaff/Flight1 model&lt;br /&gt;
electric_pump=0&lt;br /&gt;
&lt;br /&gt;
To make the fuel tank invisible to flight sim/FSA you need to rem out the line as below indicated in red. &lt;br /&gt;
&lt;br /&gt;
[fuel]&lt;br /&gt;
&lt;br /&gt;
//Longitudinal (feet), Lateral (feet), Vertical (feet), Usable(gallons), Unusable (gallons)&lt;br /&gt;
&lt;br /&gt;
fuel_type = 2&lt;br /&gt;
number_of_tank_selectors = 1&lt;br /&gt;
&lt;br /&gt;
Center1 = 6.25, 0, -0.2, 2303.7, 0 // 15433 lbs max&lt;br /&gt;
LeftMain = 1.5, -9.6, -0.2, 1428.15, 0 // 9567 lbs max&lt;br /&gt;
RightMain = 1.5, 9.6, -0.2, 1428.15, 0 &lt;br /&gt;
//RightTip = 0.0, 0.0, 0.0, 1.0, 0 //DO NOT REMOVE presence of this tank used to identify Terry Gaff/Flight1 model&lt;br /&gt;
electric_pump=0&lt;br /&gt;
&lt;br /&gt;
Once you have added the two forward slashes, save the file and exit. It says not to remove the tank but remming tthe tank it does not appear to have any adverse affect on the visuals.&lt;br /&gt;
&lt;br /&gt;
==[http://fsairlines.net/forum/viewtopic.php?f=5&amp;amp;t=4675 AN-124 Fuel Consumption]==&lt;br /&gt;
The available Antonov AN-124 aircraft models do not compute there fuel usage properly and are often getting flagged by the system as possible fuel cheats. With the help of TJ Baughn of the &#039;Front Line Dirty Dozen&#039; we worked out a solution for this. If you are using this aircraft please open the &#039;Aircraft.cfg&#039; file in the folder containing this aircraft in your flight simulator installation and find this line:&lt;br /&gt;
&lt;br /&gt;
fuel_flow_scalar=1.0&lt;br /&gt;
&lt;br /&gt;
It may have a slightly different number after the &#039;=&#039; but change the 1.0 to 1.711, if its not at that value or higher already. If you do not do this you risk having your flights marked as cheats, the reputation of your airline ruined and probably forced into bankruptcy.&lt;br /&gt;
&lt;br /&gt;
==[http://fsairlines.net/forum/viewtopic.php?f=86&amp;amp;t=5558 Windows 2000 and FS Airlines Compatibility]==&lt;br /&gt;
For everyone who is using Windows 2000 and can&#039;t run the Client, the reason for this are some functions needed for SimConnect which are only installed on Windows XP / Vista systems.&lt;br /&gt;
For these users, there&#039;s a special build without SimConnect. You can get it here:&lt;br /&gt;
http://fsairlines.net/downloads/FSAirlines_v120noSC.zip&lt;br /&gt;
&lt;br /&gt;
==[http://fsairlines.net/forum/viewtopic.php?f=60&amp;amp;t=5921 Auto Fueling in FS9]==&lt;br /&gt;
Hi,&lt;br /&gt;
&lt;br /&gt;
Whilst digging around I took a look at the advanced options of FSUIPC and came across this :-&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;StopAutoFuel: Set this to ‗Yes‘ on FS2002/4 to stop automatic re-fuelling at scenery fuel boxes. With this selected you can only increase fuel via the FS menu or by using a program or gauge which does it via FSUIPC‘s offsets.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It only appears to work with a registered copy as the entry is already in the configuration settings with a default &#039;no&#039;. When removing the registration details and restarting, the configuration settings file is somewhat smaller and the relevant entry is missing. Adding the missing entry and saving to a non-registered configuration settings file doesn&#039;t stop auto refuelling.&lt;br /&gt;
&lt;br /&gt;
So, for those of you with a registered copy and want to close one door that might otherwise give you a flight marked cheat, look for the following entry in the FSUIPC configuration settings and make sure it reads &#039;yes&#039; :-&lt;br /&gt;
&lt;br /&gt;
StopAutoFuel=Yes&lt;br /&gt;
&lt;br /&gt;
==[http://fsairlines.net/forum/viewtopic.php?f=86&amp;amp;t=6153 Fixes to Common Problems]==&lt;br /&gt;
The topic above lists fixes to common problems that arise. Rather than list them all out here, they will remain only listed in that topic.&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2510</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2510"/>
		<updated>2011-04-16T23:28:48Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Requested Additions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Tag&lt;br /&gt;
!Attributes&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|See [[#Event criteria|Event criteria]] and [[#Event actions|Event actions]]&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Combination tag|Combination tag]]&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Startflight tag|Startflight tag]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only at the beginning of the flight and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Actual route flown distance&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2509</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2509"/>
		<updated>2011-04-16T23:02:17Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Event variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Tag&lt;br /&gt;
!Attributes&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|See [[#Event criteria|Event criteria]] and [[#Event actions|Event actions]]&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Combination tag|Combination tag]]&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Startflight tag|Startflight tag]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only at the beginning of the flight and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2508</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2508"/>
		<updated>2011-04-16T23:00:50Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Tags */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Tag&lt;br /&gt;
!Attributes&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|See [[#Event criteria|Event criteria]] and [[#Event actions|Event actions]]&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Combination tag|Combination tag]]&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|See [[#Startflight tag|Startflight tag]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2507</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2507"/>
		<updated>2011-04-16T23:00:26Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Combination Tag */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2506</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2506"/>
		<updated>2011-04-16T23:00:21Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Startflight Tag */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2505</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2505"/>
		<updated>2011-04-16T22:57:09Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Event attributes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight Tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Attribute&lt;br /&gt;
!Possible values&lt;br /&gt;
!Standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2504</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2504"/>
		<updated>2011-04-16T22:56:38Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Event attributes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight Tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see [[#Event variables|Event variables]] table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2503</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2503"/>
		<updated>2011-04-16T22:53:04Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight Tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains three tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2502</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2502"/>
		<updated>2011-04-16T22:52:34Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Startflight Tag */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight Tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2501</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2501"/>
		<updated>2011-04-16T22:52:05Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Startflight Tag===&lt;br /&gt;
The startflight tag is activated immediately when you start the flight with the Client. You can add a sound and a text attribute to the startflight tag, all other attributes are just ignored.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;startflight text=&amp;quot;Flight started!&amp;quot; sound=&amp;quot;boarding.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2500</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2500"/>
		<updated>2011-04-16T22:46:27Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Combination Tag */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. This means that the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2499</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2499"/>
		<updated>2011-04-16T21:56:26Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Combination Tag */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. So, the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot; multiple=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2498</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2498"/>
		<updated>2011-04-16T21:55:37Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Combination Tag */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. So, the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2497</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2497"/>
		<updated>2011-04-16T21:54:47Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Combination Tag===&lt;br /&gt;
The combination tag allows to check if multiple events are active at the same time. In other words you can check for a combination of events. The following example shows a combination of two events, the first one being activated when the aircraft climbs above 10000ft and the second one being activated when the landing lights are on. So, the combination event will be activated when the landing lights are on above 10000ft.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;combination text=&amp;quot;Landing Lights on above FL100&amp;quot; sound=&amp;quot;lightsFL100.wav&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;1&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;/combination&amp;gt;&lt;br /&gt;
&amp;lt;blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2496</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2496"/>
		<updated>2011-04-16T21:44:14Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Tags */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see [[#Event attributes|Event attributes]] below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039;, &#039;&#039;&#039;sound&#039;&#039;&#039; and &#039;&#039;&#039;multiple&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|&#039;&#039;&#039;text&#039;&#039;&#039; and &#039;&#039;&#039;sound&#039;&#039;&#039; from [[#Event attributes|Event attributes]] table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2495</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2495"/>
		<updated>2011-04-16T21:39:16Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Event variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see &amp;quot;Event attributes&amp;quot; below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|text, sound and multiple from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|text and sound from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
| width=90 | 0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Block)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Use 4-letter ICAO designator (e.g. B744) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Use 4-letter ICAO designator (e.g. KJFK) and &#039;&#039;method=&amp;quot;equal&amp;quot;&#039;&#039;. &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2494</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2494"/>
		<updated>2011-04-16T21:30:39Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Event variables */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see &amp;quot;Event attributes&amp;quot; below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|text, sound and multiple from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|text and sound from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|0 (Boarding)&amp;lt;br /&amp;gt;1 (Taxi)&amp;lt;br /&amp;gt;2 (Take Off)&amp;lt;br /&amp;gt;3 (Landed)&amp;lt;br /&amp;gt;4 (On Blcok)&amp;lt;br /&amp;gt;5 (Climb)&amp;lt;br /&amp;gt;6 (Cruise)&amp;lt;br /&amp;gt;7 (Descent)&amp;lt;br /&amp;gt;8 (Crashed)&lt;br /&gt;
|The current flightstate. Use the correct number and &amp;lt;i&amp;gt;method=&amp;quot;equal&amp;quot;&amp;lt;/i&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|aircrafttype&lt;br /&gt;
|XXXX&lt;br /&gt;
|The booked aircraft type. Enter 4-letter ICAO designator (e.g. B744).&lt;br /&gt;
|-&lt;br /&gt;
|destination&lt;br /&gt;
|XXXX&lt;br /&gt;
|The destination of the booked route. Enter 4-letter ICAO designator (e.g. KJFK)&lt;br /&gt;
|-&lt;br /&gt;
|closestairport&lt;br /&gt;
|XXXX&lt;br /&gt;
|The airport closest to the current aircraft position. Enter 4-letter Icao desigantor (e.g. KJFK). &#039;&#039;Updates only when flight is started and after touch-down.&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2493</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2493"/>
		<updated>2011-04-16T21:21:23Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Event attributes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see &amp;quot;Event attributes&amp;quot; below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|text, sound and multiple from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|text and sound from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;aircrafttype&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2492</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2492"/>
		<updated>2011-04-16T21:20:25Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Event attributes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see &amp;quot;Event attributes&amp;quot; below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|text, sound and multiple from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|text and sound from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&amp;lt;br /&amp;gt;flightstate&amp;lt;br /&amp;gt;destination&amp;lt;br /&amp;gt;closestairport&amp;lt;br /&amp;gt;&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2491</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2491"/>
		<updated>2011-04-16T21:15:48Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Tags====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!tag&lt;br /&gt;
!attributes&lt;br /&gt;
|-&lt;br /&gt;
|event&lt;br /&gt;
|see &amp;quot;Event attributes&amp;quot; below&lt;br /&gt;
|-&lt;br /&gt;
|combination&lt;br /&gt;
|text, sound and multiple from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|-&lt;br /&gt;
|startflight&lt;br /&gt;
|text and sound from &amp;quot;Event attributes&amp;quot; table&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;br /&gt;
*Trigger by airport/location (after landing)&lt;br /&gt;
*Trigger by aircraft type&lt;br /&gt;
*Trigger by destination&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Main_Page&amp;diff=2406</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Main_Page&amp;diff=2406"/>
		<updated>2010-11-20T20:29:02Z</updated>

		<summary type="html">&lt;p&gt;Konny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Mainheaderlogo.png|center]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
__NOEDITSECTION__&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot;  border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;30&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; style=&amp;quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&amp;quot; | &#039;&#039;&#039;[[Getting started|Getting Started]]&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[[Register_-_Create_a_new_Pilot_account|Register as a Pilot]]&amp;amp;nbsp;&amp;amp;middot;&lt;br /&gt;
[[Create your Virtual Airline|Create a Virtual Airline]]&amp;amp;nbsp;&amp;amp;middot;&lt;br /&gt;
[[Join an existing Virtual Airline|Join a Virtual Airline]]&amp;amp;nbsp;&amp;amp;middot;&lt;br /&gt;
[[Build_up_your_fleet_and_assign_type_ratings|Build up fleet and assign type ratings]]&amp;amp;nbsp;&amp;amp;middot; [[Define your routes]]&amp;amp;nbsp;&amp;amp;middot; [[The First Flight]]&lt;br /&gt;
| valign=&amp;quot;topright&amp;quot; width=&amp;quot;50%&amp;quot; style=&amp;quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&amp;quot; | &#039;&#039;&#039;General Information&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[[:Category:Tutorials|Tutorials]]&amp;amp;nbsp;&amp;amp;middot; [[:Category:Features|Features]]&amp;amp;nbsp;&amp;amp;middot; &lt;br /&gt;
[[Knownproblems|Known Problems]]&amp;amp;nbsp;&amp;amp;middot; [[VA Integration Kit]]&amp;amp;nbsp;&amp;amp;middot; [[Release|Release notes]]&amp;amp;nbsp;([[Release/latest|latest]])&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; style=&amp;quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&amp;quot; | &#039;&#039;&#039;[[:Category:Pilot Features|Pilot features]]&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[[:Profile]]&amp;amp;nbsp;&amp;amp;middot; [[:Messages]]&amp;amp;nbsp;&amp;amp;middot; [[:Hangar]]&amp;amp;nbsp;&amp;amp;middot; [[:Belongings]]&amp;amp;nbsp;&amp;amp;middot; [[:Logbook]]&amp;amp;nbsp;&amp;amp;middot; [[:Book Flight]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; style=&amp;quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&amp;quot; |  &#039;&#039;&#039;[[:Category:Terminology|The Three A&#039;s]]&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[[:Category:Airline Pages|Airlines]]&amp;amp;nbsp;&amp;amp;middot; [[:Category:Airplane Pages|Airplanes]]&amp;amp;nbsp;&amp;amp;middot; [[:Category:Alliance Pages|Alliances]]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; style=&amp;quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&amp;quot; | &#039;&#039;&#039;[[:Category:Virtual Airline Features|Virtual Airline features]]&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[[:Overview]]&amp;amp;nbsp;&amp;amp;middot; [[:Fleets]]&amp;amp;nbsp;&amp;amp;middot; [[:Flightplan]]&amp;amp;nbsp;&amp;amp;middot; [[:Partnerships]]&amp;amp;nbsp;&amp;amp;middot; [[:Finances]]&amp;amp;nbsp;&amp;amp;middot; [[:Blackboard]]&amp;amp;nbsp;&amp;amp;middot; [[:Advertisements]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; style=&amp;quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&amp;quot; |  &#039;&#039;&#039;[[:Category:Community|Community]]&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://www.fsairlines.net/forum Forums]&amp;amp;nbsp;&amp;amp;middot; [http://www.fsairlines.net Main Website]&amp;amp;nbsp;&amp;amp;middot; &lt;br /&gt;
[http://fsairlines.net/forum/viewtopic.php?f=61&amp;amp;t=3820 Screenshots]&lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; style=&amp;quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&amp;quot; | &#039;&#039;&#039;[[:Category:Database Features|Database features]]&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[[:Statistics]]&amp;amp;nbsp;&amp;amp;middot; [[:Aircraft types]]&amp;amp;nbsp;&amp;amp;middot; [[:Airports]]&amp;amp;nbsp;&amp;amp;middot; [[:Languages]]&amp;amp;nbsp;&amp;amp;middot; [[:Admin login]]&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; width=&amp;quot;50%&amp;quot; style=&amp;quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;&amp;quot; |&#039;&#039;&#039;[[:FS_Airlines_Client|The Client]]&#039;&#039;&#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
[[:Client Options]]&amp;amp;nbsp;&amp;amp;middot; [[:Client_Flight_Information|Flight Information]]&amp;amp;nbsp;&amp;amp;middot; &lt;br /&gt;
[[Fly!]]&amp;amp;nbsp;&amp;amp;middot; [[Client Plugin Beta]]&amp;amp;nbsp;&amp;amp;middot; [[Debug File]]&amp;amp;nbsp;&amp;amp;middot; [[Blackbox]]&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; style=&amp;quot;font-family: Verdana, Arial, Helvetica, sans-serif; border-top: 1px solid #AAAAAA;&amp;quot; |[[Image:Bit.gif|center|3px]]&amp;lt;center&amp;gt;&#039;&#039;&#039;[[FSAirlinesWiki:About|About The FSA Wiki]] &amp;amp;middot;  [[Help:Contents|Help]]&amp;amp;nbsp;&amp;amp;middot; [[Special:Categories|Categories]]&amp;amp;nbsp;&amp;amp;middot; [[Special:Allpages|All Pages]]&amp;amp;nbsp;&amp;amp;middot; [[Special:Newpages|New&amp;amp;nbsp;Pages ]]&#039;&#039;&#039;&amp;lt;/center&amp;gt;[[Image:Bit.gif|center|3px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table border=&amp;quot;0&amp;quot; valign=&amp;quot;top&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td width=&amp;quot;55%&amp;quot; valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right: 20;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;toc&amp;quot; valign=&amp;quot;top&amp;quot; style=&amp;quot;border:2px solid #205080; color: #000; background-color: #E4F0F9; padding: 10px; padding-left: 16px; padding-right: 16px;&amp;quot;&amp;gt;&lt;br /&gt;
{{Featured article}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;P&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Official_FSAirlines_Integration_Pack&amp;diff=2405</id>
		<title>Official FSAirlines Integration Pack</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Official_FSAirlines_Integration_Pack&amp;diff=2405"/>
		<updated>2010-11-20T20:26:03Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* For developers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Website Integration Packs]]&lt;br /&gt;
{{Infobox integration pack&lt;br /&gt;
|Version=1.0&lt;br /&gt;
|Date=September 9th, 2010&lt;br /&gt;
|Developers=[[User:Konny|Konny]]&lt;br /&gt;
Joe&lt;br /&gt;
|Svn path=/trunk&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==How to use==&lt;br /&gt;
The Integration Pack has been designed for easy integration into any website. There are no special requirements to the webserver. The easiest way to get the data into your own website is by using the [http://www.w3schools.com/TAGS/tag_iframe.asp &amp;lt;iframe&amp;gt;] HTML-Tag. Here&#039;s an example HTML-code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;iframe width=&amp;quot;600&amp;quot; height=&amp;quot;500&amp;quot; src=&amp;quot;http://remote.fsairlines.net/v1/roster.php?rvi=368&amp;amp;title=off&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;Your browser does not support iframes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/iframe&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
The &#039;&#039;src=&amp;quot;...&amp;quot;&#039;&#039; part determines which data is shown. Just copy the required url from the list of [[#Pages|pages]]. There are several [[#Parameters|parameters]] which can be appended to the url. These can be used to change for example the language or the color of the included page. The &#039;&#039;rvi=xxxx&#039;&#039; parameter is mandatory and has to be changed to the [[Virtual Airline Overview|ID]] of your own Virtual Airline. All other parameters have to be added with a leading &#039;&amp;amp;&#039; just like the &#039;&amp;amp;title=off&#039; in the example.&lt;br /&gt;
&lt;br /&gt;
==For developers==&lt;br /&gt;
The FSAirlines Integration Pack is Open-Source, so everybody with a [[VA Integration Kit#Developer Account|developers account]] can enhance and improve the scripts. All the files are located in the trunk folder of the FSAirlines Subversion repository. We will review all the changes and from time to time publish the current revision under a new version number. You&#039;re welcome to implement anything you think is useful, but please stick to the following rules:&lt;br /&gt;
*Please don&#039;t do massive layout changes. If you want a completely different look please create a new branch, maybe you can convince us and we will merge it with the Official Integration Pack.&lt;br /&gt;
*Please don&#039;t remove any functionality. You&#039;re free to extend the scripts, but if you feel like there should be a page with less information, please create a new one.&lt;br /&gt;
*Don&#039;t use function calls to the [[XML-Interface]] in loops. If you need a different data set, please ask the developers to add a function for that to the [[XML-Interface]].&lt;br /&gt;
*Always keep record of your changes on this wiki page.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
Here is a list of all the parameters which are currently supported.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| &#039;&#039;&#039;rvi=XXX&#039;&#039;&#039;	&lt;br /&gt;
| &#039;&#039;&#039;Virtual Airline ID number (mandatory)&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| lng=XX	&lt;br /&gt;
| Language translation (Coming Soon)&lt;br /&gt;
|-&lt;br /&gt;
| title=off	&lt;br /&gt;
| Hide the title of the pages&lt;br /&gt;
|-&lt;br /&gt;
| hub=XXXX	&lt;br /&gt;
| Four letter ICAO code, used by Timetable to show flights to and from the selected airport&lt;br /&gt;
|-&lt;br /&gt;
| cli=XXXXXX	&lt;br /&gt;
| Link Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| clv=XXXXXX	&lt;br /&gt;
| Visited Link Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| clh=XXXXXX	&lt;br /&gt;
| Hover Link Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| textcol=XXXXXX	&lt;br /&gt;
| Text Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| tblcol=XXXXXX	&lt;br /&gt;
| Table Heading Background Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| tbltextcol=XXXXXX	&lt;br /&gt;
| Table Heading Text Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| row1=XXXXXX	&lt;br /&gt;
| Data Row 1 Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| row2=XXXXXX	&lt;br /&gt;
| Data Row 2 Color, Six letter HTML Color code&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Pages==&lt;br /&gt;
The following table shows all the pages which you can include in your own VA website.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Roster	&lt;br /&gt;
| http://remote.fsairlines.net/v1/roster.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Roster ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/roster_2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Fleet	&lt;br /&gt;
| http://remote.fsairlines.net/v1/fleet.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Fleet ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/fleet_2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Timetable	&lt;br /&gt;
| http://remote.fsairlines.net/v1/timetable.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Timetable ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/timetable_2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Flight Reports ( Pireps )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/pireps.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Financial Report	&lt;br /&gt;
| http://remote.fsairlines.net/v1/finance.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Reliability Report	&lt;br /&gt;
| http://remote.fsairlines.net/v1/reliability.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Pilot Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/pilotstats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Monthly Pilot Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/mpilotstats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Fleet Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/fleetstats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Monthly Fleet Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/mfleetstats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Country Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/countrystats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Dispatch Office	&lt;br /&gt;
| http://remote.fsairlines.net/v1/dispatch.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Pilot Registration &amp;amp; Application (*)	&lt;br /&gt;
| http://remote.fsairlines.net/v1/application.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Infobox	&lt;br /&gt;
| http://remote.fsairlines.net/v1/infobox.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Infobox ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/infobox2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Booked Flights	&lt;br /&gt;
| http://remote.fsairlines.net/v1/flights_booked.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Active Flights	&lt;br /&gt;
| http://remote.fsairlines.net/v1/flights_active.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Active Flights ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/flights_active2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Last Flights 	&lt;br /&gt;
| http://remote.fsairlines.net/v1/lastflights.php?rvi=368&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Demos==&lt;br /&gt;
Here can have a look at how the pages of the Integration Pack look like.&lt;br /&gt;
===Basic VA data===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Roster&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/roster.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Roster (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/roster_2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Fleet&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/fleet.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Fleet (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/fleet_2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Timetable&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/timetable.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Timetable (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/timetable_2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Reports===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Flight Reports (PIREPs)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/pireps.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Financial Report&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/finance.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Reliability Report&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/reliability.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Statistics===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Pilot Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/pilotstats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Monthly Pilot Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/mpilotstats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Fleet Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/fleetstats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Monthly Fleet Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/mfleetstats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Country Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/countrystats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Infobox&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/infobox.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Infobo (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/infobox2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interactive===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Dispatch Office&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/dispatch.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Pilot Registration &amp;amp; Application&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/application.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flights===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Booked Flights&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/flights_booked.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Active Flights&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/flights_active.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Active Flights (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/flights_active2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Last Flights&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/lastflights.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=MediaWiki:Sidebar&amp;diff=2404</id>
		<title>MediaWiki:Sidebar</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=MediaWiki:Sidebar&amp;diff=2404"/>
		<updated>2010-11-20T20:24:13Z</updated>

		<summary type="html">&lt;p&gt;Konny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** Main_Page|Main Page&lt;br /&gt;
** Getting_started|Getting Started&lt;br /&gt;
** Category:Features|Features&lt;br /&gt;
** VA_Integration_Kit|VA Integration Kit&lt;br /&gt;
** knownproblems|Known Problems&lt;br /&gt;
** Special:recentchanges|Recent Changes&lt;br /&gt;
** Special:randompage|Random Page&lt;br /&gt;
&lt;br /&gt;
* secondnav&lt;br /&gt;
** Category:Community|Community Links&lt;br /&gt;
** http://www.fsairlines.net/forum|FS Airlines Forums&lt;br /&gt;
** http://www.fsairlines.net|FS Airlines Main Page&lt;br /&gt;
** FSA:Style Guide|Wiki Style Guide&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Official_FSAirlines_Integration_Pack&amp;diff=2403</id>
		<title>Official FSAirlines Integration Pack</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Official_FSAirlines_Integration_Pack&amp;diff=2403"/>
		<updated>2010-11-20T20:21:05Z</updated>

		<summary type="html">&lt;p&gt;Konny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Website Integration Packs]]&lt;br /&gt;
{{Infobox integration pack&lt;br /&gt;
|Version=1.0&lt;br /&gt;
|Date=September 9th, 2010&lt;br /&gt;
|Developers=[[User:Konny|Konny]]&lt;br /&gt;
Joe&lt;br /&gt;
|Svn path=/trunk&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==How to use==&lt;br /&gt;
The Integration Pack has been designed for easy integration into any website. There are no special requirements to the webserver. The easiest way to get the data into your own website is by using the [http://www.w3schools.com/TAGS/tag_iframe.asp &amp;lt;iframe&amp;gt;] HTML-Tag. Here&#039;s an example HTML-code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;iframe width=&amp;quot;600&amp;quot; height=&amp;quot;500&amp;quot; src=&amp;quot;http://remote.fsairlines.net/v1/roster.php?rvi=368&amp;amp;title=off&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;p&amp;gt;Your browser does not support iframes.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/iframe&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
The &#039;&#039;src=&amp;quot;...&amp;quot;&#039;&#039; part determines which data is shown. Just copy the required url from the list of [[#Pages|pages]]. There are several [[#Parameters|parameters]] which can be appended to the url. These can be used to change for example the language or the color of the included page. The &#039;&#039;rvi=xxxx&#039;&#039; parameter is mandatory and has to be changed to the [[Virtual Airline Overview|ID]] of your own Virtual Airline. All other parameters have to be added with a leading &#039;&amp;amp;&#039; just like the &#039;&amp;amp;title=off&#039; in the example.&lt;br /&gt;
&lt;br /&gt;
==For developers==&lt;br /&gt;
The FSAirlines Integration Pack is Open-Source, so everybody with a [[VA Integration Kit#Developer Account|developers account]] can enhance and improve the scripts. All the files are located in the trunk folder of the FSAirlines Subversion repository. We will review all the changes and from time to time publish the current revision under a new version number. You&#039;re welcome to implement anything you think is useful, but please stick to the following rules:&lt;br /&gt;
*Please don&#039;t do massive layout changes. If you want a completely different look please create a new branch, maybe you can convince us and we will merge it with the Official Integration Pack.&lt;br /&gt;
*Please don&#039;t remove any functionality. You&#039;re free to extend the scripts, but if you feel like there should be a page with less information, please create a new one.&lt;br /&gt;
*Don&#039;t use function calls to the [[XML-Interface]] in loops. If you need a different data set, please ask the developers to add a function for that to the [[XML-Interface]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
Here is a list of all the parameters which are currently supported.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| &#039;&#039;&#039;rvi=XXX&#039;&#039;&#039;	&lt;br /&gt;
| &#039;&#039;&#039;Virtual Airline ID number (mandatory)&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| lng=XX	&lt;br /&gt;
| Language translation (Coming Soon)&lt;br /&gt;
|-&lt;br /&gt;
| title=off	&lt;br /&gt;
| Hide the title of the pages&lt;br /&gt;
|-&lt;br /&gt;
| hub=XXXX	&lt;br /&gt;
| Four letter ICAO code, used by Timetable to show flights to and from the selected airport&lt;br /&gt;
|-&lt;br /&gt;
| cli=XXXXXX	&lt;br /&gt;
| Link Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| clv=XXXXXX	&lt;br /&gt;
| Visited Link Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| clh=XXXXXX	&lt;br /&gt;
| Hover Link Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| textcol=XXXXXX	&lt;br /&gt;
| Text Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| tblcol=XXXXXX	&lt;br /&gt;
| Table Heading Background Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| tbltextcol=XXXXXX	&lt;br /&gt;
| Table Heading Text Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| row1=XXXXXX	&lt;br /&gt;
| Data Row 1 Color, Six letter HTML Color code&lt;br /&gt;
|-&lt;br /&gt;
| row2=XXXXXX	&lt;br /&gt;
| Data Row 2 Color, Six letter HTML Color code&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Pages==&lt;br /&gt;
The following table shows all the pages which you can include in your own VA website.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| Roster	&lt;br /&gt;
| http://remote.fsairlines.net/v1/roster.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Roster ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/roster_2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Fleet	&lt;br /&gt;
| http://remote.fsairlines.net/v1/fleet.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Fleet ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/fleet_2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Timetable	&lt;br /&gt;
| http://remote.fsairlines.net/v1/timetable.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Timetable ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/timetable_2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Flight Reports ( Pireps )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/pireps.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Financial Report	&lt;br /&gt;
| http://remote.fsairlines.net/v1/finance.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Reliability Report	&lt;br /&gt;
| http://remote.fsairlines.net/v1/reliability.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Pilot Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/pilotstats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Monthly Pilot Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/mpilotstats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Fleet Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/fleetstats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Monthly Fleet Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/mfleetstats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Country Stats	&lt;br /&gt;
| http://remote.fsairlines.net/v1/countrystats.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Dispatch Office	&lt;br /&gt;
| http://remote.fsairlines.net/v1/dispatch.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Pilot Registration &amp;amp; Application (*)	&lt;br /&gt;
| http://remote.fsairlines.net/v1/application.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Infobox	&lt;br /&gt;
| http://remote.fsairlines.net/v1/infobox.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Infobox ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/infobox2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Booked Flights	&lt;br /&gt;
| http://remote.fsairlines.net/v1/flights_booked.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Active Flights	&lt;br /&gt;
| http://remote.fsairlines.net/v1/flights_active.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Active Flights ( Alternate )	&lt;br /&gt;
| http://remote.fsairlines.net/v1/flights_active2.php?rvi=368&lt;br /&gt;
|-&lt;br /&gt;
| Last Flights 	&lt;br /&gt;
| http://remote.fsairlines.net/v1/lastflights.php?rvi=368&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Demos==&lt;br /&gt;
Here can have a look at how the pages of the Integration Pack look like.&lt;br /&gt;
===Basic VA data===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Roster&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/roster.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Roster (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/roster_2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Fleet&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/fleet.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Fleet (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/fleet_2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Timetable&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/timetable.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Timetable (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/timetable_2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Reports===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Flight Reports (PIREPs)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/pireps.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Financial Report&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/finance.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Reliability Report&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/reliability.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Statistics===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Pilot Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/pilotstats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Monthly Pilot Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/mpilotstats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Fleet Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/fleetstats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Monthly Fleet Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/mfleetstats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Country Stats&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/countrystats.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Infobox&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/infobox.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Infobo (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/infobox2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interactive===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Dispatch Office&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/dispatch.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Pilot Registration &amp;amp; Application&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/application.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flights===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Booked Flights&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/flights_booked.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Active Flights&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/flights_active.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Active Flights (Alternate)&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/flights_active2.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;Last Flights&amp;lt;/div&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;anyweb&amp;gt;http://remote.fsairlines.net/v1/lastflights.php?rvi=7&amp;amp;title=off&amp;lt;/anyweb&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2402</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2402"/>
		<updated>2010-11-20T20:11:43Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Access Restriction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially.&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions need parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price, reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot;&amp;gt;Parameters in brackets are optional&amp;lt;/ref&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, flights, rating, hours, distance, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2398</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2398"/>
		<updated>2010-11-20T18:01:16Z</updated>

		<summary type="html">&lt;p&gt;Konny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions need parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price, reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot;&amp;gt;Parameters in brackets are optional&amp;lt;/ref&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, flights, rating, hours, distance, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2397</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2397"/>
		<updated>2010-11-20T17:59:55Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Access Restriction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered in our database. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions need parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price, reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot;&amp;gt;Parameters in brackets are optional&amp;lt;/ref&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, flights, rating, hours, distance, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2396</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2396"/>
		<updated>2010-11-20T17:58:41Z</updated>

		<summary type="html">&lt;p&gt;Konny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
==Access Restriction==&lt;br /&gt;
In order to be able to receive data from the XML-Interface the domain of your VA&#039;s website must be registered on FSAirlines.net. There are different access levels available:&lt;br /&gt;
*Read only access for your VA&lt;br /&gt;
*Read and write access (except account creation) for your VA. This access level will be given to you initially&lt;br /&gt;
*Read and write access for your VA. This access level will be given to your VA if you show our privacy policy on your registration page.&lt;br /&gt;
To request one of these access levels, please contact the admins using a support ticket and don&#039;t forget to add the domain of your website.&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions need parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price, reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot;&amp;gt;Parameters in brackets are optional&amp;lt;/ref&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, flights, rating, hours, distance, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2395</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2395"/>
		<updated>2010-11-20T17:29:40Z</updated>

		<summary type="html">&lt;p&gt;Konny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|groundspeed&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Ground speed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;br /&gt;
*Actual route flown distance&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2393</id>
		<title>Blackbox</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=Blackbox&amp;diff=2393"/>
		<updated>2010-11-14T12:35:36Z</updated>

		<summary type="html">&lt;p&gt;Konny: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Features]]&lt;br /&gt;
The Blackbox is a Client module running during flight and recording certain events which can be defined in a xml file. There are two output possibilities:&lt;br /&gt;
*Text output to the flight log. The text is uploaded together with the flight report and can be viewed on the website after the flight.&lt;br /&gt;
*Immediate sound output. User-defined wav-files can be played immediately when an event occurs.&lt;br /&gt;
With these two options it&#039;s possible to record predefined flight states for a more detailed flight analysis and to enhance the flight environment with sounds. You could for example play a flight attendant announcement sound when you reach a certain altitude or some Co-Pilot sounds when the it&#039;s time to turn off the landing lights... there are endless possibilites.&lt;br /&gt;
The Client comes with a basic blackbox file to get you started but you can easily adapt it to your own needs. If there&#039;s something you&#039;re missing or if you need help please don&#039;t hesitate to ask in the forums.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Blackbox Packages==&lt;br /&gt;
If you created your own blackbox.xml and want to share it with others, please add a link here. In case you don&#039;t have webspace on your own you can always contact the devs and they will upload it to the fsairlines server, thanks :).&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Link&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[http://fsairlines.net/client-page FSAirlines Client]&lt;br /&gt;
|The standard blackbox package coming with the Client. Includes some gear, flaps and landing light info plus an applause sound when the aircraft touches ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Configuration==&lt;br /&gt;
The configuration of the Blackbox is saved in the blackbox.xml file which resides in the [[Client data folder]]. This xml file can be freely edited with any text-editor using the following commands.&lt;br /&gt;
&lt;br /&gt;
===General structure===&lt;br /&gt;
The blackbox.xml basically only consists of a couple of event tags encapsulated by the &amp;lt;i&amp;gt;blackbox&amp;lt;/i&amp;gt; tag. Each of these event tags contains attributes describing the event to record. The following example is the standard blackbox.xml coming with every Client release:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;blackbox&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights off&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear down&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;gear&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Gear up&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 100%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0.5&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps 50%&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;flaps&amp;quot; value=&amp;quot;0&amp;quot; method=&amp;quot;equal&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Flaps retracted&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;event var=&amp;quot;vs&amp;quot; value=&amp;quot;-200&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; flightstate=&amp;quot;landed&amp;quot; sound=&amp;quot;snd_applause.wav&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/blackbox&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Event criteria===&lt;br /&gt;
As you can see in the example above each event tag consists of several attributes defining when to activate the event.  Let&#039;s take the first line as an example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;landinglights&amp;quot; value=&amp;quot;1&amp;quot; method=&amp;quot;equals&amp;quot; multiple=&amp;quot;1&amp;quot; text=&amp;quot;Landing Lights on&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
First of all there is &amp;lt;i&amp;gt;var&amp;lt;/i&amp;gt;, defining which Flight Simulator variable is tested. In this case the value is &amp;lt;i&amp;gt;landinglights&amp;lt;/i&amp;gt; which means that the Client checks the landing lights status. The following attribute is &amp;lt;i&amp;gt;value&amp;lt;/i&amp;gt;. This is the reference value for the Client. Together with the &amp;lt;i&amp;gt;method&amp;lt;/i&amp;gt; attribute the Client can then test the current status of the variable to see if the event has to be activated. So, the first three attributes can be read as: &amp;quot;If the status of the landing lights equals 1, then activate the event&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
There are additional attributes for more control over the event activation. These are &amp;lt;i&amp;gt;multiple&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt;. If multiple is set to 1, then the event can be activated several times. So in this case each time the landing lights are turned on, the event gets executed. Setting this value to 0 would only allow this event to be activated the first time the landing lights are turned on.&lt;br /&gt;
The &amp;lt;i&amp;gt;flightstate&amp;lt;/i&amp;gt; attribute restricts the event activation to a single flightstate. Hence if you only want the event to be activated during take off you could set this to &amp;lt;i&amp;gt;takeoff&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Event actions===&lt;br /&gt;
The final step is to tell the Client what happens when the event is executed. There are two possibilities: Text output to the log or immediate sound output. If you add the &amp;lt;i&amp;gt;text&amp;lt;/i&amp;gt; attribute, the text will be shown in the log on the website. &lt;br /&gt;
&lt;br /&gt;
If you add a &amp;lt;i&amp;gt;sound&amp;lt;/i&amp;gt; attribute, the defined sound will be immediately played when the event is activated. The Client can play any .wav file which is located in the Client&#039;s sound directory. If you want to publish a blackbox.xml to your pilots don&#039;t forget to send them the required sound files. Let&#039;s give a little example here: Say you want to play a sound file called &amp;lt;i&amp;gt;FL100.wav&amp;lt;/i&amp;gt; when the airplane climbs above FL100. First you create a folder for all your personal sound files inside your Client sound directory. This not mandatory but we recommend to do it this way so the different sound files don&#039;t get mixed up. We call it &amp;lt;i&amp;gt;my_va&amp;lt;/i&amp;gt;. The Client sound folder looks like this then:&lt;br /&gt;
&amp;lt;pre&amp;gt;sounds/en/*.wav&lt;br /&gt;
sounds/my_va/FL100.wav&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the blackbox.xml we have to tell the Client to play this sound when the aircraft climbs above 10,000ft the first time. The final event tag looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;event var=&amp;quot;altitudestd&amp;quot; value=&amp;quot;10000&amp;quot; method=&amp;quot;greater&amp;quot; multiple=&amp;quot;0&amp;quot; sound=&amp;quot;my_va/FL100.wav&amp;quot; /&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Overview===&lt;br /&gt;
This section contains two tables giving you a quick overview over all the variables and options you can add to your own blackbox.xml.&lt;br /&gt;
&lt;br /&gt;
====Event attributes====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!attribute&lt;br /&gt;
!possible values&lt;br /&gt;
!standard value&lt;br /&gt;
|-&lt;br /&gt;
|var&lt;br /&gt;
|altitudeagl&amp;lt;br /&amp;gt;altitudestd&amp;lt;br /&amp;gt;flaps&amp;lt;br /&amp;gt;gear&amp;lt;br /&amp;gt;ias&amp;lt;br /&amp;gt;landinglights&amp;lt;br /&amp;gt;vs&lt;br /&gt;
|ias&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|depends on variable (see table below)&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|method&lt;br /&gt;
|less&amp;lt;br /&amp;gt;equal&amp;lt;br /&amp;gt;greater&lt;br /&gt;
|equal&lt;br /&gt;
|-&lt;br /&gt;
|multiple&lt;br /&gt;
|0&amp;lt;br /&amp;gt;1&lt;br /&gt;
|0&lt;br /&gt;
|-&lt;br /&gt;
|flightstate&lt;br /&gt;
|boarding&amp;lt;br /&amp;gt;taxi&amp;lt;br /&amp;gt;takeoff&amp;lt;br /&amp;gt;climb&amp;lt;br /&amp;gt;cruise&amp;lt;br /&amp;gt;descent&amp;lt;br /&amp;gt;landed&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|text&lt;br /&gt;
|any text up to 255 characters&lt;br /&gt;
|undefined&lt;br /&gt;
|-&lt;br /&gt;
|sound&lt;br /&gt;
|relative path from Client sound directory to .wav file&lt;br /&gt;
|undefined&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Event variables====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Variable&lt;br /&gt;
!Values&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|landinglights&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the landing lights. 1 = on, 0 = off.&lt;br /&gt;
|-&lt;br /&gt;
|gear&lt;br /&gt;
|0 or 1&lt;br /&gt;
|Status of the gear. 1 = down, 0 = up.&lt;br /&gt;
|-&lt;br /&gt;
|flaps&lt;br /&gt;
|0.0 - 1.0&lt;br /&gt;
|Status of the flaps. 0 = fully retracted, 1 = fully extended.&lt;br /&gt;
|-&lt;br /&gt;
|ias&lt;br /&gt;
|0 - 9999&lt;br /&gt;
|Indicated airspeed (knots).&lt;br /&gt;
|-&lt;br /&gt;
|vs&lt;br /&gt;
| -9999 - 9999&lt;br /&gt;
|Vertical speed (fpm).&lt;br /&gt;
|-&lt;br /&gt;
|altitudestd&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above 1013.25hP (Standard atmosphere) in feet.&lt;br /&gt;
|-&lt;br /&gt;
|altitudeagl&lt;br /&gt;
|0 - 999999&lt;br /&gt;
|Altitude above ground level (feet).&lt;br /&gt;
|}&lt;br /&gt;
Need more variables? Don&#039;t hesitate to ask in the forums!&lt;br /&gt;
&lt;br /&gt;
==Requested Additions==&lt;br /&gt;
More features which have been requested:&lt;br /&gt;
*Ground speed variable&lt;br /&gt;
*Combination of different variables (e.g. trigger if certain speed and altitude are reached)&lt;br /&gt;
*Trigger when flight is started&lt;br /&gt;
*Trigger by flightstate only&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2392</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2392"/>
		<updated>2010-11-12T13:15:11Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Flight Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions need parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price, reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot;&amp;gt;Parameters in brackets are optional&amp;lt;/ref&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, flights, rating, hours, distance, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2391</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2391"/>
		<updated>2010-11-12T13:14:53Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Aircraft Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions need parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price, reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot; /&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, flights, rating, hours, distance, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2390</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2390"/>
		<updated>2010-11-12T13:14:29Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Airport Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions need parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot;&amp;gt;Parameters in brackets are optional&amp;lt;/ref&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price, reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot; /&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, flights, rating, hours, distance, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
	<entry>
		<id>https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2389</id>
		<title>XML-Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki4.fsairlines.net/index.php?title=XML-Interface&amp;diff=2389"/>
		<updated>2010-11-12T13:14:24Z</updated>

		<summary type="html">&lt;p&gt;Konny: /* Financial Data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The XML-Interface is the core of the [[VA Integration Kit]]. It has been designed to give VA Administrators with the knowledge of dynamic web techniques the possibility to create their own layout and perfectly integrate the information into their own website using XML data from FSAirlines. &lt;br /&gt;
&lt;br /&gt;
==Basic Usage==&lt;br /&gt;
The data can be received using HTTP calls to the interface script and add the desired function to the parameters. Here is an example request:&lt;br /&gt;
&amp;lt;pre&amp;gt;http://www.fsairlines.net/va_interface.php5?function=getPilotList&amp;amp;va_id=7&amp;lt;/pre&amp;gt;&lt;br /&gt;
As you can see there is the interface script &#039;&#039;va_interface.php5&#039;&#039;, the function &#039;&#039;getPilotList&#039;&#039; and one function parameter &#039;&#039;va_id=7&#039;&#039;. Some functions require additional parameters, these can be appended after the &#039;&#039;va_id&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The result of the request will be given in xml format with the base-tag being &#039;&#039;&amp;lt;fsa_output&amp;gt;&#039;&#039;. This tag has the attributes &#039;&#039;version&#039;&#039; and &#039;&#039;success&#039;&#039; which show the version number of the interface and if the request succeeded or not. In case of a failure the &#039;&#039;success&#039;&#039;-attribute shows the error message. The following example shows the return text of the above function:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;fsa_output version=&amp;quot;1.0&amp;quot; success=&amp;quot;SUCCESS&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;1&amp;quot; name=&amp;quot;Konrad&amp;quot; surname=&amp;quot;Pustka&amp;quot; va_user=&amp;quot;SNA101&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1287330550&amp;quot; budget=&amp;quot;198144&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;data id=&amp;quot;2&amp;quot; name=&amp;quot;Claudio&amp;quot; surname=&amp;quot;Gusmini&amp;quot; va_user=&amp;quot;SNA102&amp;quot; location=&amp;quot;EDDM&amp;quot; lastactive=&amp;quot;1286366261&amp;quot; budget=&amp;quot;216405101&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/fsa_output&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
Inside the &#039;&#039;fsa_output&#039;&#039;-tag there are the &#039;&#039;data&#039;&#039;-tags which contain all the information.&lt;br /&gt;
To use this data in your own webpage you need some knowledge in dynamic web-programming, for example PHP. We can&#039;t give you a complete introduction into PHP, but you can always have a look at the [[Official FSAirlines Integration Pack]] and see how we readout the data there.&lt;br /&gt;
&lt;br /&gt;
==Data==&lt;br /&gt;
The following section contains a detailed list of all the request-functions with their return values.&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
All the request functions need parameters which need to be appended. The following table shows all the parameters and their meaning.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Parameter&lt;br /&gt;
! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| ac_id&lt;br /&gt;
| ID of the aircraft. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| accept_pp&lt;br /&gt;
| Must be set &#039;1&#039; if Privacy Policy is accepted.&lt;br /&gt;
|-&lt;br /&gt;
| acdb_id&lt;br /&gt;
| ID of the aircraft type. Is part of the data received from other functions (e.g. getAircraftList).&lt;br /&gt;
|-&lt;br /&gt;
| airport&lt;br /&gt;
| Starting airport. Where the user should be placed first.&lt;br /&gt;
|-&lt;br /&gt;
| arr&lt;br /&gt;
| ICAO code of the arrival airport.&lt;br /&gt;
|-&lt;br /&gt;
| count&lt;br /&gt;
| Number past flights which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| country&lt;br /&gt;
| Name of the country. &lt;br /&gt;
|-&lt;br /&gt;
| days&lt;br /&gt;
| Number of past days from now which should be displayed.&lt;br /&gt;
|-&lt;br /&gt;
| dep&lt;br /&gt;
| ICAO code of the departure airport.&lt;br /&gt;
|-&lt;br /&gt;
| email&lt;br /&gt;
| E-Mail of the user.&lt;br /&gt;
|-&lt;br /&gt;
| fleet_id&lt;br /&gt;
| ID of the fleet. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| from_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should start.&lt;br /&gt;
|-&lt;br /&gt;
| givenname&lt;br /&gt;
| Given name of the user.&lt;br /&gt;
|-&lt;br /&gt;
| icao&lt;br /&gt;
| ICAO code of the airport.&lt;br /&gt;
|-&lt;br /&gt;
| passwd&lt;br /&gt;
| Password of the pilot (MD5 encrypted).&lt;br /&gt;
|-&lt;br /&gt;
| password&lt;br /&gt;
| Password of the user.&lt;br /&gt;
|-&lt;br /&gt;
| pilot_id&lt;br /&gt;
| ID of the pilot. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| report_id&lt;br /&gt;
| ID of the report. Is part of the data received from other functions.&lt;br /&gt;
|-&lt;br /&gt;
| surname&lt;br /&gt;
| Surname of the user.&lt;br /&gt;
|-&lt;br /&gt;
| to_ts&lt;br /&gt;
| UNIX timestamp of the date where the listing should end.&lt;br /&gt;
|-&lt;br /&gt;
| user&lt;br /&gt;
| Username of the pilot.&lt;br /&gt;
|-&lt;br /&gt;
| username&lt;br /&gt;
| Requested username.&lt;br /&gt;
|-&lt;br /&gt;
| va_id&lt;br /&gt;
| ID of the [[Virtual Airline]]. Is displayed on the [[Overview]] page.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Aircraft Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot;&amp;gt;Parameters in brackets are optional&amp;lt;/ref&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftData&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, acdb_id, location, va_id, user_id, lease_id, fleet_id, status, value, registration, fuel, state, ac_name, stateeng1, stateeng2, stateeng3, stateeng4, stategear, statehull, img_path&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBData&lt;br /&gt;
| va_id, acdb_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, passengers, price, fuel, dow, mtow, speed, engines, cargo, mzfw, market_only, range&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftDBList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getAircraftStats&lt;br /&gt;
| va_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| flights, hours, distance&lt;br /&gt;
|-&lt;br /&gt;
| getFleetAircraftList&lt;br /&gt;
| va_id, fleet_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registration, state, ac_name, status, fleet_id, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getFleetList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name&lt;br /&gt;
|-&lt;br /&gt;
| getFleetStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getLeasedAircraftList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, acdb_id, icao, value, location, registraion, state, ac_name, status, fleet_id, fuel, va_id, name, expire&lt;br /&gt;
|- &lt;br /&gt;
| getPeriodFleetStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airport Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot; /&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirportData&lt;br /&gt;
| va_id, icao&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, iata, icao, city, country, la_g, la_p, la_s, la_d, lat, lo_g, lo_p, lo_s, lo_d, lon, altitude, length, fuel, size&lt;br /&gt;
|-&lt;br /&gt;
| getAirportList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| icao, name, city, country, fuel, lat, lon&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Airline Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineData&lt;br /&gt;
| va_id, id (=va_id)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, base, code, budget, homepage, logo_l, logo_s, price, reputation, pilotcharge, multiplier, mission&lt;br /&gt;
|-&lt;br /&gt;
| getAirlineStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getCountryStats&lt;br /&gt;
| va_id, country&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| va_name, id, flights, rating hours, profit, distance, last, fuel_used, pax, cargo_kg&lt;br /&gt;
|- &lt;br /&gt;
| getRankList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, short, settings, pilots, aircrafts, fleet, flights, partnerships, advertisements, fleet_id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Financial Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getLast10Transactions&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ts, value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getNegTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|-&lt;br /&gt;
| getPosTransactionSums&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| value, reason&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&amp;lt;ref name=&amp;quot;params&amp;quot; /&amp;gt;&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getActiveFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id, flightstate, timestamp&lt;br /&gt;
|-&lt;br /&gt;
| getBookedFlights&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| departure, arrival, passengers, cargo, user_id, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getFlightReports&lt;br /&gt;
| va_id, (acdb_id), (ac_id), (pilot_id), (days), (count)&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, dep, arr, pln_arr, ts, pax, ac_type, distance, rating, salary, income, pilot_id, pic, pid, fuel_used, flighttype, hours, ac_id, number, deptime, arrtime, pln_deptime, pln_arrtime, route_id, va_id, va&lt;br /&gt;
|- &lt;br /&gt;
| getReportDetail&lt;br /&gt;
| va_id, report_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, ac_type, ac_id, pic, pilot_id, number, dep, pln_arr, arr, deptime, loc_deptime, arrtime, loc_arrtime, hours, ts, flightstate, rating, ratingreasons, distance, pax, ticket, crew, salary, fuelprice, fuel_bought, fuel_used, profit, version, simrate, multiplier, bonus, cargo, cargo_kg, flighttype, comment, cheat&lt;br /&gt;
|-&lt;br /&gt;
| getRouteData&lt;br /&gt;
| va_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, va_id, cs_vaid, number, dep, arr, deptime, arrtime, simrate, days, price, state, flighttype&lt;br /&gt;
|-&lt;br /&gt;
| getRouteList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, number, dep, dep_country, arr, arr_country, deptime, arrtime, simrate, days, price, state, flighttype, acdb_list, ac_id&lt;br /&gt;
|}&lt;br /&gt;
===Pilot Data===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| getPeriodPilotStats&lt;br /&gt;
| va_id, from_ts, to_ts&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotData&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, budget, lastactive, active, sigac, timezone, weightunit, language, msgmail, flights, rating, hours, distance, pax, cargo_kg&lt;br /&gt;
|-&lt;br /&gt;
| getPilotHours&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, manufacturer, type, icao, hours&lt;br /&gt;
|-&lt;br /&gt;
| getPilotList&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, name, surname, user, va_user, rank_id, location, last_active, status, budget&lt;br /&gt;
|-&lt;br /&gt;
| getPilotRatings&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, training, manufacturer, type&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStats&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id, flights, rating, hours, distance, last, fuel_used, profit, cargo_kg, pax&lt;br /&gt;
|-&lt;br /&gt;
| getPilotStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| ac_id, route_id, departure, arrival, dep_time, dist, duration, status, lon, lat, flightstate, passengers, income, ticket, timestamp, cargo, multiplier, flighttype&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Flight Booking===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| bookFlight&lt;br /&gt;
| va_id, pilot_id, passwd, route_id, ac_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| success, message, codeshare, codeshare_msg&lt;br /&gt;
|-&lt;br /&gt;
| cancelFlight&lt;br /&gt;
| va_id, pilot_id, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| result, loss&lt;br /&gt;
|-&lt;br /&gt;
| getBookableRoutes&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| number, dep, arr, deptime, arrtime, id, state, simrate, flighttype, training, price, list, ac_id&lt;br /&gt;
|-&lt;br /&gt;
| getBookableAircraft&lt;br /&gt;
| va_id, pilot_id, route_id&lt;br /&gt;
| SUCCESS, NOT FOUND, FLIGHT BOOKED, GROUNDED, SUSPENDED, VA INACTIVE&lt;br /&gt;
| type, registration, state, id, name, fuel&lt;br /&gt;
|-&lt;br /&gt;
| getBookStatus&lt;br /&gt;
| va_id, pilot_id&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| status&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Miscellaneous User Functions===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Function&lt;br /&gt;
! Parameters&lt;br /&gt;
! Return Codes&lt;br /&gt;
! Data&lt;br /&gt;
|-&lt;br /&gt;
| createAccount&lt;br /&gt;
| va_id, givenname, surname, username, email, password, airport, accept_pp&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| success, message, code&lt;br /&gt;
|-&lt;br /&gt;
| getPilotID&lt;br /&gt;
| va_id, user, passwd&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| id&lt;br /&gt;
|-&lt;br /&gt;
| getPrivacyPolicy&lt;br /&gt;
| va_id&lt;br /&gt;
| SUCCESS&lt;br /&gt;
| policy&lt;br /&gt;
|-&lt;br /&gt;
| getTransferCost&lt;br /&gt;
| va_id, arr, dep&lt;br /&gt;
| SUCCESS, NOT FOUND&lt;br /&gt;
| cost&lt;br /&gt;
|-&lt;br /&gt;
| transferPilot&lt;br /&gt;
| va_id, pilot_id, passwd, icao&lt;br /&gt;
| SUCCESS, NOT FOUND, INSUFFICIENT FUNDS&lt;br /&gt;
| cost&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Konny</name></author>
	</entry>
</feed>