Skip to content
OPC UA Server for Air Quality and Weather Data
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

aqw-opcua-server (Prototype)


A demo OPC UA server application, currently in development, that fetches weather information, such as temperature, pressure, humidity, wind speed etc, from web services online through rest calls. The request's responses are returned in JSON format and manipulated in the application. The demo server put all the information requested available in OPC UA communication protocol.

Libraries/API required

Building instructions

  • Make sure you have the two libraries open62541 and C++ REST SDK included in your project.It is expected that amalgamated open62541 header and source files are located at folder ....\open62541-Single-File and C++ REST SDK - under vcpkg folder ....\vcpkg\installed\x64-windows, relatively to the VC project folder.
  • To fetch weather data, you will use the API from DarkSky API - Weather.
    • If you do not already have an account, you will need to create one in order to request an API Key.
  • Open the settings.json inside the visual studio project folder and follow the instructions:
    • Under the darksky_api object, you may change:
      • (REQUIRED) The value of "api_key" parameter with your API KEY that you received from your registration above.
      • (OPTIONAL) The value of "interval_download" parameter to control the interval in minutes of the download of weather data.
  • Pass the path to the settings.json file as an command line argument before run.
  • Build & run!

Project Overview

A more detail explanation about the project is going to be here soon...

You can’t perform that action at this time.