Перейти к содержанию

Навигация

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

Новая страница: «Install the necessary components: <syntaxhighlight lang="bash"> apt update && apt install -y nodejs git make g++ gcc build-essential </syntaxhighlight>»
(Новая страница: «== Description == {{YouTube |link= https://youtu.be/cKQmU4LZo4c |text= Wiren Board Node-RED Video Tutorial by SetPoint }} Node-RED is a visual programming tool based on Node.js and developed and maintained by an open community.»)
Метки: правка с мобильного устройства правка из мобильной версии
(Новая страница: «Install the necessary components: <syntaxhighlight lang="bash"> apt update && apt install -y nodejs git make g++ gcc build-essential </syntaxhighlight>»)
Метки: правка с мобильного устройства правка из мобильной версии
Строка 9: Строка 9:
Node-RED is a visual programming tool based on Node.js and developed and maintained by an open community.
Node-RED is a visual programming tool based on Node.js and developed and maintained by an open community.


Подробное описание, инструкции и примеры использования можно найти на сайте [https://nodered.org/ nodered.org], а поддержку сообщества в телеграм-канале [https://t.me/SprutAI_NodeRED Node-RED].
A detailed description, instructions and examples of use can be found on the site [https://nodered.org/ nodered.org], and community support in the telegram channel [https://t.me/SprutAI_NodeRED Node-RED].


{{Wbincludes:Installing Software In Console}}
{{Wbincludes:Installing Software In Console}}


== Установка ==
== Installation ==
Для установки Node-RED 2.2 на контроллер Wiren Board подключитесь к нему по [[SSH]] и введите в консоль несколько команд.
To install Node-RED 2.2 on a Wiren Board controller, connect to it via [[SSH]] and enter a few commands into the console.


Установите необходимые компоненты:
Install the necessary components:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
apt update && apt install -y nodejs git make g++ gcc build-essential
apt update && apt install -y nodejs git make g++ gcc build-essential
</syntaxhighlight>
</syntaxhighlight>


Запустите установку Node-RED:
Run the Node-RED installation:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
npm install -g --unsafe-perm node-red@2.2
npm install -g --unsafe-perm node-red@2.2
</syntaxhighlight>
</syntaxhighlight>


Если потребуется обновить версию Node-RED, выполните команду установки ещё раз.
If you need to upgrade your Node-RED version, run the install command again.


== Создание сервиса ==  
== Creating a project ==  


Для автозапуска Node-RED необходимо настроить сервис. Для этого в папке <code>/etc/systemd/system/</code> создайте файл <code>nodered.service</code>:
Для автозапуска Node-RED необходимо настроить сервис. Для этого в папке <code>/etc/systemd/system/</code> создайте файл <code>nodered.service</code>:
translator, wb_editors
4285

правок