Monthly log files: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
m (→‎Uploading current log to your website: see http://sandaysoft.com/forum/viewtopic.php?f=4&t=12716)
==How can Monthly log files be used within Cumulus?==
===Uploading current log to your website===
The current monthly log can be updated at your usual website update interval using ''<currentlogfile>'' on the '''Files''' tab of the ''Internet Settings'' screen off the '''Configuration''' menu (or by specifying the parameter 'ExtraLocal[0-99]=<currentlogfile>' seein [[Cumulus.ini#Section:_FTP_Site]]). You can also use <currentlogfile> as part of the remote file path, as explained in the Cumulus '''Help'''. It is recommended that your remote file is local so the updating can use copy and you do not have FTP ticked to avoid conflict with logging.
 
A script can then read the file into ana arraydatabase (see [[ImportCumulusFile]]), or databasean array, for further processing.
 
CAUTION: Be aware for a remote server, there can be conflict between the thread that Cumulus uses to run FTP and the independent thread that Cumulus uses to log the latest observations into this file. There is a danger that a FTP in progress still has exclusive access and the logging therefore fails e.g. if the interval between FTP is too small or, it is not near the start of the month so, the file is big; see [[FAQ#I_am_getting_I.2FO_error_32_or_I.2FO_error_103]]. An alterative approach is to upload this file just once a day, at a quiet period such as an odd number of seconds after quarter-past midnight using a process scheduled outside Cumulus.
 
===After you have edited (or created any missing) Monthly log files, you can:===
5,838

edits

Navigation menu