Dayfile.txt: Difference between revisions

539 bytes added ,  08:27, 28 March 2021
m
m (→‎Options for reading dayfile.txt for other uses: corrected the link for CumulusUtils)
Line 51: Line 51:


===Options for reading dayfile.txt for other uses===
===Options for reading dayfile.txt for other uses===
* Some people use [[Upload_Dayfile|the method described here]] or [[Toolbox|Cumulus Toolbox]] to get a copy of the local file to use on their web server. (If your web server is local, you can simply copy the file to that server, once a day).
 
See [[Daily Summary]] page for a full discussion.
*Some people take a copy of the local dayfile.txt, and use it locally for other purposes.
*A number of third-party routines that make use of this file (and in some cases, others) are listed at [[:Category:WebTools]].
** Some people use [[Upload_Dayfile|the method described here]] or [[Toolbox|Cumulus Toolbox]] to get a copy of the local file to use on their web server. (If your web server is local, you can simply copy the file to that server, once a day).
** Search in the Cumulus support forum for examples of third-part JavaScript projects that read the web copy, for example to insert data for one year ago, or to enable extremes for each day in a week to be included in a web page.  
** Search in the Cumulus support forum for examples of third-part JavaScript projects that read the web copy, for example to insert data for one year ago, or to enable extremes for each day in a week to be included in a web page.  
*Some people take a copy of the local file (not only the dayfile!), and use it locally for other purposes. See the e.g. [[CumulusUtils]] link.
**Dayfile.txt (and other files!) are used as described at the [[CumulusUtils]] link.
*Other people load the contents of their dayfile.txt into a database table, allowing SQL enquiries to efficiently display, or summarise, the contents of the file.
**Cumulus MX provides optional functionality to create a database table, and to automatically insert a new row each time a new line is added to the local log file.


=== Populating a database table ===
=== Populating a database table ===
5,838

edits