• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

SimConnect_WeatherRequestObservationAtStation

Messages
6
Country
us-washington
I am using VB 2008 Express to create a interface to my flight website and realized making a FSX connection might be useful. Thanks to Jimis8buttons tutorial, I was able to begin to transmit/receive info from FSX. Anyway, I thought it would be valuable to have a textbox to enter a ICAO code into, then a button that requests the metar from FSX and displays it on the form for that station.

I am having some trouble deciphering the sdk's c++ weather example in trying to make it work in VB as this is all very new to me.

Could someone push me in the right direction as to how I might pull the METAR from FSX by ICAO in Visual Basic?

The work you all do here and for the flight sim community simply amazes me, thank you for having this forum available!
 
Last edited:
hi all!
I wonder does this function, SimConnect_WeatherRequestObservationAtStation(), work for the current airport only?

I wanted it to return METAR for any airport but it doesn't work. I can receive data for current airport only (where the aircraft is located) inside the "case SIMCONNECT_RECV_ID_WEATHER_OBSERVATION".
All other airport requests end up with "SIMCONNECT_EXCEPTION_WEATHER_UNABLE_TO_GET_OBSERVATION". As mentioned somewhere in manuals, I keep polling constantly and wait for 15 seconds and more, but it doesn't help. Still getting the mentioned exception with no METAR data.

Then I thought I have to wrap them into different 'REQUEST_WEATHER's instead of utilizing a single one (DATA_REQUEST_ID) but changing it doesn't help as well.

Has anyone tried this function, what am I doing wrong?
 
Could it be just because of a reality bubble?
Now I tried it when standing at LOWI and requested LOWI and EGLL, and it worked!

1st time I tried at EPGD, requesting EPGD, EPKK and EDDF. Only the 1st airport data was returned.
Anyway it's still weird because IIRC distance b/w LOWI and EGLL should be even greater than b/w EPGD, EPKK and EDDF.
Totally confused.
 
Back
Top