Webtags (preserving history): Difference between revisions

m
→‎No Commas: Make it clearer that this section is for legacy software
m (→‎Today.ini: Improved text for "Number of strikes since midnight" (had just said "see release announcements", now explains why))
m (→‎No Commas: Make it clearer that this section is for legacy software)
== No Commas ==
 
Note that Cumulus does not use thousand separators, so the only places a comma can be used are as a field separator or as a decimal separator. Obviously it cannot be used for both. '''This section is for those locales where a comma is used instead of a full stop to separate the integer and decimal parts of a number.''' Some computer''This languagessection likeon JavaScriptthis willWiki notpage acceptwas a comma being usedwritten for thisthe purpose, andlegacy Cumulus uses JavaScript for various tasks, as do various third party web pages. From '''version (1.9.3'4) software.'' buildAlthough 1045,tag Cumulusnames 1in (andthis MX)section hascan providedbe someused currentin conditionsCumulus web tagsMX, somefor todaybackwards web tagscompatibility, andthere someis recentnow historya webbetter tagsway into anensure alternativethat formatthe wherevalue (regardlessoutput ofby locale)web thetags numbercan isbe alwaysunderstood outputby inscript alanguages format thatwhich usesexpect a decimalfull point.stop Theybetween allthe correspondinteger toand thedecimal sameparts tagof witha 'RC' removednumber.
 
Note that Cumulus does not use thousand separators, so the only places a comma can be used are as a field separator, or as a decimal separator. Obviously it cannot be used for both. Some computer languages like JavaScript will not accept a comma being used for this purpose.
===CURRENT CONDITIONS:===
 
===MX===
 
Cumulus MX uses JavaScript Object Notation files for many of its data transfers.
 
From '''versionrelease 3.5.4''' build 3075, most web tags (one notable exception is indoor temperature <#intemp> where rc parameter not available until versionrelease 3.6.8 build 3084), that produce decimal number output now support the "'''rc=y'''" option. e.g. <tt><#tempYH rc=y></tt> will report yesterday's highest temperature using a full stop to separate decimal part where the locale would normally use a comma.
 
===Legacy Cumulus===
 
Cumulus 1.9.4 uses JavaScript for various tasks, as do various third party web pages.
 
From '''version 1.9.3''' build 1045, Cumulus 1 (and MX) has provided some current conditions web tags, some today web tags, and some recent history web tags in an alternative format where (regardless of locale) the number is always output in a format that uses a decimal point. They are listed in the sub-sections that follow and all correspond to the same tag name with the letters 'RC' removed that has been listed in respective sections of this Wiki page.
 
===RC CURRENT CONDITIONS:===
 
<#RCtemp>, <#RCdew>, <#RCheatindex>, <#RChum>, <#RCinhum>, <#RCintemp>, <#RCpress>, <#RCrfall>, <#RCrrate>, <#RCwchill>, <#RCwgust>, <#RCwspeed>, <#RCwlatest>
 
===RC TODAY:===
 
<#RCpressTH>, <#RCpressTL>, <#RCrrateTM>, <#RCtempTH>, <#RCtempTL>, <#RCwgustTM>, <#RCdewpointTH>, <#RCdewpointTL>, <#RCwchillTL>, <#RCheatindexTH>, <#RCapptempTH>, <#RCapptempTL>
 
===RC RECENT HISTORY:===
 
<#RCRecentOutsideTemp>, <#RCRecentWindSpeed>, <#RCRecentWindGust>, <#RCRecentWindLatest>, <#RCRecentWindChill>, <#RCRecentDewPoint>, <#RCRecentHeatIndex>, <#RCRecentPressure>, <#RCRecentRainToday>, <#RCRecentUV>
 
There are other derivatives that can be calculated similarly from a set of simultaneous values, as described below the recent history section.
 
From '''version 3.5.4''' build 3075, most web tags (one notable exception is indoor temperature <#intemp> where rc parameter not available until version 3.6.8 build 3084), that produce decimal number output now support the "'''rc=y'''" option. e.g. <tt><#tempYH rc=y></tt> will report yesterday's highest temperature using a full stop to separate decimal part where the locale would normally use a comma.
 
==Yesterday==
5,838

edits