Construct “V-ID/[tipe]:[time] { … }” generates the event at specified intervals.

Parameters:

tipe

«m», «s» or «ms» are minutes, seconds or milliseconds correspondently.

time

Number of specified units of time. Maximum number of seconds which could be set when using tipe «s» is 0xFFFF and maximum number of minutes which could be specified when using tipe «m» si 0x0444. When using tipe «ms» milliseconds are to be specified in increments of 50 milliseconds, 10000 milliseconds is the maximum value.

Example:

<item addr="524:248" LAMP="512:16"  MS="524:24" name="Message processing" type="script">

V-ID/s:15
{
	setStatus(LAMP,![LAMP.0]);
}

V-ID/m:1
{
	u8
	strForMess[100];
	sprintf(strForMess,"%cMovement - %d%%", 1, [MS.1]);
	setStatus(2023:32,&strForMess);
}
</item>

//After compilation:

524/s:15
{
	setStatus(512:16,![512:16.0]);
}

524/m:1
{
	u8
	strForMess[100];
	sprintf(strForMess,"%cMovement - %d%%", 1, [524:32.1]);
	setStatus(2023:32,&strForMess);
}

Result:

Every 15 seconds the element LAMP will change its status to the opposite one and every minute the messages with motion level value from MS sensor will be displayed.