WebsitedataT.json: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
896 bytes added ,  08:00, 1 July 2021
m
→‎Options: add link
m (add category)
m (→‎Options: add link)
(5 intermediate revisions by 2 users not shown)
Line 2: Line 2:
[[Category:JSON Files]]
[[Category:JSON Files]]


This file is found in the '''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 [[Webtags|Cumulus web tags]] to create a [[Php_webtags#Option_3:_JavaScript_Object_Notation|JavaScript Object Notation (.json) file]].
Line 10: Line 10:


{{TOCright}}
{{TOCright}}
This lists all the JSON variables that can be uploaded to your web server.  Note that it is designed to work with the MX default web pages that you upload just once from the '''webfiles''' sub-folder of your MX installation.   
This file is designed to work with the MX default web pages (that you upload just once from the '''webfiles''' sub-folder of your MX installation) and lists all the JSON variables that those pages require to be uploaded to your web serverNote that the variables included in this file represent the degree symbol <sup>o</sup> in two different ways:
# As an HTML encoded entity <nowiki>&amp;deg;</nowiki> that always translates to ° if you are using in HTML web page
# As a binary character (equates to decimal 176), that only translates to ° if you are using UTF-8 encoding '''(select this on ''Internet Settings'' &rarr; ''Web/FTP Settings'' &rarr; ''General Settings'' &rarr; tick ''UTF-8 encoding'')''' to create this file with that encoding (to match the [[Reports_folder#Encoding|encoding]] used by the [[New_Default_Web_Site_Information#Installing_the_new_template_for_new_users|web pages]] included in ''webfiles'' folder)


The file has to cater for the majority of people using the default web site, and assumes use of a Davis weather station, therefore its content might not be optimised for your use.  
The file has to cater for the majority of people using the default web site, and assumes use of a Davis weather station, therefore its content might not be optimised for your use.  
Line 29: Line 31:
# "showSolar" = whether a solar sensor is providing solar information or not
# "showSolar" = whether a solar sensor is providing solar information or not
# "showUV" = whether a UV sensor is providing Ultra Violet information or not
# "showUV" = whether a UV sensor is providing Ultra Violet information or not
The content for these included in this file depend upon [[Cumulus.ini#Display_Options|selections]] at '''Station Settings &rarr; Display Options'''.


==List of variables==
==List of variables==
Line 365: Line 369:
|Lowest Feels Like temperature derived by MX for this meteorological day, and time, taken from '''today.ini'''
|Lowest Feels Like temperature derived by MX for this meteorological day, and time, taken from '''today.ini'''
|-
|-
|<#wchillTL> and <#wchillTL>
|<#wchillTL> and <#TwchillTL>
|"wchillTL" and "TwchillTL"
|"wchillTL" and "TwchillTL"
|Greatest Wind Chill, based on combining Highest Wind Speed and Lowest Outside Air Temperature,  derived by MX for this meteorological day, and time, taken from '''today.ini'''
|Greatest Wind Chill, based on combining Highest Wind Speed and Lowest Outside Air Temperature,  derived by MX for this meteorological day, and time, taken from '''today.ini'''
Line 494: Line 498:
|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'''
|-
|-
|<#YSunshineHours>
|<#SunshineHoursY>
|"YSunshineHours"
|"SunshineHoursY"
|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 517: Line 521:
|"windrunY"
|"windrunY"
|Yesterday's overall average wind speed, multiplied by 24 hours representing whole of that meteorological day, taken from last line stored in '''dayfile.txt'''
|Yesterday's overall average wind speed, multiplied by 24 hours representing whole of that meteorological day, taken from last line stored in '''dayfile.txt'''
|-
|<#domwindbearingY> and <#domwinddirY>
|<#domwindbearingY> and <#domwinddirY>
|"domwindbearingY" and "domwinddirY"
|"domwindbearingY" and "domwinddirY"
Line 529: Line 534:
|Lowest SL pressure on previous meteorological day, and time, taken from last line stored in '''dayfile.txt'''
|Lowest SL pressure on previous meteorological day, and time, taken from last line stored in '''dayfile.txt'''
|}
|}


===Monthly extremes for month-to-date===
===Monthly extremes for month-to-date===
5,838

edits

Navigation menu