Webtags (preserving history): Difference between revisions

m
Changed intro to make referenced to websitedataT.json clearer
m (→‎Extra Sensors: Ecowitt Air quality,: Made it clearer that takes 1, 2, 3, 4 in attribute name)
m (Changed intro to make referenced to websitedataT.json clearer)
Line 7: Line 7:


If you have not used this Wiki page before, or are unsure about using "web tags", there are some concepts that you do need to understand in the sub-sections that follow.
If you have not used this Wiki page before, or are unsure about using "web tags", there are some concepts that you do need to understand in the sub-sections that follow.
[[File:Badge v1.png]][[Category:Cumulus 1]] This page was created for Cumulus 1. Steve/Beth Loft provided some example [[Cumulus template file|web template files]], but expected Cumulus users to develop their [[Customised templates|own Cumulus template files]] making use of the web tags, listed below, that the software provided.


Early releases of MX also followed that [[Customised templates|web page template files you could customise]] approach, but that has now stopped.
<div style="background: LemonChiffon;padding:5px; margin:2px;">
<div style="background: LemonChiffon;padding:5px; margin:2px;">
[[File:Crystal Clear info.png|40px]]
[[File:Crystal Clear info.png|40px]]  
From release 3.10.1,


:if you use the <big>[[New_Default_Web_Site_Information|default web site]]</big>, then web tags are provided to your web server using the <big>[[WebsitedataT.json]]</big> file, so see those 2 linked pages if you are interested in the default web pages.
USING CURRENT RELEASE OF MX?
 
* Go to <big>[[WebsitedataT.json]]</big> page, instead of this one
<br>
* That page explains the ID names used on the [[New_Default_Web_Site_Information|default web site]] introduced from release 3.10.0
* That page documents each data pair in the file
* That page gives the source web tag for each ID name on the web pages
* That page explains what data is represented by the  ID name, JSON attribute, web tag name


Continue reading this Wiki Page if you are using your own (customised) web pages, using legacy web pages, ''or'' want a definitive list of all available web tags.
Continue reading this Wiki Page if you are using your own (customised) web pages, using legacy web pages, ''or'' want a definitive list of all available web tags.
</div>
</div>
 
{{TOCright}}
==What is a web tag? ==
==What is a web tag? ==


Line 35: Line 39:
There is a basic guide to what these parameters can do, and another link to the new page at [[#Input Modification Parameters and Output Modification Parameters]] later on this page.
There is a basic guide to what these parameters can do, and another link to the new page at [[#Input Modification Parameters and Output Modification Parameters]] later on this page.


{{TOCright}} [[Category:Cumulus 1]]


===The tag names===
===The tag names===
Line 300: Line 303:
|<#intemp>
|<#intemp>
|The inside temperature
|The inside temperature
|-
|<#TempChangeLastHour>
|The change in outside temperature over the last hour (not available in early versions of Cumulus  1, when this was announced, a temperature change over 24 hours was also proposed, but never implemented)
|-
|-
|<#temptrend>
|<#temptrend>
|The average rate of change in temperature over the last three hours. Trend = (temp_now - temp_3hrs_ago) / 3
|The average rate of change in temperature over the last three hours. Trend = (temp_now - temp_3hrs_ago) / 3 (available in all releases, the calculation selected for this trend matches the standard-based calculation for <#presstrendval> despite the naming inconsistency)
|-
|-
|<#temptrendtext>
|<#temptrendtext>
Line 308: Line 314:
|-
|-
|<#temptrendenglish>
|<#temptrendenglish>
|Temperature change over the last three hours - Rising/Falling/Steady (for use by [[Webtags_as_boolean_operators_in_HTML|HTML]], [[Editing_content_of_a_webpage_using_either_HTML_or_Script|javascript]] etc, values can't be changed)
|Temperature change over the last three hours - Rising/Falling/Steady (for use by [[Webtags_as_boolean_operators_in_HTML|HTML]], [[Editing_content_of_a_webpage_using_either_HTML_or_Script|javascript]] etc, values can't be changed). From version 1.8.8 1st December 2009
|-
|<#TempChangeLastHour>
|The change in temperature over the last hour
|-
|-
|<#heatindex>
|<#heatindex>
Line 399: Line 402:
|-
|-
|<#presstrendval>
|<#presstrendval>
|The average rate of pressure change over the last three hours.
|The average rate of pressure change over the last three hours. Trend = (pressure_now - pressure_3hrs_ago) / 3    (Fixed from version 1.7.7 5th March 2008)
|-
|-
|<#presstrend>
|<#presstrend>
Line 405: Line 408:
|-
|-
|<#presstrendenglish>
|<#presstrendenglish>
| a singe word description for the pressure trend - Rising/Falling/Steady (for use by [[Webtags_as_boolean_operators_in_HTML|HTML]], [[Editing_content_of_a_webpage_using_either_HTML_or_Script|javascript]] etc, values can't be changed)
| a singe word description for the pressure trend - Rising/Falling/Steady (for use by [[Webtags_as_boolean_operators_in_HTML|HTML]], [[Editing_content_of_a_webpage_using_either_HTML_or_Script|javascript]] etc, values can't be changed). From version 1.8.8 1st December 2009
|-
|-
| <#PressChangeLast3Hours>
| <#PressChangeLast3Hours>
5,838

edits