An open API service indexing awesome lists of open source software.

https://github.com/andreasheine/sampleserver-node-opcua

OPC UA Sample Server based on node-opcua. Showcasing how to implement OPC UA companion specifications.
https://github.com/andreasheine/sampleserver-node-opcua

node-opcua opcua opcuaserver typescript umati

Last synced: about 2 months ago
JSON representation

OPC UA Sample Server based on node-opcua. Showcasing how to implement OPC UA companion specifications.

Awesome Lists containing this project

README

        

# SampleServer-node-opcua

[![Node.js CI](https://github.com/AndreasHeine/SampleServer-node-opcua/actions/workflows/node.js.yml/badge.svg)](https://github.com/AndreasHeine/SampleServer-node-opcua/actions/workflows/node.js.yml)
[![CodeQL](https://github.com/AndreasHeine/SampleServer-node-opcua/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/AndreasHeine/SampleServer-node-opcua/actions/workflows/codeql-analysis.yml)
[![Lint Code Base](https://github.com/AndreasHeine/SampleServer-node-opcua/actions/workflows/linter.yml/badge.svg)](https://github.com/AndreasHeine/SampleServer-node-opcua/actions/workflows/linter.yml)
[![Container Build](https://github.com/AndreasHeine/SampleServer-node-opcua/actions/workflows/container_build.yml/badge.svg)](https://github.com/AndreasHeine/SampleServer-node-opcua/actions/workflows/container_build.yml)

OPC UA Sample Server based on [node-opcua](https://github.com/node-opcua/node-opcua)
the official book node-opcua: [node-opcua by example](https://leanpub.com/node-opcuabyexample-edition2024) by [Sterfive](https://www.sterfive.com)
API Docs: [2.32.0](https://node-opcua.github.io/api_doc/2.32.0/index.html)

## Usage

- `download and unpack`
- `open folder in VS Code (or in terminal)`
- `npm install`
- `npm run start`

## Example Users

User: `admin` Password: `pw1`
User: `operator` Password: `pw2`
User: `guest` Password: `pw3`

## Ephemeral Dev Environment

- [Click](https://gitpod.io/#https://github.com/AndreasHeine/SampleServer-node-opcua)
- `npm run start`
- split terminal: `opcua-commander -e opc.tcp://localhost:4840/UA` to have a local OPC UA client

## Docker

Set "IP" and "PORT" in env:

- `docker run -it -p 4840:4840 -e PORT=4840 -e IP=127.0.0.1 --name sampleserver-node-opcua ghcr.io/andreasheine/sampleserver-node-opcua:main`

## Online Server Instance

- `opc.tcp://opcua.umati.app:4843`

## Implementations of OPC UA Companion Specifications

![image](./img/addressspace.PNG)

## License

![GitHub](https://img.shields.io/github/license/AndreasHeine/SampleServer-node-opcua)

Unless otherwise specified, source code in this repository is licensed under the [Apache 2.0 License](LICENSE).