@hypericon/node-red-hypertable
Version:
Node-RED plugin to interact with Hypertable
219 lines • 5.39 kB
JSON
[
{
"id": "eeb495ff2b3991e2",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "954740feaee1b0b9",
"type": "comment",
"z": "eeb495ff2b3991e2",
"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": "aa0ce907672e593e",
"type": "comment",
"z": "eeb495ff2b3991e2",
"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": "4edab33ed93f7911",
"type": "comment",
"z": "eeb495ff2b3991e2",
"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": "0a8cafabe3a459c9",
"type": "comment",
"z": "eeb495ff2b3991e2",
"name": "4. Enter the Collection ID in the node/msg",
"info": "\nEnter the ID of the target Hypertable Collection in the properties of the node, and in the change node to set `msg.collectionId`\n",
"x": 260,
"y": 220,
"wires": []
},
{
"id": "ff4c480ec49b60d4",
"type": "read-collection",
"z": "eeb495ff2b3991e2",
"name": "*Set Collection ID*",
"connection": "",
"collectionId": "",
"x": 410,
"y": 360,
"wires": [
[
"5ecabbe7bddd0cbc"
]
]
},
{
"id": "2fcbc42fe192be5a",
"type": "inject",
"z": "eeb495ff2b3991e2",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 160,
"y": 360,
"wires": [
[
"ff4c480ec49b60d4"
]
]
},
{
"id": "5ecabbe7bddd0cbc",
"type": "debug",
"z": "eeb495ff2b3991e2",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "collection",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 680,
"y": 360,
"wires": []
},
{
"id": "5dcd6dd752aa66d0",
"type": "read-collection",
"z": "eeb495ff2b3991e2",
"name": "",
"connection": "",
"collectionId": "",
"x": 400,
"y": 560,
"wires": [
[
"44c1251daa1018a2"
]
]
},
{
"id": "a41544bf9e789827",
"type": "inject",
"z": "eeb495ff2b3991e2",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 160,
"y": 500,
"wires": [
[
"8132f2d11bb4e284"
]
]
},
{
"id": "44c1251daa1018a2",
"type": "debug",
"z": "eeb495ff2b3991e2",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "collection",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 680,
"y": 560,
"wires": []
},
{
"id": "e80a7f9a9a304a74",
"type": "comment",
"z": "eeb495ff2b3991e2",
"name": "Set Collection ID in node",
"info": "",
"x": 210,
"y": 320,
"wires": []
},
{
"id": "8ded56d0ff41253f",
"type": "comment",
"z": "eeb495ff2b3991e2",
"name": "Set Collection ID in msg",
"info": "",
"x": 200,
"y": 460,
"wires": []
},
{
"id": "8132f2d11bb4e284",
"type": "change",
"z": "eeb495ff2b3991e2",
"name": "*Set Collection ID*",
"rules": [
{
"t": "set",
"p": "collectionId",
"pt": "msg",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 410,
"y": 500,
"wires": [
[
"5dcd6dd752aa66d0"
]
]
}
]