NGSI Entity
This custom node is a simple node that allows to obtain NGSIv2 entity.
Properties
name
: a name for a node instanceContext Broker
: an endpoint of a context brokerServicePath
: FIWARE Service PathRepresentation
: normalized or keyValuesEntity type
: entity type to retrieveattributes
: list of attributes to retrieveDate Modified
: retrive attribute and metadata of dateModified
Inputs
Payload string or JSON Object
A msg.payload
should contain an entity Id to retrieves NGSI v2 entity.
urn:ngsi-ld:Building:store001
A msg.payload
should contain a condition to retrieves NGSI v2 entity.
{
"id": "urn:ngsi-ld:Building:store001",
"type": "Building",
"attrs": "humidity",
"keyValues": true,
"dateModified": false
}
Outputs
Payload JSON Object
A msg.payload
contains NGSIv2 entity.
Examples
Input 1
E1
Output 1
{
"id": "E1",
"type": "T",
"humidity": {
"type": "Number",
"value": 51,
"metadata": {}
},
"temperature": {
"type": "Number",
"value": 25,
"metadata": {}
}
}
Input 2
{
"id": "E1",
"type": "T",
"attrs": "humidity",
"keyValues": true
}
Output 2
{
"id": "E1",
"type": "T",
"humidity": 51
}