I have been using node red for alot of things and just started using it to recieve data from torque. I don’t have it logging yet but it does accept the data.
You can copy and paste this into Node-Red
[
{
"id": "2ce0055.8743efa",
"type": "tab",
"label": "Torque",
"disabled": false,
"info": ""
},
{
"id": "67436221.b54c0c",
"type": "http in",
"z": "2ce0055.8743efa",
"name": "",
"url": "/torque",
"method": "get",
"upload": true,
"swaggerDoc": "",
"x": 130,
"y": 20,
"wires": [
[
"55284c4d.f61824",
"f98f22cc.807ba",
"8f00f43a.2c8718",
"557d7766.022168",
"33d571b3.db242e",
"69b56cf.77bc694",
"683933fa.d76f1c",
"ab2ff853.e8b808",
"c005b8b1.f06b98",
"96abaa53.c70988",
"ee5bc723.594bf8",
"dfdc4763.7a8fd8",
"cee9fa09.98b6d8"
]
]
},
{
"id": "55284c4d.f61824",
"type": "debug",
"z": "2ce0055.8743efa",
"name": "",
"active": false,
"console": "false",
"complete": "true",
"x": 970,
"y": 180,
"wires": []
},
{
"id": "8f00f43a.2c8718",
"type": "debug",
"z": "2ce0055.8743efa",
"name": "",
"active": false,
"console": "false",
"complete": "false",
"x": 990,
"y": 220,
"wires": []
},
{
"id": "f98f22cc.807ba",
"type": "http response",
"z": "2ce0055.8743efa",
"name": "",
"statusCode": "",
"headers": {
"OK!": ""
},
"x": 970,
"y": 140,
"wires": []
},
{
"id": "557d7766.022168",
"type": "change",
"z": "2ce0055.8743efa",
"name": "Barometer",
"rules": [
{
"t": "move",
"p": "payload.kff1270",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 640,
"y": 280,
"wires": [
[
"536ae3f0.1980dc"
]
]
},
{
"id": "3b30fefa.3f9012",
"type": "ui_gauge",
"z": "2ce0055.8743efa",
"name": "",
"group": "9b558fbc.438aa",
"order": 0,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "RPM",
"label": "RPM",
"format": "{{value}}",
"min": 0,
"max": "7000",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 970,
"y": 320,
"wires": []
},
{
"id": "33d571b3.db242e",
"type": "change",
"z": "2ce0055.8743efa",
"name": "RPM",
"rules": [
{
"t": "move",
"p": "payload.kc",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 320,
"wires": [
[
"3b30fefa.3f9012"
]
]
},
{
"id": "69b56cf.77bc694",
"type": "change",
"z": "2ce0055.8743efa",
"name": "Mass Air Flow Rate",
"rules": [
{
"t": "move",
"p": "payload.k10",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 670,
"y": 360,
"wires": [
[
"7ee21162.28cdb"
]
]
},
{
"id": "683933fa.d76f1c",
"type": "change",
"z": "2ce0055.8743efa",
"name": "Throttle Position",
"rules": [
{
"t": "move",
"p": "payload.k11",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 660,
"y": 400,
"wires": [
[
"3765c6b.fb70f3a"
]
]
},
{
"id": "ab2ff853.e8b808",
"type": "change",
"z": "2ce0055.8743efa",
"name": "Coolant Temp",
"rules": [
{
"t": "move",
"p": "payload.k5",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 650,
"y": 440,
"wires": [
[
"b0123228.4a063"
]
]
},
{
"id": "c005b8b1.f06b98",
"type": "change",
"z": "2ce0055.8743efa",
"name": "Volage",
"rules": [
{
"t": "move",
"p": "payload.kff1238",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 480,
"wires": [
[
"5b8bdb33.d96134"
]
]
},
{
"id": "96abaa53.c70988",
"type": "change",
"z": "2ce0055.8743efa",
"name": "Vacuum",
"rules": [
{
"t": "move",
"p": "payload.kff1202",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 640,
"y": 520,
"wires": [
[
"913a6311.540cd"
]
]
},
{
"id": "3765c6b.fb70f3a",
"type": "ui_gauge",
"z": "2ce0055.8743efa",
"name": "",
"group": "9b558fbc.438aa",
"order": 0,
"width": "3",
"height": "3",
"gtype": "donut",
"title": "Throttle Position",
"label": "%",
"format": "{{value}}",
"min": 0,
"max": "100",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 1000,
"y": 400,
"wires": []
},
{
"id": "ee5bc723.594bf8",
"type": "change",
"z": "2ce0055.8743efa",
"name": "Speed",
"rules": [
{
"t": "move",
"p": "payload.kd",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 560,
"wires": [
[
"c3863c64.b8c2d"
]
]
},
{
"id": "c3863c64.b8c2d",
"type": "ui_gauge",
"z": "2ce0055.8743efa",
"name": "",
"group": "ea9cdc42.4bbc8",
"order": 0,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "Speed",
"label": "MPH",
"format": "{{value}}",
"min": 0,
"max": "100",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 970,
"y": 560,
"wires": []
},
{
"id": "7ee21162.28cdb",
"type": "ui_gauge",
"z": "2ce0055.8743efa",
"name": "",
"group": "9b558fbc.438aa",
"order": 0,
"width": "2",
"height": "3",
"gtype": "wave",
"title": "Mass Air Flow",
"label": "g/s",
"format": "{{value}}",
"min": 0,
"max": "100",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 1000,
"y": 360,
"wires": []
},
{
"id": "536ae3f0.1980dc",
"type": "ui_gauge",
"z": "2ce0055.8743efa",
"name": "",
"group": "26a930d9.ff8c",
"order": 0,
"width": "3",
"height": "3",
"gtype": "gage",
"title": "Barometer",
"label": "units",
"format": "{{value}}",
"min": "800",
"max": "1100",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 980,
"y": 280,
"wires": []
},
{
"id": "dfdc4763.7a8fd8",
"type": "change",
"z": "2ce0055.8743efa",
"name": "Speed GPS",
"rules": [
{
"t": "move",
"p": "payload.kff1001",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 650,
"y": 600,
"wires": [
[
"535662ad.f1628c"
]
]
},
{
"id": "535662ad.f1628c",
"type": "ui_gauge",
"z": "2ce0055.8743efa",
"name": "",
"group": "26a930d9.ff8c",
"order": 0,
"width": "3",
"height": "3",
"gtype": "gage",
"title": "Speed GPS",
"label": "MPH",
"format": "{{value}}",
"min": 0,
"max": "100",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 990,
"y": 600,
"wires": []
},
{
"id": "5b8bdb33.d96134",
"type": "ui_gauge",
"z": "2ce0055.8743efa",
"name": "",
"group": "ea9cdc42.4bbc8",
"order": 0,
"width": "3",
"height": "3",
"gtype": "gage",
"title": "Voltage",
"label": "V",
"format": "{{value}}",
"min": "9",
"max": "15",
"colors": [
"#ff0000",
"#008000",
"#ff0000"
],
"seg1": "13",
"seg2": "14",
"x": 980,
"y": 480,
"wires": []
},
{
"id": "b0123228.4a063",
"type": "ui_gauge",
"z": "2ce0055.8743efa",
"name": "",
"group": "9b558fbc.438aa",
"order": 0,
"width": "3",
"height": "3",
"gtype": "gage",
"title": "Coolant Temp",
"label": "F",
"format": "{{value}}",
"min": 0,
"max": "250",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 990,
"y": 440,
"wires": []
},
{
"id": "913a6311.540cd",
"type": "ui_gauge",
"z": "2ce0055.8743efa",
"name": "",
"group": "9b558fbc.438aa",
"order": 0,
"width": "3",
"height": "3",
"gtype": "donut",
"title": "Vacuum",
"label": "",
"format": "{{value}}",
"min": "-20",
"max": "0",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 980,
"y": 520,
"wires": []
},
{
"id": "cee9fa09.98b6d8",
"type": "json",
"z": "2ce0055.8743efa",
"name": "",
"pretty": false,
"x": 313.3333333333333,
"y": 420.83333333333326,
"wires": [
[
"9e7f1c7c.ed768"
]
]
},
{
"id": "9e7f1c7c.ed768",
"type": "debug",
"z": "2ce0055.8743efa",
"name": "",
"active": true,
"console": "false",
"complete": "false",
"x": 418.33333333333326,
"y": 504.99999999999994,
"wires": []
},
{
"id": "9b558fbc.438aa",
"type": "ui_group",
"z": "",
"name": "Motor",
"tab": "ac99e377.fdb83",
"order": 1,
"disp": true,
"width": "6"
},
{
"id": "ea9cdc42.4bbc8",
"type": "ui_group",
"z": "",
"name": "Van",
"tab": "ac99e377.fdb83",
"order": 2,
"disp": true,
"width": "6"
},
{
"id": "26a930d9.ff8c",
"type": "ui_group",
"z": "",
"name": "Phone",
"tab": "ac99e377.fdb83",
"order": 3,
"disp": true,
"width": "6"
},
{
"id": "ac99e377.fdb83",
"type": "ui_tab",
"z": "",
"name": "Torque",
"icon": "car",
"order": 2
}
]
|