Node-RED/en: различия между версиями

Новая страница: «To set up an MQTT connection in Node-RED, follow these steps: #Drag the '''mqtt in''' node to the workspace. #Enter the node configuration and click on the '''Pencil''' next to the '''Server''' field. #On the '''Connecting''' tab, set the broker address and port number. #:In the '''Name''' field, enter any server name. #:On the '''Security''' tab, you can specify the Username and Password to connect to the broker. If the Wiren Board controller acts as a brok...»
(Новая страница: «=== Examples === WB-Nodes comes with examples for Apple HomeKit and Yandex.Alice, you can find them in '''Menu''' → '''Import''' → '''Examples'''. <gallery mode="packed" heights="200px" caption="Examples from WB-Nodes"> Image: WB-Nodes Examples 1.png | List of examples Image: WB-Nodes Examples 2.png | Example in workspace </gallery>»)
(Новая страница: «To set up an MQTT connection in Node-RED, follow these steps: #Drag the '''mqtt in''' node to the workspace. #Enter the node configuration and click on the '''Pencil''' next to the '''Server''' field. #On the '''Connecting''' tab, set the broker address and port number. #:In the '''Name''' field, enter any server name. #:On the '''Security''' tab, you can specify the Username and Password to connect to the broker. If the Wiren Board controller acts as a brok...»)
Метки: правка с мобильного устройства правка из мобильной версии
Строка 147: Строка 147:
</gallery>
</gallery>


== Использование нод ''mqtt in'' и ''mqtt out'' для взаимодействия с Wiren Board ==
== Using the ''mqtt in'' and ''mqtt out'' nodes to interact with the Wiren Board ==
=== Настройка подключения ===
=== Connection setup ===
[[Image: NodeRed_mqtt_nodes.jpg |300px|thumb|right| Ноды MQTT в Node-Red ]]
[[Image: NodeRed_mqtt_nodes.jpg |300px|thumb|right| MQTT Nodes in Node-Red ]]
Альтернативный вариант — использовать ноды '''mqtt in''' и  '''mqtt out'''. Для этого вам понадобятся адреса топиков, взять их можно в веб-интерфейсе контроллера на странице [[Wiren Board Web Interface#mqtt-channels |MQTT-каналы]].
An alternative is to use the '''mqtt in''' and '''mqtt out''' nodes. To do this, you need the addresses of the topics, you can get them in the controller web interface on the [[Wiren Board Web Interface#mqtt-channels |MQTT-channels]] page.


Для настройки MQTT-соединения в Node-RED выполните следующие действия:
To set up an MQTT connection in Node-RED, follow these steps:
#Перетащите ноду '''mqtt in''' в рабочую область.  
#Drag the '''mqtt in''' node to the workspace.
#Войдите в конфигурацию ноды и нажмите на '''Карандаш''' напротив поля '''Server'''.  
#Enter the node configuration and click on the '''Pencil''' next to the '''Server''' field.
#На вкладке '''Connecting''' задайте адрес брокера и номер порта.  
#On the '''Connecting''' tab, set the broker address and port number.
#:В поле '''Name''' введите любое имя сервера.  
#:In the '''Name''' field, enter any server name.
#:На вкладке '''Security''' можно указать Имя пользователя и Пароль для подключения к брокеру. Если в качестве брокера выступает контроллер Wiren Board, это поле нужно оставить пустым.
#:On the '''Security''' tab, you can specify the Username and Password to connect to the broker. If the Wiren Board controller acts as a broker, this field must be left blank.
#После заполнения всех полей нажмите кнопку '''Update'''. Созданный брокер теперь можно использовать для настройки всех подключений.
#After filling in all the fields, click the '''Update''' button. The created broker can now be used to set up all connections.
#Выберите созданные брокер из списка в поле '''Server'''.
#Select the created broker from the list in the '''Server''' field.
#Введите адрес mqtt-топика в поле '''Topic'''.  
#Enter mqtt-topic address in the '''Topic''' field.
#Нажмите кнопку '''Done'''.
#Press the '''Done''' button.


По такому же принципу настраивается нода '''mqtt out'''.
По такому же принципу настраивается нода '''mqtt out'''.
translator, wb_editors
4272

правки