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 / Ubuntucurl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -sudo apt-get install -y nodejs# Windowswinget 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
-
Set the Sterfive registry for the
@sterfivescope. Do this one time on each machine.npm config set @sterfive:registry=https://npm-registry.sterfive.fr -
Log in to the registry:
npm login --registry=https://npm-registry.sterfive.fr -
Create a folder and go into it:
mkdir omni-edgecd omni-edge -
Create the
package.jsonfile and install the package:npm init -ynpm install @sterfive/opcua-omni-edge
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
-
Start the gateway.
On Linux and macOS:
node_modules/.bin/opcua-omni-edge run -c config.yamlOn Windows:
node_modules\.bin\opcua-omni-edge.cmd run -c config.yaml -
To stop the gateway, press Ctrl+C. The gateway releases its licence seat before it exits.
| Option | Meaning |
|---|---|
-c, --config | The configuration file. |
-d, --database | The folder of the IODD definition XML files. |
-w, --watch | Watches the configuration file and restarts the gateway on a change. |
--poll | With --watch: detects a change by polling, not by filesystem events. |
--managed | Runs 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 versionshows the version, the git sha and the build date.opcua-omni-edge licence infoshows the licence state.opcua-omni-edge migrate-configconverts a v3 configuration file to the v4 format.
What is where
| Path | Content |
|---|---|
config.yaml | Your 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
- Run
node_modules/.bin/opcua-omni-edge version. The command shows the version. - Start the gateway with your configuration file.
- Connect an OPC UA client to the gateway.
How to update
-
Go to the installation folder:
cd omni-edge -
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-...-ABCDEFnode_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.