8,567
edits
m (Syntaxhighlighting) |
|||
Line 14: | Line 14: | ||
First, we need to tell FlightGear how to broadcast the station ID of the actual METAR-station. Copy and paste the following code into a file named | First, we need to tell FlightGear how to broadcast the station ID of the actual METAR-station. Copy and paste the following code into a file named | ||
metarstationid.xml and save it to your data/Protocol directory. | metarstationid.xml and save it to your data/Protocol directory. | ||
<source> | |||
<?xml version="1.0"?> | <?xml version="1.0"?> | ||
<PropertyList> | <PropertyList> | ||
Line 35: | Line 36: | ||
</generic> | </generic> | ||
</PropertyList> | </PropertyList> | ||
</source> | |||
=== The FlightGear Patch === | === The FlightGear Patch === | ||
Line 50: | Line 52: | ||
=== The aloftd === | === The aloftd === | ||
Copy and paste the following code to a file named '''aloftd''': | Copy and paste the following code to a file named '''aloftd''': | ||
<source lang="python"> | |||
#!/bin/bash | #!/bin/bash | ||
#KSFO FD DATA BASED ON 190600Z. | #KSFO FD DATA BASED ON 190600Z. | ||
Line 145: | Line 148: | ||
' | netcat localhost ${TELNET_PORT} | ' | netcat localhost ${TELNET_PORT} | ||
done | done | ||
</source> | |||
Save the file to any location and make the file executable. | Save the file to any location and make the file executable. |