plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

Save the date ! On February the 9th, at 10:30am, we will be happy to meet you again for a live SDK Q&A ! You can already ask all your questions here on the forum.

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

Please take a moment to read the platform’s guidelines before you get started!


Idea

IcemanFBW avatar image
IcemanFBW suggested tml edited

Create SimVars for accessing humidity and dewpoint environment data for an aircraft

The visual effects editor has just been added, and we are looking to add wing and engine condensation (pictured below) - however, these phenomena are dependent on temperature, humidity, dew point, and other aircraft data in order to calculate whether they should appear or not.


Currently, there are no simvars for retrieving the ambient humidity and dew point in the area immediately surrounding an aircraft. We would really appreciate if these were implemented.


1623113386998.png


1623113394813.png

aircraftfxsimconnect
1623113386998.png (687.3 KiB)
1623113394813.png (138.8 KiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Stardrifter avatar image
Stardrifter commented

Seconding this with another use case: I need to to calculate buoyancy in aerostats. With dewpoint alone we could calculate relative humidity. I wonder, is this simvar missing because the data isn't present? I admittedly don't know what all would be dependent upon it to know if that's a silly question.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Krazycolin avatar image
Krazycolin commented

We'd like to get this as well please.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Toneking avatar image
Toneking commented

Will be extremely useful when implemented!

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

tml avatar image
tml commented tml edited

In case it is more or less impossible to get that information from the sim, I wonder if there might exist some (suitable licensed) library (in C or C++, so that it could be incorporated into WASM) that could be used to "guesstimate" relative humidity based on temperature, pressure, altitude, time of day, time of year, and geographical region? Like "in Winter, the air over continental Canada is very dry" or "the air over the coast is typically quite humid in summer", or "when rain is falling, and you are inside the rain, the relative humidity is typically also quite large".

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

virtuali avatar image
virtuali commented virtuali edited

This might have been easier in previous simulators like FSX/P3D, when you could query the Weather and get a Metar report, which is the only way you could get the Dew Point from the sim, by decoding the Metar string so, all you needed was either write your own Metar-decoding routines, or use some existing library ( there are plenty to choose from, usually free ).

However, since all the Weather API has been deprecated in MSFS, this approach is no longer feasible, so there must be some other way to obtain that info, an adding a couple of Enviromental Simvars seems to be the most obvious choice.

However, considering the sim now has an in-game option to read the actual Metar available to users, I wonder why the Simconnect API is still deprecated: couldn't be just reinstated (at least the REQUEST API calls), and pass to the application the same data users can see when choosing the Metar option ?

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write a Comment

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.