[RESOLVED] get nearest weather station observation

redouane_bpw
Posts: 31
Joined: Sat Dec 01, 2018 1:29 pm

[RESOLVED] get nearest weather station observation

Postby redouane_bpw » Sun Feb 03, 2019 9:29 pm

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: 1440
Joined: Mon Feb 14, 2011 5:29 am

Re: get nearest weather station observation

Postby WarpD » 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.
Ed Wilson
Senior Developer
Mindstar Aviation

redouane_bpw
Posts: 31
Joined: Sat Dec 01, 2018 1:29 pm

Re: get nearest weather station observation

Postby redouane_bpw » Tue Feb 05, 2019 7:53 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
:)


Return to “SimConnect Interface Questions”

Who is online

Users browsing this forum: No registered users and 3 guests