Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Web tag parameters
Moderator: daj
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Web tag parameters
I have just noticed that the web tag parser allows for parameters! This means that specifying the format for the date and/or time tags would be possible, e.g <#YearTempHT format=hh:mm:ss>, and Cumulus could generate the time in whatever format was specified. I was proposing to allow the format of web tag dates and times to be configurable in Cumulus, but this way is more flexible and probably easier to implement.
Does anyone have any other ideas for parameters for existing web tags, other than the date and time ones?
Does anyone have any other ideas for parameters for existing web tags, other than the date and time ones?
Steve
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Web tag parameters
For those that want it - could it cope with eg.
<#YearTempHT format=hh:mm ' on ' dd mmm> ?
What (if any) sort of parsing would be available for 'string' output ?
Might become a bit of a headache !
<#YearTempHT format=hh:mm ' on ' dd mmm> ?
What (if any) sort of parsing would be available for 'string' output ?
Might become a bit of a headache !
......................Imagine, what you will KNOW tomorrow !
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Web tag parameters
Yes, but with spaces, it would just have to be enclosed in quotes:beteljuice wrote:For those that want it - could it cope with eg.
<#YearTempHT format=hh:mm ' on ' dd mmm> ?
<#YearTempHT format="hh:mm on dd mmm">
I'd just use the standard Delphi date/time format strings, which allow for any non-formatting text to be included.
Do you have something specific in mind?What (if any) sort of parsing would be available for 'string' output ?
Steve
-
captzero
- Posts: 363
- Joined: Wed 03 Mar 2010 10:20 am
- Weather Station: Vantage Pro2 w/ daytime FARS
- Operating System: Windows 10
- Location: Brisbane, Australia
- Contact:
Re: Web tag parameters
So Steve, would last rain rain tip be something like <#LastRainTipISO format="hh:mm dd mmm yyyy"> ????
I like it.
I like it.
Last edited by captzero on Wed 15 Dec 2010 12:11 pm, edited 2 times in total.
Dan
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: Web tag parameters
I really don't like the words on and at in webtags because these can't be translated.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Web tag parameters
Yes, but again, the whole parameter value would need to be in double quotes as it contains spaces:captzero wrote:So Steve, would last rain rain tip be something like <#LastRainTipISO format=hh:mm ' on ' dd mmm yyyy> ????
<#LastRainTipISO format="hh:mm on dd mmm yyyy">
Steve
-
captzero
- Posts: 363
- Joined: Wed 03 Mar 2010 10:20 am
- Weather Station: Vantage Pro2 w/ daytime FARS
- Operating System: Windows 10
- Location: Brisbane, Australia
- Contact:
Re: Web tag parameters
I thought the same once I looked at it and edited my postnitrx wrote:I really don't like the words on and at in webtags because these can't be translated
Dan
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Web tag parameters
Well, yes, that's the whole point. You put whatever you want in the parameter.nitrx wrote:I really don't like the words on and at in webtags because these can't be translated.
Steve
-
captzero
- Posts: 363
- Joined: Wed 03 Mar 2010 10:20 am
- Weather Station: Vantage Pro2 w/ daytime FARS
- Operating System: Windows 10
- Location: Brisbane, Australia
- Contact:
Re: Web tag parameters
Sounds good, I'd use it. It allows more flexibility.
I suppose PPL may also use it to display their long and lat in decimal degrees ie <#longitude=27.0004.....>
I suppose PPL may also use it to display their long and lat in decimal degrees ie <#longitude=27.0004.....>
Last edited by captzero on Wed 15 Dec 2010 12:27 pm, edited 1 time in total.
Dan
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: Web tag parameters
Oh sorry I misunderstood I thougt the string was fixedsteve wrote:Well, yes, that's the whole point. You put whatever you want in the parameter.nitrx wrote:I really don't like the words on and at in webtags because these can't be translated.
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: Web tag parameters
Captzero - don't edit posts that have been answered - It doesn't make sense to the reader !
Steve - presumeably this can only be applied to <#webtags> that contain a single item of data ?
eg. a timestamp
... and could not be applied to something that is already a formatted construct ?
eg. "7.4 C" could NOT become "7.4 Celcius" NOR "7 C" ?
Steve - presumeably this can only be applied to <#webtags> that contain a single item of data ?
eg. a timestamp
... and could not be applied to something that is already a formatted construct ?
eg. "7.4 C" could NOT become "7.4 Celcius" NOR "7 C" ?
......................Imagine, what you will KNOW tomorrow !
-
captzero
- Posts: 363
- Joined: Wed 03 Mar 2010 10:20 am
- Weather Station: Vantage Pro2 w/ daytime FARS
- Operating System: Windows 10
- Location: Brisbane, Australia
- Contact:
Re: Web tag parameters
beteljuice wrote:Captzero - don't edit posts that have been answered - It doesn't make sense to the reader !
Dan
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Web tag parameters
I don't think there are many that are like that? The all-time record dates have 'on' and 'at' in them, and cloudbase always has ' ft' or ' m' on the end. These could become the defaults, and if a parameter was supplied, that could override the default. For example:beteljuice wrote:eg. "7.4 C" could NOT become "7.4 Celcius" NOR "7 C" ?
<#cloudbase> would give: 1020 ft
but
<#cloudbase displayunits=n> would give: 1020
You could also override the units for the data. So, if you were using Celsius in Cumulus
<#temp> would give 5.4
but
<#temp units=F> would give 41.7
Hmmm. I'm making a lot of work for myself here
Steve
-
captzero
- Posts: 363
- Joined: Wed 03 Mar 2010 10:20 am
- Weather Station: Vantage Pro2 w/ daytime FARS
- Operating System: Windows 10
- Location: Brisbane, Australia
- Contact:
Re: Web tag parameters
Yeah... and what about wind...knots, m/s, kph, mph.captzero wrote:Hmmm. I'm making a lot of work for myself here
You are a glutton for punishment.
Dan
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
http://www.brisbaneliveweather.com
A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
- laulau
- Posts: 678
- Joined: Tue 13 Oct 2009 10:52 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Win 7
- Location: Meyenheim, Alsace, FR
- Contact:
Re: Web tag parameters
Hi Steve,
should the new "format" option work in all time records
I just unsuccesfully try this : <#TtempH format="à hh:nn le dd mmmm yyyy"> in recordT file
should the new "format" option work in all time records
I just unsuccesfully try this : <#TtempH format="à hh:nn le dd mmmm yyyy"> in recordT file