Page 1 of 1
Wind direction in leters error in update of 24 November 2018 **solved**
Posted: Sun Nov 25, 2018 8:14 pm
by MeteoOudkarspel
@ Boris
The wind direction in leters is no longer shown as a result of the update of 24 November 2018 Version 3.8 with leuven template version X.
See picture 2018-11-25.png
Meteobridge 3.7 (Oct 21 2018, build 12410), FW 1.4 This version does not have the problem.
See picture 2018-11-25 (1).png
Re: Wind direction in leters error in update of 24 November 2018
Posted: Mon Nov 26, 2018 8:35 pm
by admin
I added a syntax to better handle strings by allowing to cut them on the left or right and to add spaces to the left or right if string is shorter than expected. The wiki has been updated accordingly.
When I look into the Leuven template (tagsMB.txt) I see there this parameter expression:
".0" has not been defined for strings so far. Therefore it has been ignored in the past. Now ".0" (when applied to strings) has the meaning to cut the string to zero characters. ".5" will cut to 5 characters from the left and will fill up with blanks on the left when string is less than 5 characters long. Negative values do the same from the right side. Giving Strings defined length is needed to provide formatted output as needed for the NOAA style reports introduced shortly where wind directions like "N", "SW", "ENE" need to be reported with the same length in order not to destroy the character-based table structure.
So please update the Leuven template definition to get rid of this so far undiscovered typo from the past.
Re: Wind direction in leters error in update of 24 November 2018
Posted: Mon Nov 26, 2018 8:53 pm
by MeteoOudkarspel
Thanks Boris for answer,
Now I have question, what must it be now, so [wind0dir-act=endir.5:--]
Re: Wind direction in leters error in update of 24 November 2018
Posted: Mon Nov 26, 2018 10:04 pm
by wvdkuil
For Leuven-Template users
The change needed in scriptsMB/tags.mb.txt: line approx. 211 now reads:
Code: Select all
|windActDsc|[wind0dir-act=endir.0:--]|!
change to
Code: Select all
|windActDsc|[wind0dir-act=endir:--]|!
The realtime file is not affected.
Wim
Re: Wind direction in leters error in update of 24 November 2018 **solved**
Posted: Tue Nov 27, 2018 4:12 pm
by MeteoOudkarspel
Thanks Boris and Wim.
The parameter is adapted in the leuven template file and it works again,