Log.xml: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
1,441 bytes added ,  31 May 2020
m
no edit summary
mNo edit summary
= Introduction =
 
File holding entries created in [[Weather_Diary|'Weather Diary']] assessed from Cumulus 1 View menu.
 
== Content of file ==
 
The structure Steve Loft created (and I think he regretted this later) is a bit more complicated than that shown below. Each <ROWDATA/> actually has another field not shown that is set by a somewhat complicated algorithm that I eventually worked out but will not fully describe here. Putting it as simply as I can, there is an extra code field, so that when an extra record is created for the same date, the code records how many times each individual field has been changed. Since any external XML editor does not understand this extra field, it cannot edit it, and without that field being correct the weather diary feature in Cumulus 1 cannot read it, and consequently will either not start or will crash out (depending on whether it is stopped or running at time of external edit).
 
Here is the structure as detected by "XML Notepad 2007":
<pre><DATAPACKET Version="2.0">
<METADATA>
<FIELDS>
<FIELD attrname="EntryDate" fieldtype="date"/>
<FIELD attrname="Entry" fieldtype="string" WIDTH="1024"/>
<FIELD attrname="SnowLying" fieldtype="boolean"/>
<FIELD attrname="SnowFalling" fieldtype="boolean"/>
<FIELD attrname="SnowDepth" fieldtype="i4"/>
</FIELDS>
<PARAMS/>
</METADATA>
<ROWDATA/>
</DATAPACKET></pre>
 
 
== Editing this log ===
The file can be edited within Cumulus 1 (Weather Diary on Edit menu), and can be viewed (but not edited for reason explained earlier) using aany XML viewer. However, most viewers (including your browser will struggle without a template telling them the complete format (not just what is shown above).
 
== Using in your own scripts ==
5,838

edits

Navigation menu