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!
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) ![]()
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â?
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
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
Hi @FlyingRaccoon! I tried to find the Weather.js file but canât locate it. Can you share some info on where to look for it?
For the MS Store version:
C:\XboxGames\Microsoft Flight Simulator\Content\Packages\fs-base-ui\html_ui\JS\Services
I was thinking about the same thing. I havenât tried it myself, but in SimConnect, you COULD:
SAVE the current FLT
Search and replace (or insert, if absent) the desired weather preset in FLT (which is a plain TXT file)
LOAD the ammended FLT
Since the only thing that would be different between 2 states would be weather, the transition should be seamless (although with a slight pause)
The reload also reloads the aircraft systems, and not everything is saved in the FLT. So some systems (e.g. screens, autopilot) may reset
Thanks - yes, I didnât think of that. Letâs hope they bring the weather API back to SimConnect soon.