12 063
правки
(Новая страница: «== How to create and edit rules ==») |
(Новая страница: «*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...…») |
||
Строка 9: | Строка 9: | ||
== How to create and edit rules == | == How to create and edit rules == | ||
* | *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: | |||
# | #The rules files are stored on the controller as plain text files in the <code>/etc/wb-rules/</code> folder, so they [[Просмотр файлов контроллера с компьютера/en|can be edited and downloaded]] directly from your computer. | ||
# | #The rules are executed by the ''wb-rules'' service, see the service's [https://github.com/contactless/wb-rules documentation on Github]. | ||
правки