WebsitedataT.json: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
797 bytes added ,  10:46, 30 July 2021
m (surround spans with <nowiki> markings)
(4 intermediate revisions by one other user not shown)
Line 4: Line 4:
This [[Cumulus template file]] is found in the [[Web folder|'''web''']] sub-folder of the MX distribution from release 3.10.1 onwards.
This [[Cumulus template file]] is found in the [[Web folder|'''web''']] sub-folder of the MX distribution from release 3.10.1 onwards.


It supplies the variable information that can be included in a web page by using [[Webtags|Cumulus web tags]] to create a [[Php_webtags#Option_3:_JavaScript_Object_Notation|JavaScript Object Notation (.json) file]].
It supplies the variable information that can be included in a web page by using Cumulus web tags to create a [[Php_webtags#Option_3:_JavaScript_Object_Notation|JavaScript Object Notation (.json) file]]. In the tables below, the [[webtags|tag name]] together with any [[Webtags/Parameters|input/output modification parameter]], and the JSON attribute is also shown because they do not always match.
 
On the [[New Default Web Site Information|Web Pages]] supplied in the [[Webfiles folder|'''webfiles''']] sub-folder of the MX distribution from release 3.10.1 onwards, table cells that take value, time, and date, information from this file, include a (span) element with an ''id'' that identifies which JSON variable is to be inserted by the relevant script.  In the tables below, for simplicity, not every element is shown, often just an example to show you the format, again the JSON attribute and the ID do not always match.




Line 586: Line 588:
|<#heatindexYH> and <#TheatindexYH>
|<#heatindexYH> and <#TheatindexYH>
|"heatindexYH" and "TheatindexYH"
|"heatindexYH" and "TheatindexYH"
| e.g.&lt;span data-cmxdata="heatindexYH">
|Highest USA Heat Index, derived by MX for this meteorological day, and time, taken from last line stored in '''dayfile.txt'''
|Highest USA Heat Index, derived by MX for this meteorological day, and time, taken from last line stored in '''dayfile.txt'''


Line 605: Line 608:
|Highest Solar Radiation, output should be ignored if your station does not have a solar sensor, and time, taken from last line stored in '''dayfile.txt'''
|Highest Solar Radiation, output should be ignored if your station does not have a solar sensor, and time, taken from last line stored in '''dayfile.txt'''
|-
|-
|<#SunshineHoursY>
|<#YSunshineHours>
|"SunshineHoursY"
|"YSunshineHours"
| e.g.&lt;span data-cmxdata="SunshineHoursY">
| e.g.&lt;span data-cmxdata="YSunshineHours">
|Yesterday's sunshine hours, taken from last line stored in '''dayfile.txt'''
|Yesterday's sunshine hours, taken from last line stored in '''dayfile.txt'''
|-
|-
Line 733: Line 736:
|<#MonthHumL>, "<#MonthHumLT> and <#MonthHumLD>
|<#MonthHumL>, "<#MonthHumLT> and <#MonthHumLD>
|"MonthHumL", "MonthHumLT" and "MonthHumLD"
|"MonthHumL", "MonthHumLT" and "MonthHumLD"
| e.g.&lt;span data-cmxdata="MonthHumLD">
|Lowest relative humidity this meteorological month, time, and date, taken from '''month.ini'''
|Lowest relative humidity this meteorological month, time, and date, taken from '''month.ini'''
|-
|-

Navigation menu