File:Web tag templates.zip: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m (→‎Summary: added note that no guarantee, at same time as now including latest zip)
(Sfws uploaded a new version of File:Web tag templates.zip)
 
(No difference)

Latest revision as of 10:17, 9 September 2020

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.

Please note there are so many MX releases, and many of them add or alter web tags, so Sfws finds it hard to maintain these files. The files zipped here are based on files I use for my web site that is currently running from a Raspberry Pi running both MX and the web server, but I only use some of the web tags and so make no guarantee that all the tags work correctly, nor that all web tags are included somewhere. The intention is that this provides a starting point for you to develop scripts that suit your needs.

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 20 | ) (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)
08:20, 5 May 2020 (46 KB)Sfws (talk | contribs)Added feels like tags and new Davis tx=n tags as introduced in Version 3.6.0
10:32, 28 April 2020 (44 KB)Sfws (talk | contribs)Latest versions of all files listed above are included. New to this version of zip is the template with C1 in its name. Some tiny alterations were made to other files for better consistency, e.g. for lowest max temp and highest min temp, the time and d...
13:28, 26 April 2020 (32 KB)Sfws (talk | contribs)Now added RC version but only for MX: web_tags_MXRCreal_timeT.cum
11:21, 26 April 2020 (25 KB)Sfws (talk | contribs)Whoops, now added <#version> and <#build>, plus corrected two variables where I needed to swap the MX and C1 definitions
09:55, 26 April 2020 (25 KB)Sfws (talk | contribs)This version has all the 4 files, but this time includes the right EOD file. Apologies that I have somewhat messed up by previously uploading zips with wrong versions of files.Please ignore ALL earlier versions, each of which managed to include incorre...
07:59, 26 April 2020 (26 KB)Sfws (talk | contribs)Accidental reversion
07:57, 26 April 2020 (25 KB)Sfws (talk | contribs)Reverted to version as of 18:31, 25 April 2020 (UTC)
07:57, 26 April 2020 (25 KB)Sfws (talk | contribs)Reverted to version as of 06:14, 26 April 2020 (UTC)
07:53, 26 April 2020 (26 KB)Sfws (talk | contribs)Corrected error in snow lying, presented date/time tags more logically
06:14, 26 April 2020 (25 KB)Sfws (talk | contribs)added snow tags, otherwise content same
(newest | oldest) View (newer 20 | ) (10 | 20 | 50 | 100 | 250 | 500)

The following page uses this file: