====== Installing ======
To introduce Node-RED at least these packages and their dependencies are needed:
* Evok
* Node-RED
===== Connect via SSH =====
First step is to [[en:hw:004-edge:01-first-steps#accessing_the_device|connect to the unit via SSH]].
This can be done with terminal emulator for example [[en:sw:05-tools#putty|PuTTy]].
===== Installing Evok =====
To communicate with I/O in Node-RED we will use the Evok API.
[[https://evok.readthedocs.io/en/stable/installation/|Guide how to install Evok can be found here]].
/* je to v pořadí evok -> node red, protože je vyšší šance, že nezapomenou udělat update před NR, což mi jednou rozbilo gpg klíč */
===== Installing Node-RED =====
[[https://nodered.org/docs/getting-started/raspberrypi|Guide how to install Node-RED can be found here]].
Before running the script, make sure the package list was updated. sudo apt update
----
{{ :files:img_warning-line_b.png?nolink |}}
{{ :en:hw:09_safety-instructions_pseudo-ISO-7010-attention.png?nolink |(!)}}
**Attention:** \\
It is very important to have your system secured every time you create a new project.
To secured the Node-RED follow [[https://nodered.org/docs/user-guide/runtime/securing-node-red|this guide]] on the official webpage.
After the installation, it is possible to [[https://nodered.org/docs/getting-started/raspberrypi#autostart-on-boot|enable automatic Node-RED start after boot]].
If you enabled this feature, restart the unit to start the Node-RED. sudo reboot
{{ :files:img_warning-line_b.png?nolink |}}
{{ :en:hw:08_safety-instructions_pseudo-ISO-7010-info.png?nolink |(!)}}
**Tip:** \\
OS with Node-RED can be saved and copied with [[en:hw:004-edge:04-image#creating_a_os_backup_on_a_usb_flashdisk|backup and upload]] to another unit.
With this you can avoid installation and setup of Node-RED on every unit separately.