Skip to main content

Install from npm

Omni-Edge is an npm package that runs on Node.js. Use this installation on a machine with no container runtime: an engineering workstation or an industrial gateway.

Before you start​

  • Node.js 22 or later. Install the LTS version from nodejs.org, or run one of these commands:

    # Debian / Ubuntu
    curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
    sudo apt-get install -y nodejs
    # Windows
    winget install OpenJS.NodeJS.LTS
  • A Sterfive npm account. Ask your Sterfive administrator, or send your name and company to contact@sterfive.com.

How to install​

  1. Set the Sterfive registry for the @sterfive scope. Do this one time on each machine.

    npm config set @sterfive:registry=https://npm-registry.sterfive.fr
  2. Log in to the registry:

    npm login --registry=https://npm-registry.sterfive.fr
  3. Create a folder and go into it:

    mkdir omni-edge
    cd omni-edge
  4. Create the package.json file and install the package:

    npm init -y
    npm install @sterfive/opcua-omni-edge
tip

Install in a folder. Do not use -g. The package, the configuration file, the certificate store and the licence state then stay in one folder. A backup or an air-gapped transfer copies one folder.

How to run​

  1. Start the gateway.

    On Linux and macOS:

    node_modules/.bin/opcua-omni-edge run -c config.yaml

    On Windows:

    node_modules\.bin\opcua-omni-edge.cmd run -c config.yaml
  2. To stop the gateway, press Ctrl+C. The gateway releases its licence seat before it exits.

OptionMeaning
-c, --configThe configuration file.
-d, --databaseThe folder of the IODD definition XML files.
-w, --watchWatches the configuration file and restarts the gateway on a change.
--pollWith --watch: detects a change by polling, not by filesystem events.
--managedRuns under a controller process (the Run button of the editor).

While you build a configuration, use watch mode:

node_modules/.bin/opcua-omni-edge run -c config.yaml --watch

Other commands:

  • opcua-omni-edge version shows the version, the git sha and the build date.
  • opcua-omni-edge licence info shows the licence state.
  • opcua-omni-edge migrate-config converts a v3 configuration file to the v4 format.

What is where​

PathContent
config.yamlYour configuration file.
node_modules/The package and its dependencies.
$HOME/.sterfive/opcua-omni-edge/The licence activation and the stable identity of this machine.

The gateway uses the stable identity to recognize itself after a restart. If you lose it, the gateway uses a new licence seat. Back it up with the configuration file.

How to check that it works​

  1. Run node_modules/.bin/opcua-omni-edge version. The command shows the version.
  2. Start the gateway with your configuration file.
  3. Connect an OPC UA client to the gateway.

How to update​

  1. Go to the installation folder:

    cd omni-edge
  2. Install the latest version:

    npm install @sterfive/opcua-omni-edge@latest

How to keep the gateway running​

The commands above run the gateway in the foreground. To start the gateway at boot and restart it after a failure, see Run as a service.

Licensing​

The gateway starts without a licence key in demo mode: 2 hours of service, then a pause of 8 hours before the next demo period. Use the demo mode to connect a device and test an OPC UA client before you buy a licence. The licence data holds the demo clock. A restart does not reset it. During the pause, the process stays up and waits. It exits when the pause ends. The next start begins a new demo period. To remove the limit, contact sales@sterfive.com for a permanent or time-limited professional licence.

To license a machine with internet access, use one of these methods.

  • Set the key in the environment before you start the gateway:

    export OPCUA_OMNI_EDGE_LICENSE_KEY=ABCDEF-01234-...-ABCDEF
    node_modules/.bin/opcua-omni-edge run -c config.yaml
  • Activate the key one time with the CLI. The CLI stores the activation in $HOME/.sterfive/opcua-omni-edge/:

    node_modules/.bin/opcua-omni-edge licence activate

To check the result, run:

node_modules/.bin/opcua-omni-edge licence info

To return the seat when you decommission the machine, run opcua-omni-edge licence deactivate.

For a machine with no internet access, see Offline and air-gapped installs.

To buy a licence, contact contact@sterfive.com or visit the Sterfive website. You receive a licence key and instructions for your deployment.