User Tools

Site Tools


wiki:ai:logs

CumulusMX Logs

One of the primary differences between the Default Interface Logs and the AI Logs is that all the data values are displayed with Units. These are displayed by using CSS styles in the main HTML document so they are easily accessible and editable to suit your system.

As the most common weather units are defined with CumulusMX, these are picked up automatically by the AI. However, units for extra sensors are not available so need to be 'programmed' into appropriate pages as required.

Shown below is the '<head>' area of the Extra Data Logs page - extradatalogeditor.html. This is the file that needs to be edited by you if you use extra sensors.

/*	Adjust size of units	*/
#datalog tbody .tempUnits:after,
#datalog tbody .percent:after { font-size: 0.6em; padding-left: 0.3em; vertical-align: top;}
#datalog tbody .LaserDistUnits:after,
#datalog tbody .LaserDepthUnits:after,
#datalog tbody .SnowDepthUnits:after { font-size: 0.8em; padding-left: 0.3em; vertical-align: bottom;}
 
/*	You MAY need to manually edit the following styles to match your units	*/
#datalog tbody .percent:after   	{ content: "%"; }
#datalog tbody .bearing:after    	{ content: "°"; }
#datalog tbody .SoilMoistUnits:after 	{ content: "-"; }
#datalog tbody .LeafWetUnits:after	{ content: "-"; }
#datalog tbody .AirQualUnits:after	{ content: "-"; }
#datalog tbody .AirQualAvgUnits:after 	{ content: "-"; }
#datalog tbody .CO2Units:after 		{ content: "-"; }
#datalog tbody .pm02-5:after 		{ content: "-"; }
#datalog tbody .pm10:after 		{ content: "-"; }
#datalog tbody .LaserDistUnit:after 	{ content: "cm";}
#datalog tbody .LaserDepthUnit:after 	{ content: "cm";}
#datalog tbody .SnowDepthUnit:after 	{ content: "cm";}

Editing the Units

Adding Units

In the code snippet shown, a number of classes have a content: “-“ entry. These need to be changed to the units that you use on your system.

You may also need to change the LaserDistUnit, LaserDepthUnit and SnowDepthUnit entries.

Changing size

Also included in the sniper is the CSS used to adjust the size and vertical alignment of some of the units displayed. These can be modified to suit your needs.

wiki/ai/logs.txt · Last modified: by Neil