How-To Guides
Integration Guides

Aveva Data Hub Integration Guide

15min
review the following guide for setting up and integration between litmus edge and aveva data hub once the integration is set up, you can send and receive data through osisoft messaging format before you begin you must have access to aveva data hub and have the correct admin permissions step 1 add a device follow the steps to connect a device docid 3eyafppweuvmblcey17sq the device will be used to store tags that will be eventually used to create outbound topics in the connector make sure to select the enable data store checkbox step 2 add tags after connecting the device in litmus edge, you can add tags docid 8se7z3pmrfwl1nmzcwalx to the device create tags that you want to use to create outbound topics for the connector step 3 create client in aveva data hub you will need to create a client credentials client and do the following set the role to tenant administrator copy the client secret for use later see the aveva data hub documentation get started with client credentials clients to learn more step 4 add type in aveva data hub add a type in aveva data hub to define the schema of the data coming from litmus edge this allows aveva data hub to identify the payload and associate events with streams of data when you add the type, do the following select standard type enter values for id , name , and description add the following properties key id name base type select checkbox timestamp timestamp int64 select checkbox tagname tagname string select checkbox devicename devicename string success success boolean datatype datatype string value value string deviceid deviceid string description description string registerid registerid string see the aveva data hub documentation add a type to learn more step 5 add stream in aveva data hub after adding the type, add a stream that will index data based on the properties of the type you created previously when you create the stream, select the type you created in step 2 see the aveva data hub documentation manage streams to learn more step 6 add the aveva data hub connector follow the steps to add a connector docid\ ogw7fkqbwidbabn4wl5rr and select the aveva data hub provider configure the following parameters name enter a name for the connector description (optional) enter a description endpoint enter the appropriate regional endpoint (u s west, north europe, australia east), which can be found in aveva data hub by navigating to security > clients > client > connection information > regional endpoints u s west https //uswe datahub connect aveva com/ north europe https //euno datahub connect aveva com/ australia east https //auea datahub connect aveva com/ client id enter your aveva data hub client id, which can be found by navigating to security > clients > client > details > client id client secret enter your aveva data hub client secret, which can be copied when creating a client in step 1 if you need to create a new secret, navigate to security > clients > client > secrets tenant id enter your aveva data hub tenant id you can find it by navigating to security > client > details stream id enter the stream id you created in step 3 you can find it by navigating to data management namespace enter the namespace of the default sds stream name you can find it in the stream details throttling limit the maximum number of messages per second to be processed the default value is zero, which means that there is no limit persistent storage when enabled, this will cause messages to undergo a store and forward procedure messages will be stored within litmus edge when cloud providers are online queue mode select the queue mode as lifo (last in first out) or fifo (first in first out) selecting lifo means that the last data entry is processed first, and selecting fifo means the first data entry is processed first step 7 enable the connector after adding the connector, click the toggle in the connector tile to enable it if you see a failed status, you can review the manage connectors docid 3u7jzldinehy8shvifd d and relevant error messages after adding the connector in litmus edge, you have the option of viewing the data flowing through the connector in aveva data hub or litmus edge view data in aveva data hub you can view the stream data in aveva data hub create outbound topics for connector you will need to create outbound topics for the connector from the tags created in step 2 if there any existing inbound topics already created for the connector, disable them before creating the outbound topics to create outbound topics click the connector tile the connector dashboard appears click the topics tab click the import from devicehub tags icon the devicehub import dialog box appears select all the tags to import and click import after adding all required topics, navigate to the integration overview page and ensure the connector is not disabled and still shows a connected status enable topics ensure the topics you imported are enabled by returning to the topics tab and clicking the enable all topics icon view stream data in aveva data hub you can now view the data from the devicehub tag(s) in aveva data hub when you configure the stream data view, select get range values from the query type drop down list see the aveva data hub documentation view stream data to learn more view data in litmus edge you have the option of adding inbound topics in the aveva data hub connector, so that you can view data in the litmus edge flows manager create inbound topic for connector you will use the stream id from aveva data hub to create the inbound topic if there any existing outbound topics already created for the connector, disable them before creating the inbound topic to create the inbound topic click the connector tile the connector dashboard appears click the topics tab click the add a new subscription icon configure the topic data direction select remote to local inbound local data topic (optional) paste the stream id value for the local data topic name a prefix will be automatically added to the name remote data topic copy the stream id you created in aveva data hub and paste it here description (optional) enter a description for the topic enable click the toggle to enable the topic click ok after adding all required topics, navigate to the integration overview page and ensure the connector is not disabled and still shows a connected status copy inbound topic name from the topics tab for the connector, copy the local topic name for the new topic and refer to it when creating the flow create flow you can now create the flow that will display the data from the connector to create the flow navigate to flows manager for a flows manager, click the go to flow definition icon the flow canvas opens in a new browser tab on the flow canvas, drag the datahub subscribe node and debug node onto the canvas then, connect the two nodes double click the datahub subscribe node the edit datahub subscribe node dialog box appears in the topic field, paste the inbound topic name you previously copied (remote data topic) if needed, configure the datahub subscribe connection see the step 3 configure connector nodes section in create a flow docid\ veyyte7xdcangglzbqya0 to learn more optionally, add a name for the node click done , and then click deploy expand the message window beneath the flow to view debug messages click the debug icon confirm that messages are displaying in the message window