The Daily Timer Condition is triggered at a specific hour of the day. It can be active either every day, or only at certain days of the week (i.e. from Monday to Friday).
Managing Daily Timer Conditions
Via Java API
After creating a condition as described in Managing Conditions you can configure it by using the following methods:
After you configure your condition, call the save method. The Condition Provider will save the condition in Config Tree.
Via ConfigTree
All conditions are stored in the Config Tree, which allows you to import/export them and to add/edit them by simply creating and modifying XML files.
The following example contains a Daily Timer Condition, named "My Daily Timer", which becomes active at Mon Nov 28 2011 16:00:00 GMT+0200 (specified as 1322488800000 milliseconds to the startTime property) and the time event will be fired at 05:05:00 o'clock (set hour - 3, minute - 5 and seconds - 0) each Sunday, Monday and Wednesday (properties 0, 1 and 3 are equal to true).
<config name="My Daily Timer">
<property key="id_gen" value="1" type="long"/>
<config name="20"> <property key="hour" value="3" type="int"/>
<property key="minute" value="5" type="int"/>
<property key="name" value="My Daily Timer" type="string"/>
<property key="repeatCount" value="-1" type="int"/>
<property key="seconds" value="0" type="int"/>
<property key="startTime" value="1322488800000" type="long"/>
<config name="days">
<property key="0" value="true" type="boolean"/>
<property key="1" value="true" type="boolean"/>
<property key="2" value="false" type="boolean"/>
<property key="3" value="true" type="boolean"/>
<property key="4" value="false" type="boolean"/>
<property key="5" value="false" type="boolean"/>
<property key="6" value="false" type="boolean"/>
</config>
</config>
</config>