File:Web tag templates.zip

From Cumulus Wiki
Revision as of 09:34, 14 July 2020 by Sfws (talk | contribs) (→‎Summary)
Jump to navigationJump to search

Web_tag_templates.zip(file size: 40 KB, MIME type: application/zip)

Warning: This file type may contain malicious code. By executing it, your system may be compromised.

Summary

A set of templates to be processed by Cumulus at different frequencies (once for static file, at realtime, standard interval and end of day as identified by file name), assigning web tags to PHP variables.

For more information see Php web tags page that describes the background to these templates and how to set up the process and upload at different intervals.

Zip contains 6 files: "web_tags_EOD_T.cum", "web_tags_real_timeT.cum", "web_tags_C1RCreal_timeT.cum", "web_tags_MXRCreal_timeT.cum", "web_tags_standard_updateT.cum" and "web_tags_staticT.cum".

All these files have been designed to work with both Cumulus 1 and MX (except web_tags_MXRCreal_timeT.cum which only works with version 3.5.4 and later); to the extent that is possible. However, Cumulus 1 does not have option to process at end of day, so what I did was process "web_tags_EOD_T.cum" file at real time interval, saving it into data folder, and upload to web site from data folder at end of day with the dayfile.txt upload; it may muck up the dates, but the weather derivatives are set correctly.

There are 3 files for real time.

  1. "web_tags_real_timeT.cum" contains all web tags that relate to information that will (or might) change rapidly, i.e. Curent Conditions, Recent History, Today, Alarms
  2. "web_tags_C1RCreal_timeT.cum" contains a subset of above web tags, those that give numerical values. For those who use a locale where decimal commas are used, this provides an alternative set of PHP variables with a RC prefix where any commas are replaced by full stops by a PHP instruction, hence these variables will be recognised as numeric by JavaScript as used for Ajax updates or for plotting charts.
  3. "web_tags_MXRCreal_timeT.cum" is an alternative to previous with exactly same set of tags. The only difference is the PHP replacement is not used, instead this template script is making use of feature with MX from version 3.5.4 to replace commas with full stops within the MX code.

File history

Click on a date/time to view the file as it appeared at that time.

(newest | oldest) View (newer 10 | ) (10 | 20 | 50 | 100 | 250 | 500)
Date/TimeDimensionsUserComment
current10:17, 9 September 2020 (40 KB)Sfws (talk | contribs)The EOD file in last update had some typos re new web tags from 3.8.0, now corrected
17:14, 7 September 2020 (40 KB)Sfws (talk | contribs)New WLL web tags (release 3090) New <#DataSpikeAlarm> (release 3089) Hope this is all okay, as only tested on MX 3090, I hope it will work on earlier versions and C1
09:32, 14 July 2020 (39 KB)Sfws (talk | contribs)Error in one real time recent history web tag for MX only corrected
08:02, 12 July 2020 (39 KB)Sfws (talk | contribs)Added in new humidex tags available in version 3.7.0, made safe for Cumulus 1
18:46, 10 July 2020 (38 KB)Sfws (talk | contribs)Added <#RecentFeelsLike d=1> and <RecentFeelsLike h=3> to web_tags_real_timeT.cum
18:36, 29 June 2020 (36 KB)Sfws (talk | contribs)Latest version, should include all web tags now in MX
20:39, 21 May 2020 (46 KB)Sfws (talk | contribs)Some extra PHP variables added, some PHP variables names changed where I found clashes with same name used for two purposes. '<br>' added to $PeriodSinceLastRainTip (one of the variables renamed)
22:14, 18 May 2020 (46 KB)Sfws (talk | contribs)Minor correction to new PHP variable $TimeSinceLastRainTip definition (I had a sequence of divisions, when I enclosed them in brackets I forgot about associative division rules, so within brackets now multiplication, the division is outside bracket.
21:39, 18 May 2020 (46 KB)Sfws (talk | contribs)Corrected $lastRainTime, Added $ProgramUpTime, $TimeSinceLastRainTip, $LastRainTipDate, and $LastRainTipTap
11:27, 5 May 2020 (46 KB)Sfws (talk | contribs)Corrected web_tags_standard_updateT.cum (missing '>' for one tag)
(newest | oldest) View (newer 10 | ) (10 | 20 | 50 | 100 | 250 | 500)

The following page uses this file: