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 ( | older 20) (10 | 20 | 50 | 100 | 250 | 500)
Date/TimeDimensionsUserComment
20:39, 25 April 2020 (25 KB)Sfws (talk | contribs)Contents as per last version, except now copes with v3.5.4 web tags, whether they are present or missing
18:31, 25 April 2020 (25 KB)Sfws (talk | contribs)Contains "web_tags_EOD_T.cum", "web_tags_real_timeT.cum", "web_tags_standard_updateT.cum" and "web_tags_staticT.cum" ======= Zip does not include "web_tags_RCreal_timeT.cum"
(newest | oldest) View ( | older 20) (10 | 20 | 50 | 100 | 250 | 500)

The following page uses this file: