Sample Files

docker-compose.yml

version: "3.0"

services:
  opcua:
    image: "protocol-adapter-osipi:amd64-latest"
    environment:
      config: "/config/config-osipi.json"
    healthcheck:
      timeout: 5s
      test: exit 0
      retries: 3
      interval: 5s
    networks:
      - predix-edge-broker_net
    deploy:
      restart_policy:
        condition: on-failure

networks:
  predix-edge-broker_net:
    external: true

config.json

{
	"blocks": {
		"osipi_input": {
			"type": "osipipollingsource",
			"config": {
				"transport_addr": "osipi-https://<OSIPI server address>",
				"log_level": "debug",
				"data_map": [
					{
						"alias": "tag1",
						"webid": "F1DPscOFnmu2m0yOXeU7eqsGfQWQEAAAU0pDMURQUFQwM1xPUEMgVUEuT1BDLVVBIFNJTVVMQVRPUi4yLlNJTVVMQVRPUi5ERVZJQ0UxLkJPT0w5OA"
					},
					{
						"alias": "tag2",
						"piPointName": "\\\\test_osipiserver\\test_tagname_2"
					},
					{
						"alias": "tag3",
						"webid": "F1DPscOFnmu2m0yOXeU7eqsGfQWgEAAAU0pDMURQUFQwM1xPUEMgVUEuT1BDLVVBIFNJTVVMQVRPUi4yLlNJTVVMQVRPUi5ERVZJQ0UxLkJPT0w5OQ",
						"piPointName": "\\\\test_osipiserver\\test_tagname_3"
					},
					{
						"alias": "tag4",
						"piPointName": "test_tagname_4"
					},
					{
						"alias": "tag5",
						"webid": "F1DPscOFnmu2m0yOXeU7eqsGfQ4gAAAAU0pDMURQUFQwM1xPUEMgVUEuT1BDLVVBIFNJTVVMQVRPUi4yLlNJTVVMQVRPUi5ERVZJQ0UxLkRPVUJMRTE"
					}
				],
				"password": "PEASPassword",
          			"username": "PEASTeam",
          			"proxy_url": "$https_proxy",
          			"validate_certs": false,
          			"interval_ms": 1000,
          			"output_format": "flat_json"
			}
		},
		"flat_to_timeseries": {
			"type": "flattotimeseries",
			"config": {
				"log_level": "debug"
			}
		},
		"mqtt_sink": {
			"type": "cdpout",
			"config": {
				"transport_addr": "mqtt-tcp://predix-edge-broker",
				"node_ref": "osipi_data",
				"method": "pub",
				"log_level": "debug"			
}
		}
	},
	"mappings": {
		"osipi_input:output": "flat_to_timeseries:input",
		"flat_to_timeseries:output": "mqtt_sink:input"
	}
}