This is an old revision of the document!


Node-RED pro Unipi 1.1/Lite

Obraz disku pro Unipi 1.1 zatím není k dispozici.

Tento manuál Vás provede celým procesem instalace Node-RED na Vaše PLC. Před začátkem instalace se prosím přesvědčte, že kontrolér během přepravy neutrpěl žádné poškození či jiné viditelné defekty.

This page has been moved, the new location is Mervis na Unipi Neuron.

K zjištění IP adresy jednotky můžete použít některý z nástrojů pro skenování sítí LAN. Mimo jiné je možné IP adresu získat i z DHCP serveru, pokud k němu máte přístup. Pro naše účely jsme zvolili program Advanced IP Scanner.

Stáhněte jej a nainstalujte, nebo jen spusťte. Otevřený Advanced IP Scanner vypadá následovně:

Pro automátické zvolení sítě klikněte na ikonu Prohledají se tím všechny dostupné sítě na všech dostupných adaptérech PC. Konkrétní rozsah můžete následně upravit manuálně.

Pro skenování sítě klikněte na tlačítko

Nyní se bude několik minut prohledávat místní síť. Vyčkejte dokud se nezobrazí konkrétní hledané zařízení.

Zapamatujte/zapište si IP adresu, budete ji následně používat při práci s jednotkou.

The OS image you just uploaded into your unit also contains the preinstalled EVOK open-source software - an Unipi-developed application programming interface (API) for direct communication with Unipi hardware.

Also available is a practical demonstration of using the API in the form of a simple web application (Unipi Control Panel) serving as a user interface for all inputs and outputs on the unit. To access this interface, open your web browser and enter the IP address of your unit with the port number :80. Port number is optional, as it is the default webserver port.

For example:

192.168.1.10

or

192.168.1.10:80

The application's interface looks like this:

Another software included in the disk image, which is now also uploaded in your unit, is Node-RED. It is an open-source programming tool for connecting hardware devices, various APIs or online services. In this case, the Node-RED software already contains the EVOK API. This API is represented by a pair of nodes in the left panel, section Unipi - unipi input and unipi output made to control both analog and digital inputs and outputs.

To access the Node-RED programming interface, open a web browser and enter the unit's IP address into the address tab. Don't forget to add the :1800 port number.

For example:

192.168.1.10:1880

The following interface will appear:

You have probably noticed the interface already contains a project. It is a demonstration project for reading inputs and writing to outputs, which is connected with a web user interface → so-called Dashboard. This project (flow) is available for download at the end of the article.

To access the interface, add /ui suffix behind the address with the port number.

For example:

192.168.1.10:1880/ui

The following interface will appear:

You now have everything you need to create your projects.

Node-RED projects are called flows. On the link below you can download a file with a flow for Unipi 1.1/Lite.

default-flow_unipi1.zip