Php webtags: Difference between revisions

17 bytes added ,  12:08, 19 April 2020
m
Line 87: Line 87:
The installation, usage, and example sections below apply to option 2 "cumuluswebtags.php", but are similar for the other options.
The installation, usage, and example sections below apply to option 2 "cumuluswebtags.php", but are similar for the other options.


==Installation ==
==Installation (with Cumulus 1) ==


##For the file you have downloaded at option 2 above, open it in any text editor (preferably one that works in "UTF-8 without BOM") and edit first line.   
##For the file you have downloaded at option 2 above, open it in any text editor (preferably one that works in "UTF-8 without BOM") and edit first line.   
Line 100: Line 100:
#*$monthStart='<#metdate format="yyyy-mm-01">';
#*$monthStart='<#metdate format="yyyy-mm-01">';
#you can also delete any rows with web tags that are not relevant to your weather station model for greater efficiency;
#you can also delete any rows with web tags that are not relevant to your weather station model for greater efficiency;
#then save the resulting file in the local directory (that Cumulus can read) where you store your customised templates (you could use the "cumuluswebtagsT.php" type convention as I do because of all my customisations, but to keep it simple the suggestion here is to retain the name as "cumuluswebtags.txt" if you are basically using the provided code).[[File:ScreenShot-PHPWebtags-ConfigSetup.png|right|'Screenshot top and bottom extracts Cumulus v1.9.4']]
#then save the resulting file in the local directory (that Cumulus can read) where you store your customised templates (you could use the "cumuluswebtagsT.cum" type convention as I do because of all my customisations, but to keep it simple the suggestion here is to retain the name as "cumuluswebtags.txt" if you are basically using the provided code).[[File:ScreenShot-PHPWebtags-ConfigSetup.png|right|'Screenshot top and bottom extracts Cumulus v1.9.4']]
#On the 'Cumulus main screen', in the '''Configuration''' menu, select the ''Internet'' option;
#On the 'Cumulus main screen', in the '''Configuration''' menu, select the ''Internet'' option;
#On the 'Internet Settings' screen, select the ''Files'' tab;<br><br>
#On the 'Internet Settings' screen, select the ''Files'' tab;<br><br>
5,838

edits