Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Stopwatch Gauge

The Stopwatch Gauge provides a basic timer that can be stopped and started manually.

Example:

<gauge>
    <name>STOPWATCH</name>
    <type>StopwatchGauge</type>
    <x>100</x>
    <y>350</y>
    <w>50</w>
    <h>50</h>
    <min>0</min>
    <max>100</max>
    <visible>1</visible>
    <colours>0,255,0,0,255,0</colours>
    <timerid>3</timerid>
    <fontsize>30</fontsize>
</gauge>
Property Mandatory? Value Type Description
timerid Yes Integer The id of this timer. Every timer you create should have a unique ID so that it can be identified when using touch actions or sending canbus commands to control it
x Yes Integer The x coordinate of the bottom left of the gauge
y Yes Integer The y coordinate of the bottom left of the gauge
w Yes Integer The width of the gauge in pixels
h Yes Integer The height of the gauge in pixels
colours Yes String Standard colour string, used to draw the radar outline.
fontsize Yes Integer The font size for the timer
font No string The name of the font to use. Leave blank for the default font

Stopwatch gauges can be started and stopped using the ‘STOPWATCHSTART’ and ‘STOPWATCHSTOP’ touch actions. For this you require a touch screen, a rotary encoder, or an external canbus message.