Hi,
I need to set the ambient temperature and wind. I have searched for sim vars and found the weather and wind info can be read but not settable. The only way I can imagine is to set the METAR. Also, I found the API I need to read METAR data from is WeatherRequestObservationAtStation, but I have trouble using the struct SIMCONNECT_RECV_WEATHER_OBSERVATION then as this is a C++ struct. Is there a similar struct in C# so that I can get the METAR string? Thanks.
How to get the METAR string in C#?
Re: How to get the METAR string in C#?
Use the Object Browser in Visual Studio to look at SIMCONNECT_RECV_WEATHER_OBSERVATION You'll see that SIMCONNECT_RECV_WEATHER_OBSERVATION is a class with two fields, public uint dwRequestID and public string szMetar.
-
- Posts: 58
- Joined: Fri Aug 18, 2017 1:04 am
Re: How to get the METAR string in C#?
Hi maxaero, thanks you are right.