I don't know if this is the case for all platforms (I suspect it is), but in the same directory as your fgfs executable, there should be an executable called "metar".
This can be run from a command prompt, or you could create some sort of shortcut, depending on your platform. Here is an example of running this on Linux:
- Code: Select all
$ metar EGLL
METAR Report (automatically generated)
============
Airport-Id: EGLL
Report time: 2016/1/22 8:50 UTC
Visibility: >=10 km >=6.2 US-miles
Wind: from the SSE (160°) at 22.2 km/h 12 kt = 13.8 mph = 6.2 m/s
Temperature: 6°C 42.8°F
Dewpoint: 5°C 41°F
Rel. Humidity: 93%
Pressure: 1015 hPa 29.97 in. Hg
Weather: light rain
Sky condition: sky overcast at 800 ft 240 m
This is useful if the ATIS is unintelligible, or if an ATIS frequency is not defined for a given airport but it has a weather station in real life. Note that it gives the METAR for a given station; using Environment-Weather gives the weather at your location, which could be different from the weather at your destination airport.
Here is the inbuilt help text:
- Code: Select all
$ metar --help
Usage: metar [-v] [-e elevation] [-r|-c] <list of ICAO airport ids or METAR strings>
metar -h
-h|--help show this help
-v|--verbose verbose output
-r|--report print report (default)
-c|--command-line print command line
-e E|--elevation E set airport elevation to E meters
(added to cloud bases in command line mode)
Environment:
http_proxy set proxy in the form "http://host:port/"
Examples:
$ metar ksfo koak
$ metar -c ksfo -r ksfo
$ metar "LOWL 161500Z 19004KT 160V240 9999 FEW035 SCT300 29/23 Q1006 NOSIG"
$ fgfs `metar -e 183 -c loww`
$ http_proxy=http://localhost:3128/ metar ksfo
For the truly curious, this is the source code:
http://sourceforge.net/p/flightgear/fli ... r_main.cxx