[
{
"id": "b0422098a6b9a08d",
"type": "webhookrelay",
"z": "a1bcdc6a7a905fe6",
"buckets": "",
"x": 200,
"y": 60,
"wires": [
[
"ccdc1327defc8747"
]
]
},
{
"id": "ccdc1327defc8747",
"type": "json",
"z": "a1bcdc6a7a905fe6",
"name": "",
"property": "payload",
"action": "obj",
"pretty": false,
"x": 350,
"y": 60,
"wires": [
[
"0dce6426a3caa9bd"
]
]
},
{
"id": "0dce6426a3caa9bd",
"type": "change",
"z": "a1bcdc6a7a905fe6",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.body",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 500,
"y": 60,
"wires": [
[
"5f0738a9f4ed9865"
]
],
"info": "payload.body"
},
{
"id": "5f0738a9f4ed9865",
"type": "json",
"z": "a1bcdc6a7a905fe6",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 670,
"y": 60,
"wires": [
[
"bda5bf77f04efd85"
]
]
},
{
"id": "bda5bf77f04efd85",
"type": "change",
"z": "a1bcdc6a7a905fe6",
"name": "",
"rules": [
{
"t": "set",
"p": "fecha",
"pt": "msg",
"to": "payload.timestamp",
"tot": "msg"
},
{
"t": "set",
"p": "temperatura",
"pt": "msg",
"to": "payload.measurements[2].data",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 820,
"y": 60,
"wires": [
[
"5234163e24f2a616"
]
],
"info": "payload.body"
},
{
"id": "5234163e24f2a616",
"type": "function",
"z": "a1bcdc6a7a905fe6",
"name": "function 18",
"func": "let fecha=new Date(msg.fecha);\nlet milisegundos=fecha.getTime();\n\nvar chart = [{\n \"series\": [\"A\"],\n \"data\": [[{ \"x\":milisegundos, \"y\":msg.temperatura}]],\n \"labels\": [\"\"]\n}];\nmsg.payload = chart;\n\nreturn msg;\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1050,
"y": 60,
"wires": [
[
"2ba287094a879405"
]
]
},
{
"id": "2ba287094a879405",
"type": "ui_chart",
"z": "a1bcdc6a7a905fe6",
"name": "",
"group": "dad27409d00b75af",
"order": 8,
"width": 0,
"height": 0,
"label": "Prueba ",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": true,
"ymin": "10",
"ymax": "30",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "86400",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"className": "",
"x": 1440,
"y": 60,
"wires": [
[]
]
},
{
"id": "dad27409d00b75af",
"type": "ui_group",
"name": "Pruebas",
"tab": "f518b18327287f13",
"order": 3,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "f518b18327287f13",
"type": "ui_tab",
"name": "Tab inicial",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
The first node is called "Webhook relay"