Updated template syntax guide?

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
OlyWater
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Sun Jan 04, 2026 9:47 am

Updated template syntax guide?

Post 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?
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1436
Joined: Mon Sep 22, 2014 3:24 am

Re: Updated template syntax guide?

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7951
Joined: Mon Oct 01, 2007 10:51 pm

Re: Updated template syntax guide?

Post 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.
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1436
Joined: Mon Sep 22, 2014 3:24 am

Re: Updated template syntax guide?

Post by Mattk »

maxts & mints are in the NOAA .exp templates.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7951
Joined: Mon Oct 01, 2007 10:51 pm

Re: Updated template syntax guide?

Post 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.
Post Reply