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

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!


question

Steeler avatar image
Steeler asked Steeler commented

SimConnect: Weather preset API?

Dear all,

There are plenty of weather related questions here, so excuse me if I duplicate a question that has already been asked:

Question: Is it or will it be possible to select a given weather preset via SimConnect?

I guess I am looking for a (simple) replacement of the now deprectated Weather API:

https://docs.flightsimulator.com/html/Programming_Tools/SimConnect/SimConnect_API_Reference.htm

But in fact much simpler: all I want is to programmatically - via SimConnect, that is from an external app - select any of the existing weather presets (including "Live Weather" which would then turn on the corresponding live weather option in MSFS. Note that I am not asking for "historical weather" or anything like that).

And possibly an API to query the existing "weather presets" in the given MSFS instance.

So far Id did not find any SimConnect functions (or "simulation variables" or "events" that I could query / set instead) - or did I simply miss it?

Many thanks!

simconnect
2 comments
10 |10000

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

Steeler avatar image Steeler commented ·

Of course this question could be extended to also include APIs for setting all the values that we can change in MSFS in the Weather dialog itself: cloud layers and altitudes, humidity, wind, direction...

But a simple API to query the existing and select a given "weather preset" would already be a good start (for me) :)

0 Likes 0 ·
Steeler avatar image Steeler commented ·
Any ideas? So is there not even a plan to provide any means via SimConnect to select and query any weather presets? Or am I simply not seeing the obvious solution that is so trivial that no one bothers to even reply? ;)


Or at least a comment like „sounds like a good idea, but is currently low on our list„ or a „won‘t do, because that crosses our plans elsewhere“?

0 Likes 0 ·

1 Answer

·
FlyingRaccoon avatar image
FlyingRaccoon answered Steeler commented

Hello @Steeler

No, there's no such feature in the SimConnect API at the moment.
For now, this can only be done through JS and it's not documented yet (check the fs-base-ui\html_ui\JS\Services\Weather.js file)

Regards,
Sylvain

1 comment
10 |10000

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

Steeler avatar image Steeler commented ·

Thank you for your reply.

For now, this can only be done through JS“

Okay, so I understand: „in process addons“ only. I am in a „remote C++ process“ context, so I guess I have to wait then ;)


Consider this question as an „idea“ then and keep us informed (as you always do) should such a SimConnect API extension come into existence :)


Thanks


0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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