@inmation/node-red-contrib-inmation

1.5.3 • Public • Published

inmation header

inmation Node-RED Node

This Node-RED Node connects to inmation Core server via the new inmation Web API server.

Installation

To install inmation Node just change into your node-red user directory and install like so:

cd ~/.node-red/
npm install @inmation/node-red-contrib-inmation

Topics

Read an Item value property

  • Topic: read
  • Payload:
[ { "p": "/System/Core/TestItem" } ]

Write to an Item value property

  • Topic: write
  • Payload:
[ { "p": "/System/Core/TestItem", "v": 200 } ]

Read Historical Data

  • Topic: readhistoricaldata
  • Payload:
{
    "items":[ { "p": "/System/Core/TestItem", "aggregate": "AGG_TYPE_RAW" } ],
    "startTime": "2017-12-01T12:00:00.000Z",
    "endTime": "2017-12-01T12:05:00.000Z",
    "numberOfIntervals": 1
}
  • Payload with options:
{
    "items":[ { "p": "/System/Core/TestItem", "aggregate": "AGG_TYPE_RAW" } ],
    "startTime": "2017-12-01T12:00:00.000Z",
    "endTime": "2017-12-01T12:05:00.000Z",
    "numberOfIntervals": 1,
    "options": {
        "percentage_good": 100,
        "percentage_bad": 100,
        "treat_uncertain_as_bad": false,
        "slopped_extrapolation": false,
        "partial_interval_treatment": "UASTANDARD"
    }
}

Read Historical Data At Time

  • Topic: readhistoricaldataattime
  • Payload:
{
    "items":[ { "p": "/System/Core/TestItem" } ],
    "timestamp": "2017-12-01T12:00:00.000Z",
}

Read Raw Historical Data By Query

  • Topic: readrawhistoricaldatabyquery
  • Payload:
{
    "query": {
        "start_time": "2019-07-25T00:00:00.000Z",
        "end_time": "2019-07-26T00:00:10.000Z",
        "items": [
            {
                "p": "/System/Core/Examples/Demo Data/Process Data/DC4711"
            }
        ],
        "bounds": true,
        "fields": "ALL",
        "filter": [
            {
                "$match": {
                    "v": {
                        "$gte": 42
                    }
                },
                "$limit": 300
            }
        ]
    }
}

Execute Function

  • Topic: execfunction
  • Payload:
{
    "ctx": { "p": "/System/Core/TestFolder" },
    "lib": "my-library-name",
    "func": "calculate",
    "farg": { "a": 10, "b": 20 }
}

or

{
    "context": { "p": "/System/Core/TestFolder" },
    "libraryName": "my-library-name",
    "functionName": "calculate",
    "functionArg": { "a": 10, "b": 20 }
}

Subscribe to DataChanges

  • Topic: subscribe2dc
  • Payload:
[ { "p": "/System/Core/TestItem" } ]

Subscribe to ChildrenCountChanges

  • Topic: subscribe2ccc
  • Payload:
[ { "p": "/System/Core/TestItem" } ]

Subscribe to ConfigurationVersionChanges

  • Topic: subscribe2cvc
  • Payload:
[ { "p": "/System/Core/TestItem" } ]

Subscribe to UserStateChanges

  • Topic: subscribe2usc
  • Payload:
[ { "p": "/System/Core/TestItem" } ]

Run Script

  • Topic: runscript
  • Payload:
{
    "context": { "p": "/System/Core/TestItem" },
    "script": "return inmation.getself().ObjectName"
}

inmation

inmation is a vendor-independent industrial system-integration specialist. Dedicated to modern technologies such as OPC UA (Unified Architecture) and document-oriented schema-less repositories, inmation opens up new horizons for enterprise real-time data management.

More information on inmation.com

Package Sidebar

Install

npm i @inmation/node-red-contrib-inmation

Weekly Downloads

0

Version

1.5.3

License

MIT

Unpacked Size

29.9 kB

Total Files

6

Last publish

Collaborators

  • longmountain