Translations:Движок правил wb-rules/4/en

Материал из Wiren Board
  • The list of files with rules is on the Scripts page of the web interface.
  • Click the file name to open it for editing.
    • To create a new file, click New... at the top, enter the name of the script (use only Latin letters and numbers for the name, specify as an extension .js), in the main field, enter the text of the script, then click the Save button at the top.

The rule starts automatically after you click Save if there are no errors (see below). Notes:

  1. The rules files are stored on the controller as plain text files in the /etc/wb-rules/ folder, so they can be edited and downloaded directly from your computer.
  2. The rules are executed by the wb-rules service, see the service's documentation on Github.