Page 1 of 1

Updated template syntax guide?

Posted: Thu Feb 26, 2026 4:18 am
by OlyWater
In looking at the templates that came preloaded on a new MB PRO2 purchased in December 2025, it appears that they are using variables with somewhat different syntaxes than the selectors listed in the Meteobridge Wiki Templates page at https://www.meteobridge.com/wiki/index. ... =Templates.

For example, the selector for the timestamp of max or min values in the templates I have are "-maxts" and "mints", respectively, while the Wiki indicates that the syntax for those is "Pmaxtime" and "Pmintime", where "P" is a designator for the timeframe from which the extrema are to be located. The Wiki makes no mention of the selectors in the templates I have.

Is there another reference that documents these additional parameters that seem to be in use in newer templates?

Re: Updated template syntax guide?

Posted: Fri Feb 27, 2026 12:05 pm
by Mattk
My take on this one is the NOAA template is a very specific template with multiple output/selection options [Time Frame] and [Resolution] requiring some relatively where standard hard wired options like h, d, y do not fit with a user selectible Time Frame (hours to years) and/or Resolution (from minutes to months).

This is much like your creation time issue specifically related to how the NOAA template works over user defined options.

Re: Updated template syntax guide?

Posted: Sun Mar 08, 2026 11:22 am
by admin
OlyWater wrote: Thu Feb 26, 2026 4:18 am For example, the selector for the timestamp of max or min values in the templates I have are "-maxts" and "mints", respectively, while the Wiki indicates that the syntax for those is "Pmaxtime" and "Pmintime", where "P" is a designator for the timeframe from which the extrema are to be located. The Wiki makes no mention of the selectors in the templates I have.
The wiki is up-to-date, but there can of course be omissions. Where exactly did you find "maxts" and "mints"? Can you please point me to that? I don't have an immediate idea where you reference to.

Re: Updated template syntax guide?

Posted: Sun Mar 08, 2026 12:10 pm
by Mattk
maxts & mints are in the NOAA .exp templates.

Re: Updated template syntax guide?

Posted: Sun Mar 08, 2026 12:51 pm
by admin
Within the export definitions - which are iterated over a complete set of data - there are variables used (like mints, maxts) that automatically adapt to the chosen time resolution (month, day, hour, min, sec). This is not described in the wiki. I will try to find some time to add this in order to make building individual exports more convenient.