Changes

Jump to navigation Jump to search
ru
Line 4: Line 4:  
* '''Actions''' (действия): внешний сервис отправляет HTTP-запрос серверу Larnitech, и сервер меняет состояние элемента.
 
* '''Actions''' (действия): внешний сервис отправляет HTTP-запрос серверу Larnitech, и сервер меняет состояние элемента.
   −
== Events ==
+
== События ==
−
An event has the following fields:
+
Поля события:
 
{|class="wikitable"
 
{|class="wikitable"
−
!Field!!Description
+
!Поле!!Описание
 
|-
 
|-
−
|Name||Name of the event. It is used in the script that sends the event.
+
|Name||Название события. По нему событие вызывается из сценария.
 
|-
 
|-
−
|URL||Address that the server calls.
+
|URL||Адрес, на который обращается сервер.
 
|-
 
|-
−
|Method||<code>GET</code> (default) or <code>POST</code>.
+
|Method||<code>GET</code> (по умолчанию) или <code>POST</code>.
 
|-
 
|-
−
|Feedback||Optional. Item address and a regular expression: the value found in the answer is written to that item.
+
|Feedback||Необязательно. Адрес элемента и регулярное выражение: найденное в ответе значение записывается в этот элемент.
 
|}
 
|}
−
The event is sent from a script. In LT Setup open '''Scripts → Scripts from logic → Add Blockly script''', add the device event on the '''Triggers''' tab, put the '''Make webhook''' block from the '''Automation''' tab into it and choose the event name.
+
Событие отправляется из сценария. В LT Setup откройте '''Scripts → Scripts from logic → Add Blockly script''', на вкладке '''Triggers''' добавьте событие устройства, поместите в него блок '''Make webhook''' с вкладки '''Automation''' и выберите название события.
    
== Actions ==
 
== Actions ==

Navigation menu