Howto:Fetch live aloft data: Difference between revisions

Jump to navigation Jump to search
m
Update to Git
m (Syntaxhighlighting)
m (Update to Git)
Line 1: Line 1:
This [[:Category:Howto|HOWTO]] describes how to setup live setting of wind aloft. This is the wind speed, direction and temperature for different altitudes. [[FlightGear]]'s feature of setting current weather by using the <tt>--enable-real-weather-fetch</tt> uses [[METAR]] which only reports ground weather.  
This [[:Category:Howto|howto]] describes '''how to setup live setting of wind aloft'''. This is the wind speed, direction and temperature for different altitudes. [[FlightGear]]'s feature of setting current weather by using the <tt>--enable-real-weather-fetch</tt> uses [[METAR]] which only reports ground weather.  


The aloft feature currently only works if you have a source distribution of FlightGear or the [[CVS]] version since you have to apply a tiny patch to the sourcecode (just a single line). It only works if you have '''bash''', '''awk''', '''wget''' and '''netcat''' on your machine. This is usually the case if you are running linux and should be no sweat for OS/X but might require some setup if you have some less feature rich operating system.
The aloft feature currently only works if you have a source distribution of FlightGear or the [[Git]] version since you have to apply a tiny patch to the sourcecode (just a single line). It only works if you have '''bash''', '''awk''', '''wget''' and '''netcat''' on your machine. This is usually the case if you are running linux and should be no sweat for OS/X but might require some setup if you have some less feature rich operating system.


== General description ==
== General description ==
Line 45: Line 45:
in the file src/Environment/environment_ctrl.cxx. It should be around line 620. Perform a make for FlightGear.
in the file src/Environment/environment_ctrl.cxx. It should be around line 620. Perform a make for FlightGear.


'''EDIT:''' This is no longer needed if you use FlightGear CVS. Just set the property
'''EDIT:''' This is no longer needed if you use FlightGear Git. Just set the property
  /environment/params/metar-updates-winds-aloft
  /environment/params/metar-updates-winds-aloft
to false. This can be done from the command line like
to false. This can be done from the command line like

Navigation menu