CoolMon 2 : Examples
CML v1.2 examples
One form, one visual plugin (Text), and one general plugin (Test.Random Numbers):
<cml version="1.2">
<display>
<form>
<parameters>
<left>100</left>
<top>10</top>
<width>200</width>
<height>50</height>
<color>clSkyBlue</color>
</parameters>
<content>
<visual name="text">
<parameters>
<left>0</left>
<top>10</top>
<width>200</width>
<height>25</height>
<font>arial</font>
<color>clwhite</color>
<background>clskyblue</background>
<size>10</size>
</parameters>
<content>
<text>Random Number: </text>
<sensor name="test.random numbers" update="1">
<parameters>
<range>100</range>
</parameters>
</sensor>
</content>
</visual>
</content>
</form>
</display>
</cml>YOU MUST HAVE THE "TEST" PLUGIN AND THE "TEXT" PLUGIN INSTALLED TO RUN THE ABOVE EXAMPLE
Place a sensor as a parameter:
<parameters>
...
<left><sensor name="test.random numbers" update="1" dedicated="yes"></left>
...
</parameters>The use of the dedicated parameter is recommended when using a sensor as a parameter or when showing something time critical for instance CPU usage.
