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.
3 posts • Page 1 of 1
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.
Who is online
Users browsing this forum: No registered users and 2 guests