Рецепты/en — различия между версиями

Материал из WebHMI Wiki
Перейти к: навигация, поиск
(Новая страница: «Recipes»)
 
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
 
<languages/>
 
<languages/>
Рецепт позволяет инициализировать набором значений некоторую группу регистров. Есть несколько вариантов использования рецептов:
+
The recipe allows you to initialize a set of values ​​to a certain group of registers. There are several options for using recipes:
*размещение списка рецептов на дешборд в виде выпадающего или полного списка. После выбора рецепта, существует две опции - немедленно применить его, либо использовать скрипт, который будет отслеживать выбор нового рецепта и выполнять некие дополнительные действия.
+
* placing a list of recipes on a dashboard in the form of a drop-down or full list. After choosing a recipe, there are two options - immediately apply it, or use a script that will track the selection of a new recipe and perform some additional actions.
*активация рецепта внутри  скрипта, который в свою очередь может быть инициирован например, планировщиком (можно применять одновремнно несколько рецептов, реализуя сценарное управление, например управления зонами освещения и т.п.).  
+
* activation of the recipe inside the script, which can be initiated, for example, by the scheduler (you can apply several recipes at the same time, implementing script management, for example control of lighting zones, etc.).
Рецепты созданются в меню Конфигурация / Рецепты. <br>
+
Recipes are created in the Configuration/Recipes menu. <br>
 
[[Файл:Create 1.png | 800 px ]]
 
[[Файл:Create 1.png | 800 px ]]
<p>Рецепты могут иметь под-категории, т.е. список рецептов на дешборде может отображаться полностью, либо только из определенной категории. </p>
+
<p> Recipes can have sub-categories, i.e. the list of recipes on a dashboard can be displayed completely, or only from a certain category. </p>
 
[[Файл:Create 2.png | 800 px]]
 
[[Файл:Create 2.png | 800 px]]
<p> А также быть доступными для конкретных пользователей. </p>
+
<p> And also be available to specific users. </p>
 
[[Файл:Create 3.png|800px]]
 
[[Файл:Create 3.png|800px]]
<p>При размещении списка рецептов на дешборде необходимо указать:</p>
+
<p> When placing a list of recipes on a dashboard, you must specify: </p>
:: Категорию рецептов, либо полный список из всех категорий
+
:: Category of recipes, or a complete list of all categories
:: Выпадающий или многострочный список
+
:: Drop-down or multiline list
:: Номер регистра где будет меняться номер рецепта. (изменение этого регистра можно отслеживать в скриптах, когда нужно выполнить некоторые связанные с этим рецептом действия)
+
:: Number of the register where the recipe number will change. (changing this register can be monitored in scripts when you need to perform some actions associated with this recipe)
:: Применять ли рецепт немедленно или нет (во втором случае изменится только номер регистра где хранится номер текущего рецепта)
+
:: Whether to apply the recipe immediately or not (in the second case, only the register number will change where the current recipe number is stored)
 
[[Файл:Dahboard.png | 800px]]
 
[[Файл:Dahboard.png | 800px]]
<p>Для применения рецептов внутри скриптов, используется функция ApplyRecipe(recipeId, userId). [http://wiki.webhmi.com.ua/index.php/%D0%A1%D1%86%D0%B5%D0%BD%D0%B0%D1%80%D0%B8%D0%B8_LUA#ApplyRecipe.28recipeId.2C_userId.29 см. здесь ] После ее выполнения, если на одном из дешбордов отображается список, содержаций рецепт из функции ApplyRecipe, необходимо также записать номер рецепта в регистр, привязаный к списку - для синхронизации отображения списка.</p>
+
<p> To apply recipes within scripts, the ApplyRecipe (recipeId, userId) function is used.
 +
[http://wiki.webhmi.com.ua/index.php/%D0%A1%D0%BA%D1%80%D0%B8%D0%BF%D1%82%D1%8B/en see here]
 +
After it is executed, if a list is displayed on one of the dashboards, the contents of the recipe from the ApplyRecipe function, you must also write the recipe number in the register tied to the list - to synchronize the display of the list. </p>

Текущая версия на 10:47, 21 ноября 2017

Другие языки:
English • ‎русский

The recipe allows you to initialize a set of values ​​to a certain group of registers. There are several options for using recipes:

  • placing a list of recipes on a dashboard in the form of a drop-down or full list. After choosing a recipe, there are two options - immediately apply it, or use a script that will track the selection of a new recipe and perform some additional actions.
  • activation of the recipe inside the script, which can be initiated, for example, by the scheduler (you can apply several recipes at the same time, implementing script management, for example control of lighting zones, etc.).

Recipes are created in the Configuration/Recipes menu.
Create 1.png

Recipes can have sub-categories, i.e. the list of recipes on a dashboard can be displayed completely, or only from a certain category.

Create 2.png

And also be available to specific users.

Create 3.png

When placing a list of recipes on a dashboard, you must specify:

Category of recipes, or a complete list of all categories
Drop-down or multiline list
Number of the register where the recipe number will change. (changing this register can be monitored in scripts when you need to perform some actions associated with this recipe)
Whether to apply the recipe immediately or not (in the second case, only the register number will change where the current recipe number is stored)

Dahboard.png

To apply recipes within scripts, the ApplyRecipe (recipeId, userId) function is used. see here After it is executed, if a list is displayed on one of the dashboards, the contents of the recipe from the ApplyRecipe function, you must also write the recipe number in the register tied to the list - to synchronize the display of the list.