Wind direction in leters error in update of 24 November 2018 **solved**

This section covers the Meteobridge PRO units exclusively

Moderator: Mattk

Post Reply
MeteoOudkarspel
Senior Boarder
Senior Boarder
Posts: 69
Joined: Wed Jun 10, 2015 12:53 pm
Location: Oudkarspel
Contact:

Wind direction in leters error in update of 24 November 2018 **solved**

Post by MeteoOudkarspel » Sun Nov 25, 2018 8:14 pm

@ 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
Attachments
2018-11-25 (1).png
2018-11-25 (1).png (351.33 KiB) Viewed 513 times
2018-11-25.png
2018-11-25.png (342.17 KiB) Viewed 515 times
Last edited by MeteoOudkarspel on Tue Nov 27, 2018 4:09 pm, edited 1 time in total.
Sincerely,

Ron C.P.J Overtoom Meteo Oudkarspel Municipality Langedijk.

Image

http://www.meteooudkarspel-lt.pd0rok.nl

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5788
Joined: Mon Oct 01, 2007 10:51 pm

Re: Wind direction in leters error in update of 24 November 2018

Post by admin » Mon Nov 26, 2018 8:35 pm

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:

Code: Select all

[wind0dir-act=endir.0:--]
".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.

MeteoOudkarspel
Senior Boarder
Senior Boarder
Posts: 69
Joined: Wed Jun 10, 2015 12:53 pm
Location: Oudkarspel
Contact:

Re: Wind direction in leters error in update of 24 November 2018

Post by MeteoOudkarspel » Mon Nov 26, 2018 8:53 pm

Thanks Boris for answer,

Now I have question, what must it be now, so [wind0dir-act=endir.5:--]
Sincerely,

Ron C.P.J Overtoom Meteo Oudkarspel Municipality Langedijk.

Image

http://www.meteooudkarspel-lt.pd0rok.nl

User avatar
wvdkuil
Platinum Boarder
Platinum Boarder
Posts: 409
Joined: Sun Jul 24, 2011 8:00 pm
Location: Belgium
Contact:

Re: Wind direction in leters error in update of 24 November 2018

Post by wvdkuil » Mon Nov 26, 2018 10:04 pm

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
Support for Leuven-Template & Scripts at https://support.leuven-template.eu/
Support for the PWS_Dashboard (HWS-template) http://pwsdashboard.weather-template.com/

MeteoOudkarspel
Senior Boarder
Senior Boarder
Posts: 69
Joined: Wed Jun 10, 2015 12:53 pm
Location: Oudkarspel
Contact:

Re: Wind direction in leters error in update of 24 November 2018 **solved**

Post by MeteoOudkarspel » Tue Nov 27, 2018 4:12 pm

Thanks Boris and Wim.

The parameter is adapted in the leuven template file and it works again,
Sincerely,

Ron C.P.J Overtoom Meteo Oudkarspel Municipality Langedijk.

Image

http://www.meteooudkarspel-lt.pd0rok.nl

Post Reply