The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Industrial IoT Open Source Tools and Libraries Share llms optimized content

Demo applications, libraries and SDKs as well as useful connectivity tools which are maintained and released as open source software.

TypeScript SDK - Overview

The library comes with the typescript SDK which can be used to access Insights Hub APIs.

It implements support for both frontend (browser e.g. angular, react...) and backend development in node.js while supporting different Insights Hub authentication types.

Frontend: - Browser (Session, Cookies)

Backend (node.js): - UserCredentials - AppCredentials - ServiceCredentials - Insights Hub Agents

The SDK implements the Clients for following APIs:

Platform Core APIs

NameSDK - ClientCommand
Identity Management✅✅
Resource Access Management1✅✅
Oauth Authorization✅✅
Tenant Management✅✅
Token Management✅✅
Message Broker2 (preview)✅✅
Usage Transparency✅

1 In the first stage of the availability Resource Access Management must be enabled for the tenant via Insights Hub support team.

2 Message Broker is only available on preview tenants

IoT and Storage

NameSDK - ClientCommand
IoT File✅✅
IoT Time Series✅✅
IoT TS Aggregates (v3, v4)✅✅
IoT TS Bulk✅✅
Integrated Data Lake✅✅

Connectivity

NameSDK - ClientCommand
Agent Management✅✅
MindConnect API✅✅
Commanding API (sync)✅✅
OPC UA PubSub✅

Advanced Services

NameSDK - ClientCommand
Asset Management✅✅
Event Management✅✅
Notification✅✅
WorkOrder Management✅✅
Visual Flow Creator✅✅

Analytics Services

NameSDK - ClientCommand
Anomaly Detection✅✅
Data Exchange✅✅
Event Analytics✅✅
Job Manager✅✅
KPI Calculation✅✅
Model Management✅✅
Signal Calculation✅✅
Signal Validation✅✅
Spectrum Analysis✅✅
Trend Prediction✅✅

MindConnect Open Edge

NameSDK - ClientCommand
Device Management✅✅
Device Status✅✅
Deployment Workflow✅✅
Device Configuration✅✅
Edge App Deployment✅✅
Edge App Instance Management✅✅
Firmware Deployment✅✅

Semantic Data Interconnect

NameSDK - ClientCommand
SDI Data Management✅✅
SDI Data Query✅✅
SDI Semantic Modelling✅✅

The example below shows how to use the SDK from browser:

// The example shows how to Get Assets from Insights Hub with custom AssetType
// using frontend authentication
// you can pass an instance an Authorizer
// (BrowserAuth, UserAuth, CredentialsAuth, TokenManagerAuth, MindConnectAgent)
// to use different authorization types in Insights Hub or implement the TokenRotation
// interface if you want to provide your own authorizer.
//
// The default constructor uses frontend authorization.

const sdk = new MindSphereSdk();
const am = sdk.GetAssetManagementClient();

const assets = await am.GetAssets({
    filter: JSON.stringify({
        typeId: {
            startsWith: `${tenant}`,
        },
    }),
});

// you will get fully typed assets in response

If an API is missing (and you would like to contribute a client for it), take a look at contributing to SDK.