[RESOLVED] get nearest weather station observation

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Locked
redouane_bpw
Posts: 31
Joined: Sat Dec 01, 2018 1:29 pm

[RESOLVED] get nearest weather station observation

Post 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
User avatar
WarpD
Posts: 1469
Joined: Mon Feb 14, 2011 5:29 am

Re: get nearest weather station observation

Post 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.
Ed Wilson
Senior Developer
Mindstar Aviation
redouane_bpw
Posts: 31
Joined: Sat Dec 01, 2018 1:29 pm

Re: get nearest weather station observation

Post by redouane_bpw »

WarpD wrote: Mon Feb 04, 2019 2:17 pm 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
:)
Locked