PI WEB API CONNECTOR

Prerequisite

● A Braincube IoT Server
● The application PI Web API installed (see appsmanager)
● A PI Server available and working (with the WebAPI enable)

The node settings

Download the Pi Web Api node from Apps Manager

Once the application Pi Web Api installed you will find new nodes in your node palette:

Pi%20Web%20Api%201

The Pi Web Api - read is designed to help you read data from a Pi Web Api interface of Pi Osi Soft System.
You can easily drag and drop this node from the palette to your dataflow and start working with it. The first thing to do is to set up the node:

Configure your node:

Double click on the node and, in the “General configuration” tab, name your node with as you prefer and click on the edit button.

Pi%20Web%20Api%202

Fill and set all the parameters needed:

Pi%20Web%20Api%203

Name: The name of the Pi Web Api Interface
PI Address: The address of the interface
Authentication: Choose the type of authentication
Username: Fill the user
Password: Fill the password

Click on the UPDATE button

In the “Tags Selection” tab edit your tag list.
You can do it by importing a tag list (txt file) with the PI-WEB-ID and the respective Name of the Tag (use the TAB as a delimiter).
Check the Unicity of the tag list and press the Done button.

Pi%20Web%20Api%204

At the end of configuration type on the Deploy button in order do save and validate your configuration.

Example

You can find an example of how we implement a basic Pi Web Api extraction just below:

Pi%20Web%20Api%205

This flow is composed of :

inject: this node trigger the extraction, we chose to set up this node in "interval mode" to trigger the extraction automatically every XX seconds

Pi Web Api - read node: this node is the one we worked on during this article, it connects to an Pi Web Api server and extract some data

´braincubeTransfert: this node upload data to your Braincube Environment

Was this article helpful?

Powered by Zendesk