evalinkdocs

Apps on TNA Connect V2

Run apps on a TNA Connect V2 with the Docker integration: Node-RED flows, Portainer, File Browser and Telegraf, and exchange data between Node-RED and evalink talos.

Docker exists only on TNA Connect V2, not on the ipTNA4i or TNA Connect V1. It needs a subscription that includes it, and each app needs its own feature in the subscription. The subscription is set in evalink talos; see TNA subscriptions.

App What it does Default port
Node-RED Automation flows and integrations, for example BACnet, Modbus, OPC UA, SNMP and MQTT 1880
Portainer Manages the containers on the TNA, including your own 9000
File Browser Uploads, downloads and edits the files of the apps 8090
Telegraf Sends device and app metrics —

Switch Docker on and install an app

  1. With access level 4, go to Settings › Integrations and switch Docker on. If the subscription doesn't include Docker, the toggle switches back with a message.
  2. With access level 3, go to Integrations › Docker and open the app's tab.
  3. Set the port (1024–32767, not used by another service) and a password (12–64 characters; for File Browser with at least one letter, one digit and one special character).
  4. Click Install, then Start.

Home then shows the Applications panel with each app's state. Installing and updating need Ethernet or Wi-Fi; to allow mobile, switch Allow Mobile on and confirm the warning about data charges. Auto update is on after the first install: after a firmware update, the apps are updated one after the other.

To remove an app, stop it, then click Uninstall; you can choose to also delete its data. A factory reset of the TNA deletes all apps and their data.

Open an app

  • On site: open http://<TNA address>:<port> in a browser.
  • From evalink talos: add the app under Applications in HTTP Forwarding, then click Access Services on the TNA card. See Open web pages of devices behind the TNA.

Log in with the user name shown on the app's tab and the password you set.

Set up Node-RED

Besides the port, the Node-RED tab has:

Setting Default What it does
Projects Off Manage flows with Git
Safe mode Off Flows don't start when Node-RED starts
Context store Memory Memory loses context data on restart; Filesystem keeps it. Changing it restarts Node-RED.
Log level Warn Fatal to Trace, or Off
Environment variables — Up to 50, can be marked sensitive
Modules — Extra nodes to install: BACnet, Modbus TCP/RTU, OPC UA, serial port, SNMP and evalink nodes

To remove a module, use the palette manager in Node-RED.

Node-RED talks to evalink talos through the TNA's MQTT broker. Switch MQTT on and set it up first; see Connect MQTT devices.

  1. In Node-RED, add an mqtt in and an mqtt out node with a new broker: server localhost, the MQTT port, and the MQTT user name and password. Click Deploy. Node-RED now appears under Connected clients of the MQTT integration.
  2. To send to evalink talos, set the mqtt out topic to the receive topic (default sitasys/receive) and publish <ID>[<payload>]. What arrives depends on the MQTT mode. To see the TNA's answer, subscribe to the state topic.
  3. To receive from evalink talos, set the mqtt in topic to the send topic (default sitasys/send). In an evalink talos workflow, add the step Send TNA Command with the command Send MQTT message and the text in Value to send. See Send TNA Command.

Keep the MQTT password in the broker settings of Node-RED only, not in flow comments or exports.

If flows use host names and the TNA runs over mobile, set fixed DNS servers. See Set up Ethernet 0.

Portainer, File Browser and Telegraf

Portainer manages the containers on the TNA. You can also run your own containers and stacks with it. They aren't managed by the TNA: their ports aren't checked against the TNA's services, they aren't updated after a firmware update, and all apps share the TNA's free storage.

File Browser works on the files of the apps' data volumes only.

Telegraf has no web page. On its tab, enter Stream Name, Region, Access Key and Secret Key of the destination for the metrics.

When the subscription changes

The web interface shows a change at once. If Docker is removed from the subscription, the Docker integration is switched off. If one app's feature is removed, that app stops, and starts again when the feature comes back.