Page 1 of 1

[RESOLVED] get nearest weather station observation

Posted: Sun Feb 03, 2019 9:29 pm
by redouane_bpw
Hello all
i used the simconnect fonction :

Code: Select all

simconnect.WeatherRequestObservationAtNearestStation(Request.NearestStation, (float)Aircraft.latitude, (float)Aircraft.longitude);
but it returns an exception : 15
which is unable to get observation

hope you help me
thnx in advance

Re: get nearest weather station observation

Posted: Mon Feb 04, 2019 2:17 pm
by WarpD
This was posted in several locations on the internet... the answer is that they had loaded the Clear Skies weather theme and it returns no METAR information.

Re: get nearest weather station observation

Posted: Tue Feb 05, 2019 7:53 pm
by redouane_bpw
This was posted in several locations on the internet... the answer is that they had loaded the Clear Skies weather theme and it returns no METAR information.
Thnx, in my programme now i force the user to change the weather to cold fronts (at first start ) and then i load the metar
:)