freesmartphone.org Events Interface
The Events interface provides access to the rules. All the rules are specified into the rule file : /etc/freesmartphone/oevents/rules.yaml. See the file itself for more information about the syntax of the rules.
AddRule ( s )
Description: Parse a rule string and add it into the rule list.
s: rule The rule in the same format used by the rules file.
RemoveRule ( s )
Description: Remove a rule by name.
s: name The name of the rule, as specified by the ‘name’ attribute of the rule.
TriggerTest ( sb )
Description: Trigger or untrigger all the ‘Test’ triggers with matching names.
s: name the name of the Test triggers to trigger/untrigger.
b: value True to trigger, False to untrigger.