Webtag Applicability (preserving history): Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
no edit summary
(Text moved from Webtags page)
 
mNo edit summary
Line 2: Line 2:


'''The following text used to be on that page, but to simplify that page has now been moved here.'''
'''The following text used to be on that page, but to simplify that page has now been moved here.'''
[[File:Badge vMx.png]]
Cumulus MX provides many, but not all web tags that were available in Cumulus 1. MX adds many more web tags, mostly in support of new weather stations or new sensors. This badge is used against web tags listed in one of the tables that are only available in MX. See [[#GENERAL_TIP|tip]] at top of page for how to check which web tags are available in your build.
A combination of badges appears where certain aspects apply to Cumulus 1 or to MX. No information is given for Cumulus 2 as it is no longer available.
When MX is processing web tags and finds one it cannot understand, a "*** web tag error - see MXdiags file ***" message will appear in the engine console, and the diagnostic file will include something like this, be aware a "token" parser is used to evaluate web tags:
<pre>Web tag error
Exception: i=8998 len=106297
inputText.Length=106297
token=<#daylightlength format=H></pre>
This particular error is that when you use a single output format character it does not have same meaning as when there are multiple characters, correct this particular web tag to:
<pre><#daylightlength format=%H></pre>
Please note that where this article makes reference to other pages in the Wiki, the information shown there might be specific to Cumulus 1, as there are differences between the user interface for Cumulus 1 and MX flavours of this software, and the Wiki was originally written before MX existed, so not all pages have been updated.


=A note of caution=
=A note of caution=
Line 34: Line 53:


=Original (legacy) Cumulus software=
=Original (legacy) Cumulus software=
[[File:Badge v1.png]]This badge is used to highlight text that applies to Cumulus 1.  
[[File:Badge v1.png]]This badge is used to highlight text that applies to Cumulus 1.  
*Use of this badge does NOT mean that all builds of Cumulus 1 are able to use the web tag.
*Use of this badge does NOT mean that all builds of Cumulus 1 are able to use the web tag.
Line 40: Line 61:
*In general, Cumulus 1 will silently ignore any web tag it does not recognise. This means that you might see the raw
*In general, Cumulus 1 will silently ignore any web tag it does not recognise. This means that you might see the raw
web tag remaining after processing, or you might see nothing where the web tag was prior to processing. It also means that if you try to do a numeric calculation on a web tag that Cumulus 1 does not recognise, the calculation will fail, but you might not see an error message.
web tag remaining after processing, or you might see nothing where the web tag was prior to processing. It also means that if you try to do a numeric calculation on a web tag that Cumulus 1 does not recognise, the calculation will fail, but you might not see an error message.
''When Cumulus 1 is processing web tags, it tends to ignore any it cannot understand, so look for gaps in your web pages to find errors.''
5,838

edits

Navigation menu