5,838
edits
m (→Dayfile) |
|||
== The Data Log Viewing and Editing interface ==
[[File:Data Logs Options.png|right|800px]]
The '''Data logs''' tab in the admin interface, as shown in image to right (which is taken from an experimental version, the released version of
#The [[Standard log files|standard log file]]; there is one of these for each month - choose menu item '''Data logs''' (yes same name as tab)
#The [[Extra Sensor Files|Extra Sensor log File]]; there is one of these for each month - choose menu item '''Extra Data Logs'''
#The [[Dayfile.txt|Daily Summary log file]]; there is only one of these - choose menu item '''Dayfile'''
=== General points common to web pages for editing standard and extra sensor logs ===
'''For the first two web pages, but not the daily summary log web page:'''
*On this screen,you see a box for selecting the log you want to display. The default month and year (shown on loading the web page) is taken from yesterday's date. No log is loaded at start up. You can '''either''' type in a period (one or two digit representing month, then hyphen, then four digits representing year) '''or''' select year then click month in the data picker (this is produced by the bootstrap software MX uses, it is not the date picker provided by your browser), when you click on the month the box is updated with selected period.
* Next to it is a "Load" button. Press it and the Cumulus MX engine will generate an application programming interface (api) table taken from the log file selected and it is sent in dataTables software format to the web page. There is a "Refresh" button, for when you want that api to refresh the table (without reloading the whole page).
=== Web page for editing daily summary log only ===
There is no need to select this log, the Cumulus MX engine will generate an application programming interface (api) table containing the whole log file and it is sent in dataTables software format to the web page. There is a "Refresh" button, for when you want that api to refresh the table (without reloading the whole page).
=== Data logs ===▼
=== General points common to all 3 web pages for editing all logs ===
'''For all 3 web pages'''
*When you select a line, two buttons are enabled:
*#'''Edit a line''' - rather obviously brings up a dialog (known as modal by the '''altEditor''' software that generates it) showing all fields and letting you change the contents of most individual fields. Scroll down and in the footer are two buttons:
*#
*#'''Close dialog'''. You can close this dialog in 3 ways:▼
*##clicking that Close dialog button▼
*##Clicking the small '''x''' at the top right▼
*## Clicking anywhere outside the dialog▼
*#'''Delete a line''' - rather obviously brings up a dialog (known as modal by the '''altEditor''' software that generates it) showing all fields. Scroll down and in the footer are two buttons:
*##''Delete'' will send the existing line back to the MX engine where the log file is then read into an array, and deletes the relevant array element whose date matches the line received. At present, MX software in the engine does not check the times match! After that the log file is overwritten from the amended array. After that the log file as a whole is converted back to dataTables format and returned by the api that delivered the table originally.
*#'''Close'''. You can close this dialog in 3 ways:
*##clicking that Close button
*##Clicking the small '''x''' at the top right
*## Clicking anywhere outside the dialog
'''Be aware'''
* The api expects the log file to contain all the fields defined in the version of MX that is being used.
*Lines in the log files created by earlier versions of Cumulus (Cumulus 1 or MX) may have fewer fields
*Since the dataTables representation seen in the web page is not the actual log, any missing fields will show as blanks in that table and in the edit or delete dialogs.
*If you do edit a line, and then '''Save edit''' that particular line (but no others in the log file) will change its length to that used by the current version and you will see additional trailing field separators (commas, semicolons, or whatever defined for your locale) in that line making it seem different from its neighbours.
▲=== Data logs ===
For full information on how to use this screen, please see [[Standard_log_files#Accessing_standard_log_file_in_admin_interface_of_Cumulus_MX|Standard_log_files article]].
=== Dayfile ===
There is nothing to add to what has already been said.
▲*#'''Save edit''' will send the edited line back to the MX engine where the log file is then read into an array, and the relevant array element is replaced by the line received. After that the log file is overwritten from the amended array. After that the log file as a whole is converted back to dataTables format and returned by the first api.
▲*#'''Close dialog'''. You can close this dialog in 3 ways:
▲*##clicking that Close dialog button
▲*##Clicking the small '''x''' at the top right
▲*## Clicking anywhere outside the dialog
== Changing Settings ==
|
edits