@hypericon/node-red-hypertable
Version:
Node-RED plugin to interact with Hypertable
228 lines • 5.72 kB
JSON
[
{
"id": "0f583bc09870de22",
"type": "tab",
"label": "Read Record Example",
"disabled": false,
"info": "",
"env": []
},
{
"id": "d8a3629b941b412b",
"type": "comment",
"z": "0f583bc09870de22",
"name": "1. Create the Hypertable Project",
"info": "\nFirst create your Project in Hypertable so that Node-RED has a target for the request.\n",
"x": 230,
"y": 100,
"wires": []
},
{
"id": "d6a5e65f17f7a396",
"type": "comment",
"z": "0f583bc09870de22",
"name": "2. Create an API Key in Hypertable",
"info": "\nIn your Hypertable Project, create a new API key in the Project's settings.\n\nChoose an appropriate role for the key. For this example, the role must be at least \"read only\".\n",
"x": 240,
"y": 140,
"wires": []
},
{
"id": "e126d5fa9a417575",
"type": "comment",
"z": "0f583bc09870de22",
"name": "3. Configure the connection config node",
"info": "\nIn one of the \"read connection\" nodes, create a new \"hypertable connection\" config node. Complete the properties for this node from your Hypertable Project.\n",
"x": 250,
"y": 180,
"wires": []
},
{
"id": "7e5c66d898d482ea",
"type": "comment",
"z": "0f583bc09870de22",
"name": "4. Enter the IDs in the node/msg",
"info": "\nEnter the IDs of both the target Hypertable Collection and Record.\n\nSet these in the properties of the `read-record` node in the first example, and set the values of `msg.collectionId` and `msg.recordId` in the change node in the second example.\n",
"x": 230,
"y": 220,
"wires": []
},
{
"id": "4e8270ca8f9ddc69",
"type": "inject",
"z": "0f583bc09870de22",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 160,
"y": 360,
"wires": [
[
"a842319b6a87084a"
]
]
},
{
"id": "6d657a1acd2c3b70",
"type": "debug",
"z": "0f583bc09870de22",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "record",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 730,
"y": 360,
"wires": []
},
{
"id": "e6d1d086ee2871cc",
"type": "inject",
"z": "0f583bc09870de22",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 160,
"y": 500,
"wires": [
[
"2867b4bf0f5fb353"
]
]
},
{
"id": "d9fd7aa31fac56f1",
"type": "debug",
"z": "0f583bc09870de22",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "record",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 730,
"y": 560,
"wires": []
},
{
"id": "22afa209880aee02",
"type": "comment",
"z": "0f583bc09870de22",
"name": "Set IDs in node",
"info": "",
"x": 180,
"y": 320,
"wires": []
},
{
"id": "3f4f5a3e3cd7bba1",
"type": "comment",
"z": "0f583bc09870de22",
"name": "Set IDs in msg",
"info": "",
"x": 180,
"y": 460,
"wires": []
},
{
"id": "2867b4bf0f5fb353",
"type": "change",
"z": "0f583bc09870de22",
"name": "*Set Collection & Record IDs*",
"rules": [
{
"t": "set",
"p": "collectionId",
"pt": "msg",
"to": "",
"tot": "str"
},
{
"t": "set",
"p": "recordId",
"pt": "msg",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 450,
"y": 500,
"wires": [
[
"5bb8df5365292814"
]
]
},
{
"id": "a842319b6a87084a",
"type": "read-record",
"z": "0f583bc09870de22",
"name": "*Set Collection & Record IDs*",
"connection": "",
"collectionId": "",
"recordId": "",
"x": 450,
"y": 360,
"wires": [
[
"6d657a1acd2c3b70"
]
]
},
{
"id": "5bb8df5365292814",
"type": "read-record",
"z": "0f583bc09870de22",
"name": "",
"connection": "",
"collectionId": "",
"recordId": "",
"x": 390,
"y": 560,
"wires": [
[
"d9fd7aa31fac56f1"
]
]
}
]