Skip to content

ASNeG/OpcUaWebServer

Repository files navigation

OpcUaWebServer

image

Github All Releases

Slack Community

About

ASNeG OPC UA Web Server is a web application to access to OPC UA data via the Internet. It provides a JSON API via WebSocket protocol and has an embedded OPC UA client to communicate with OPC UA servers.

Features

  • Embedded OPC UA Client from ASNeG OPC UA Stack
  • HTTP Server to distribute to delivery the web pages
  • WebSocket Server with a simplified JSON API
  • WebSocket Gateway with a JSON-OPC UA mapping
  • Web Panel to visualize the process data by using graphical JavaScript library
  • Configuration with XML files
  • Supports Linux and Windows

For more information see Overview section.

Requirements

  • ANSeG OPC UA Stack >= 4.0.0
  • CMake
  • C++ compiler with C++11 support

Installing

Before install OpcUaWebServer you must install ASNeG OpcUaStack. See this tutorial for more information.

Then type the following command:

On Linux

$ sh build.sh -t local -s ASNEG_INSTALL_DIR

On Windows

$ build.bat local -s ASNEG_INSTALL_DIR

ASNEG_INSTALL_DIR is the path where ASNeG OPC UA Stack is installed.

For more information see Installation section.

Usage

If you have installed the server locally, you can run it by using the following command:

On Linux

$ OpcUaServer4 ~/ASNEG_INSTALL_DIR/etc/OpcUaStack/OpcUaWebServer/OpcUaServer.xml

On Windows

$ OpcUaServer4 CONSOLE ASNEG_INSTALL_DIR\etc\OpcUaStack\OpcUaWebServer\OpcUaServer.xml

Also you can use Docker without installing any dependencies:

$ docker build -t OpcUaWebServer:latest . 
$ docker run -d -p 8890:8890 -p 8080:8080 -p 8081:8081 -p 8082:8082 OpcUaWebServer:latest

Demo Application

The demo application contains the web server and a demo OPC UA server as a data source. You can found it here or run on your machine:

$ docker-compose run -d -p 8080:8080 -p 8081:8081 -p 8082:8082 webserver

Then open the link http://127.0.0.1:8080 with your web browser.

Development Status

ASNeG OPC UA Web Server is in the development stage. Moreover it dependents on OpcUaStack 4, which is also being developed and not released.

References

About

ASNeG OPC UA Web Server is a web application which provides access to OPC UA data via the Internet.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages