WeatherSetObservation seconds parameter ignored (custom weather)

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Post Reply
Highflyer525
Posts: 10
Joined: Wed Feb 07, 2018 8:23 pm

WeatherSetObservation seconds parameter ignored (custom weather)

Post by Highflyer525 »

Hi,

I'm injecting weather into Prepar3d V5 using VB.NET with the latest SimConnect and SDK, Visual Studio 2019 and .NET 8.0.

I can set the weather perfectly, either from a global perspective or on a per station basis.

However, it is my understanding after reading the documentation, that when setting the weather on a per station basis (I'm talking standard built in stations at this point,) the seconds parameter is used to provide a merge period over which existing weather merges into new weather over X number of seconds.

Parameters
hSimConnect
[in] Handle to a SimConnect object.
Seconds
[in] Specifies the time in seconds that the current weather should merge into the new weather. This delay only applies to clouds in a custom weather setting, not to global or other weather settings (where the change will take place almost immediately).
pszMETAR
[in] Null-terminated string containing the METAR data.

However this is ignored. I know it's supposed to be ignored when setting globally, but not when setting custom weather per station.

I'm setting the weather as follows:

Code: Select all

p3d_simconnect.WeatherSetObservation(seconds, METAR)
p3d_simconnect.WeatherSetModeCustom()

Example METAR

Code: Select all

EGNT 161350Z AUTO 08011KT 050V130 9999 FEW014 SCT032 OVC039 11/06 Q1020

On every occasion the weather changes instantly and the clouds jump.

Am I doing something wrong or is this a bug?

Thanks,

Mark.
yunusahan
Posts: 6
Joined: Fri Jan 15, 2021 2:10 pm

Re: WeatherSetObservation seconds parameter ignored (custom weather)

Post by yunusahan »

hello. did you get a answer your for your problem? ı have a this problem now
Highflyer525
Posts: 10
Joined: Wed Feb 07, 2018 8:23 pm

Re: WeatherSetObservation seconds parameter ignored (custom weather)

Post by Highflyer525 »

yunusahan wrote: Fri Jan 15, 2021 2:23 pm hello. did you get a answer your for your problem? ı have a this problem now
Hi,

No I’m afraid not. I posted three different issues all about weather and not a single reply.

Really bad form on their behalf.

Sorry I can’t help,
yunusahan
Posts: 6
Joined: Fri Jan 15, 2021 2:10 pm

Re: WeatherSetObservation seconds parameter ignored (custom weather)

Post by yunusahan »

ok. if i solve this problem. ll back to u
Post Reply