2023-02-07 16:55:21 +01:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": "f6f2187d.f17ca8",
|
|
|
|
"type": "tab",
|
|
|
|
"label": "MQTT2Influxdb",
|
|
|
|
"disabled": false,
|
|
|
|
"info": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ae14dbbaafe62be6",
|
|
|
|
"type": "tab",
|
|
|
|
"label": "CSV2Influxdb",
|
|
|
|
"disabled": false,
|
|
|
|
"info": "",
|
|
|
|
"env": []
|
|
|
|
},
|
2023-02-22 17:26:41 +01:00
|
|
|
{
|
|
|
|
"id": "d0f6fc20cc752ed0",
|
|
|
|
"type": "tab",
|
|
|
|
"label": "Debug Dashboard",
|
|
|
|
"disabled": false,
|
|
|
|
"info": ""
|
|
|
|
},
|
2023-03-01 19:00:40 +01:00
|
|
|
{
|
|
|
|
"id": "325e309897bf4538",
|
|
|
|
"type": "tab",
|
|
|
|
"label": "3dprinter",
|
|
|
|
"disabled": false,
|
|
|
|
"info": "",
|
|
|
|
"env": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "47e5443dc1c29bcd",
|
|
|
|
"type": "tab",
|
|
|
|
"label": "laser cutter",
|
|
|
|
"disabled": false,
|
|
|
|
"info": "",
|
|
|
|
"env": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "8ef0902d5920bef2",
|
|
|
|
"type": "tab",
|
|
|
|
"label": "cnc",
|
|
|
|
"disabled": false,
|
|
|
|
"info": "",
|
|
|
|
"env": []
|
|
|
|
},
|
2023-03-01 21:54:01 +01:00
|
|
|
{
|
|
|
|
"id": "306896b1c1761662",
|
|
|
|
"type": "tab",
|
|
|
|
"label": "Test Watts to KWh",
|
|
|
|
"disabled": false,
|
|
|
|
"info": "",
|
|
|
|
"env": []
|
|
|
|
},
|
2023-02-22 17:26:41 +01:00
|
|
|
{
|
|
|
|
"id": "7ce136dbb8c897d1",
|
|
|
|
"type": "mqtt-broker",
|
2023-03-01 19:00:40 +01:00
|
|
|
"name": "pi-mqtt-server:1833",
|
|
|
|
"broker": "pi-mqtt-server",
|
2023-02-22 17:26:41 +01:00
|
|
|
"port": "1883",
|
|
|
|
"clientid": "",
|
|
|
|
"autoConnect": true,
|
|
|
|
"usetls": false,
|
|
|
|
"protocolVersion": "4",
|
|
|
|
"keepalive": "60",
|
|
|
|
"cleansession": true,
|
|
|
|
"birthTopic": "",
|
|
|
|
"birthQos": "0",
|
2023-03-01 19:00:40 +01:00
|
|
|
"birthRetain": "false",
|
2023-02-22 17:26:41 +01:00
|
|
|
"birthPayload": "",
|
|
|
|
"birthMsg": {},
|
|
|
|
"closeTopic": "",
|
|
|
|
"closeQos": "0",
|
2023-03-01 19:00:40 +01:00
|
|
|
"closeRetain": "false",
|
2023-02-22 17:26:41 +01:00
|
|
|
"closePayload": "",
|
|
|
|
"closeMsg": {},
|
|
|
|
"willTopic": "",
|
|
|
|
"willQos": "0",
|
2023-03-01 19:00:40 +01:00
|
|
|
"willRetain": "false",
|
2023-02-22 17:26:41 +01:00
|
|
|
"willPayload": "",
|
|
|
|
"willMsg": {},
|
|
|
|
"userProps": "",
|
|
|
|
"sessionExpiry": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "368e029bdaefea73",
|
|
|
|
"type": "ui_group",
|
|
|
|
"name": "Power",
|
|
|
|
"tab": "8eef9f1fd7446608",
|
|
|
|
"order": 1,
|
|
|
|
"disp": true,
|
|
|
|
"width": "6",
|
|
|
|
"collapse": false,
|
|
|
|
"className": ""
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "8eef9f1fd7446608",
|
|
|
|
"type": "ui_tab",
|
|
|
|
"name": "Powermonitor",
|
|
|
|
"icon": "dashboard",
|
|
|
|
"order": 1,
|
|
|
|
"disabled": false,
|
|
|
|
"hidden": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "90bc7a058a6ccbd7",
|
|
|
|
"type": "ui_base",
|
|
|
|
"theme": {
|
|
|
|
"name": "theme-light",
|
|
|
|
"lightTheme": {
|
|
|
|
"default": "#0094CE",
|
|
|
|
"baseColor": "#0094CE",
|
|
|
|
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
|
|
|
|
"edited": true,
|
|
|
|
"reset": false
|
|
|
|
},
|
|
|
|
"darkTheme": {
|
|
|
|
"default": "#097479",
|
|
|
|
"baseColor": "#097479",
|
|
|
|
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"customTheme": {
|
|
|
|
"name": "Untitled Theme 1",
|
|
|
|
"default": "#4B7930",
|
|
|
|
"baseColor": "#4B7930",
|
|
|
|
"baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
|
|
|
|
},
|
|
|
|
"themeState": {
|
|
|
|
"base-color": {
|
|
|
|
"default": "#0094CE",
|
|
|
|
"value": "#0094CE",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"page-titlebar-backgroundColor": {
|
|
|
|
"value": "#0094CE",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"page-backgroundColor": {
|
|
|
|
"value": "#fafafa",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"page-sidebar-backgroundColor": {
|
|
|
|
"value": "#ffffff",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"group-textColor": {
|
|
|
|
"value": "#1bbfff",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"group-borderColor": {
|
|
|
|
"value": "#ffffff",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"group-backgroundColor": {
|
|
|
|
"value": "#ffffff",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"widget-textColor": {
|
|
|
|
"value": "#111111",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"widget-backgroundColor": {
|
|
|
|
"value": "#0094ce",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"widget-borderColor": {
|
|
|
|
"value": "#ffffff",
|
|
|
|
"edited": false
|
|
|
|
},
|
|
|
|
"base-font": {
|
|
|
|
"value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"angularTheme": {
|
|
|
|
"primary": "indigo",
|
|
|
|
"accents": "blue",
|
|
|
|
"warn": "red",
|
|
|
|
"background": "grey",
|
|
|
|
"palette": "light"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"site": {
|
|
|
|
"name": "Node-RED Dashboard",
|
|
|
|
"hideToolbar": "false",
|
|
|
|
"allowSwipe": "false",
|
|
|
|
"lockMenu": "false",
|
|
|
|
"allowTempTheme": "true",
|
|
|
|
"dateFormat": "DD.MM.YYYY",
|
|
|
|
"sizes": {
|
|
|
|
"sx": 48,
|
|
|
|
"sy": 48,
|
|
|
|
"gx": 6,
|
|
|
|
"gy": 6,
|
|
|
|
"cx": 6,
|
|
|
|
"cy": 6,
|
|
|
|
"px": 0,
|
|
|
|
"py": 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2023-02-23 16:31:52 +01:00
|
|
|
{
|
|
|
|
"id": "eeb221fb.ab27f",
|
|
|
|
"type": "influxdb",
|
|
|
|
"hostname": "127.0.0.1",
|
|
|
|
"port": "8086",
|
|
|
|
"protocol": "http",
|
|
|
|
"database": "test",
|
|
|
|
"name": "test",
|
|
|
|
"usetls": true,
|
|
|
|
"tls": "d50d0c9f.31e858",
|
|
|
|
"influxdbVersion": "1.x",
|
|
|
|
"url": "http://localhost:8086",
|
|
|
|
"rejectUnauthorized": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d50d0c9f.31e858",
|
|
|
|
"type": "tls-config",
|
|
|
|
"name": "",
|
|
|
|
"cert": "",
|
|
|
|
"key": "",
|
|
|
|
"ca": "",
|
|
|
|
"certname": "",
|
|
|
|
"keyname": "",
|
|
|
|
"caname": "",
|
|
|
|
"servername": "",
|
|
|
|
"verifyservercert": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d61a7da6caeb26aa",
|
|
|
|
"type": "influxdb",
|
|
|
|
"hostname": "influxdb",
|
|
|
|
"port": "8086",
|
|
|
|
"protocol": "http",
|
|
|
|
"database": "database",
|
|
|
|
"name": "influx",
|
|
|
|
"usetls": false,
|
|
|
|
"tls": "d50d0c9f.31e858",
|
|
|
|
"influxdbVersion": "2.0",
|
2023-02-23 16:50:38 +01:00
|
|
|
"url": "http://influxdb:8086",
|
2023-02-23 16:31:52 +01:00
|
|
|
"rejectUnauthorized": true
|
|
|
|
},
|
2023-03-01 19:00:40 +01:00
|
|
|
{
|
|
|
|
"id": "4cf36a44b74caee5",
|
|
|
|
"type": "mqtt-broker",
|
|
|
|
"name": "mosquitto",
|
|
|
|
"broker": "mosquitto",
|
|
|
|
"port": "1883",
|
|
|
|
"clientid": "",
|
|
|
|
"autoConnect": true,
|
|
|
|
"usetls": false,
|
|
|
|
"protocolVersion": "4",
|
|
|
|
"keepalive": "60",
|
|
|
|
"cleansession": true,
|
|
|
|
"birthTopic": "",
|
|
|
|
"birthQos": "0",
|
|
|
|
"birthRetain": "false",
|
|
|
|
"birthPayload": "",
|
|
|
|
"birthMsg": {},
|
|
|
|
"closeTopic": "",
|
|
|
|
"closeQos": "0",
|
|
|
|
"closeRetain": "false",
|
|
|
|
"closePayload": "",
|
|
|
|
"closeMsg": {},
|
|
|
|
"willTopic": "",
|
|
|
|
"willQos": "0",
|
|
|
|
"willRetain": "false",
|
|
|
|
"willPayload": "",
|
|
|
|
"willMsg": {},
|
|
|
|
"userProps": "",
|
|
|
|
"sessionExpiry": ""
|
|
|
|
},
|
2023-02-23 16:31:52 +01:00
|
|
|
{
|
|
|
|
"id": "00a750cdfb54579e",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"name": "",
|
|
|
|
"topic": "/iot-platform/energy-monitor/test-device/watt",
|
|
|
|
"qos": "1",
|
|
|
|
"datatype": "auto-detect",
|
2023-03-01 21:54:01 +01:00
|
|
|
"broker": "4cf36a44b74caee5",
|
2023-02-23 16:31:52 +01:00
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 270,
|
|
|
|
"y": 480,
|
|
|
|
"wires": [
|
|
|
|
[
|
2023-02-23 16:50:38 +01:00
|
|
|
"16687c90623bdb9b"
|
2023-02-23 16:31:52 +01:00
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "7e53d20583f56487",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
|
|
|
"name": "Influx watt",
|
2023-02-23 16:50:38 +01:00
|
|
|
"measurement": "msg",
|
2023-02-23 16:31:52 +01:00
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
2023-02-23 16:50:38 +01:00
|
|
|
"org": "Curious Community Labs",
|
2023-02-23 16:31:52 +01:00
|
|
|
"bucket": "test",
|
2023-02-23 16:50:38 +01:00
|
|
|
"x": 810,
|
|
|
|
"y": 500,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "16687c90623bdb9b",
|
|
|
|
"type": "function",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"name": "toNumber",
|
|
|
|
"func": "\nmsg.payload = Number(msg.payload)\nreturn msg;",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
|
|
|
"x": 540,
|
2023-02-23 16:31:52 +01:00
|
|
|
"y": 480,
|
2023-02-23 16:50:38 +01:00
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"7e53d20583f56487",
|
|
|
|
"499e0f3651d818db"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "499e0f3651d818db",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
2023-02-26 18:28:15 +01:00
|
|
|
"name": "consumption",
|
2023-02-23 16:50:38 +01:00
|
|
|
"active": true,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
2023-02-26 18:28:15 +01:00
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
2023-02-23 16:50:38 +01:00
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
2023-02-26 18:28:15 +01:00
|
|
|
"x": 810,
|
2023-02-23 16:50:38 +01:00
|
|
|
"y": 420,
|
2023-02-23 16:31:52 +01:00
|
|
|
"wires": []
|
|
|
|
},
|
2023-02-26 18:28:15 +01:00
|
|
|
{
|
|
|
|
"id": "b14166f65d5aec75",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"name": "",
|
|
|
|
"topic": "tele/tasmota_A4D1F3/SENSOR",
|
|
|
|
"qos": "1",
|
|
|
|
"datatype": "auto-detect",
|
2023-03-01 21:54:01 +01:00
|
|
|
"broker": "4cf36a44b74caee5",
|
2023-02-26 18:28:15 +01:00
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 210,
|
|
|
|
"y": 720,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"29cd45a4f1feb505"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "23c62c30ebabca6e",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
|
|
|
"name": "Influx plant sensor",
|
|
|
|
"measurement": "msg",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "plant",
|
|
|
|
"x": 790,
|
|
|
|
"y": 640,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e3742f5060cf6cb7",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"name": "debug 1",
|
|
|
|
"active": true,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 760,
|
|
|
|
"y": 760,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "29cd45a4f1feb505",
|
|
|
|
"type": "function",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
2023-02-27 17:01:27 +01:00
|
|
|
"name": "plant2Influx",
|
2023-02-26 18:28:15 +01:00
|
|
|
"func": "var newMsg = {\n payload: {\n temperature: Number(msg.payload.DHT11.Temperature),\n humidity: Number(msg.payload.DHT11.Humidity)\n }\n};\nreturn newMsg;",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-02-27 17:01:27 +01:00
|
|
|
"x": 530,
|
2023-02-26 18:28:15 +01:00
|
|
|
"y": 640,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"23c62c30ebabca6e",
|
|
|
|
"e3742f5060cf6cb7"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
2023-02-27 17:01:27 +01:00
|
|
|
{
|
|
|
|
"id": "f21213aec2f647ff",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"name": "",
|
|
|
|
"topic": "tele/tasmota_891E97/SENSOR",
|
|
|
|
"qos": "1",
|
|
|
|
"datatype": "auto-detect",
|
2023-03-01 21:54:01 +01:00
|
|
|
"broker": "4cf36a44b74caee5",
|
2023-02-27 17:01:27 +01:00
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 190,
|
|
|
|
"y": 1000,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"5e4f2b3e1acad45b"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "26b455c1bd337375",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
|
|
|
"name": "Influx Shelly device",
|
|
|
|
"measurement": "msg",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "shelly",
|
|
|
|
"x": 770,
|
|
|
|
"y": 920,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "96eaf14353a89e9c",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"name": "shelly",
|
|
|
|
"active": true,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 730,
|
|
|
|
"y": 1040,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "5e4f2b3e1acad45b",
|
|
|
|
"type": "function",
|
|
|
|
"z": "f6f2187d.f17ca8",
|
|
|
|
"name": "shelly2Influx",
|
2023-02-27 17:21:01 +01:00
|
|
|
"func": "return {\n payload: {\n power: Number(msg.payload.ENERGY.Power),\n voltage: Number(msg.payload.ENERGY.Voltage),\n current: Number(msg.payload.ENERGY.Current)\n }\n};\n",
|
2023-02-27 17:01:27 +01:00
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
|
|
|
"x": 490,
|
|
|
|
"y": 1000,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"26b455c1bd337375",
|
|
|
|
"96eaf14353a89e9c"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
2023-02-22 17:26:41 +01:00
|
|
|
{
|
|
|
|
"id": "e0977f2582bfaaa6",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "d0f6fc20cc752ed0",
|
|
|
|
"name": "",
|
|
|
|
"topic": "/iot-platform/energy-monitor/test-device/watt",
|
|
|
|
"qos": "1",
|
|
|
|
"datatype": "auto-detect",
|
2023-03-01 21:54:01 +01:00
|
|
|
"broker": "4cf36a44b74caee5",
|
2023-02-22 17:26:41 +01:00
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 330,
|
|
|
|
"y": 300,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"af39dce845afb447",
|
|
|
|
"73b0f02f5524fc38"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "af39dce845afb447",
|
|
|
|
"type": "ui_gauge",
|
|
|
|
"z": "d0f6fc20cc752ed0",
|
|
|
|
"name": "",
|
|
|
|
"group": "368e029bdaefea73",
|
|
|
|
"order": 0,
|
|
|
|
"width": 0,
|
|
|
|
"height": 0,
|
|
|
|
"gtype": "gage",
|
|
|
|
"title": "Power ",
|
|
|
|
"label": "W",
|
|
|
|
"format": "{{value}}",
|
|
|
|
"min": 0,
|
|
|
|
"max": "4000",
|
|
|
|
"colors": [
|
|
|
|
"#00b500",
|
|
|
|
"#e6e600",
|
|
|
|
"#ca3838"
|
|
|
|
],
|
|
|
|
"seg1": "",
|
|
|
|
"seg2": "",
|
|
|
|
"diff": false,
|
|
|
|
"className": "",
|
|
|
|
"x": 690,
|
|
|
|
"y": 300,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "73b0f02f5524fc38",
|
|
|
|
"type": "ui_chart",
|
|
|
|
"z": "d0f6fc20cc752ed0",
|
|
|
|
"name": "",
|
|
|
|
"group": "368e029bdaefea73",
|
|
|
|
"order": 1,
|
|
|
|
"width": 0,
|
|
|
|
"height": 0,
|
|
|
|
"label": "Chart",
|
|
|
|
"chartType": "line",
|
|
|
|
"legend": "false",
|
|
|
|
"xformat": "HH:mm:ss",
|
|
|
|
"interpolate": "linear",
|
|
|
|
"nodata": "",
|
|
|
|
"dot": false,
|
|
|
|
"ymin": "",
|
|
|
|
"ymax": "",
|
|
|
|
"removeOlder": 1,
|
|
|
|
"removeOlderPoints": "",
|
|
|
|
"removeOlderUnit": "3600",
|
|
|
|
"cutout": 0,
|
|
|
|
"useOneColor": false,
|
|
|
|
"useUTC": false,
|
|
|
|
"colors": [
|
|
|
|
"#1f77b4",
|
|
|
|
"#aec7e8",
|
|
|
|
"#ff7f0e",
|
|
|
|
"#2ca02c",
|
|
|
|
"#98df8a",
|
|
|
|
"#d62728",
|
|
|
|
"#ff9896",
|
|
|
|
"#9467bd",
|
|
|
|
"#c5b0d5"
|
|
|
|
],
|
|
|
|
"outputs": 1,
|
|
|
|
"useDifferentColor": false,
|
|
|
|
"className": "",
|
|
|
|
"x": 690,
|
|
|
|
"y": 340,
|
|
|
|
"wires": [
|
|
|
|
[]
|
|
|
|
]
|
2023-03-01 19:00:40 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ab06ffb0bf2c56e8",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "microfactory/3dprinter/filament",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "4cf36a44b74caee5",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 150,
|
|
|
|
"y": 120,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"b0d392d2c63876e6"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "4becd7ada513bdcf",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "filament sensor",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 720,
|
|
|
|
"y": 180,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b0d392d2c63876e6",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse filament data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: {\n device: String(msg.payload.device),\n unit: String(msg.payload.unit),\n measure: Number(msg.payload.value)\n }\n};",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 410,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 120,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"4becd7ada513bdcf",
|
|
|
|
"f0a128bf29194ea6"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "f0a128bf29194ea6",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "filament2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "filament",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "3dprinter",
|
|
|
|
"x": 700,
|
|
|
|
"y": 60,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "5743e72dc31c53a8",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/3dprinter/power",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 140,
|
|
|
|
"y": 380,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"833743b62b5687d6"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "833743b62b5687d6",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse power data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: Number(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 410,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 380,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"e2da2b347453dd67",
|
|
|
|
"2bbfb79be4639a0f"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e2da2b347453dd67",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "power",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 670,
|
|
|
|
"y": 420,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2bbfb79be4639a0f",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "power2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "power",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "3dprinter",
|
|
|
|
"x": 690,
|
|
|
|
"y": 340,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "45612fd7f9c352cd",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/3dprinter/state",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 130,
|
|
|
|
"y": 580,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"da214da48c4af7a9"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "da214da48c4af7a9",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse state data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 400,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 580,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"b905735dc618a8a0",
|
|
|
|
"de6344746014f314"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b905735dc618a8a0",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "state",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 670,
|
|
|
|
"y": 620,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "de6344746014f314",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "state2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "state",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "3dprinter",
|
|
|
|
"x": 690,
|
|
|
|
"y": 540,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "043e7748ef5e677b",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/3dprinter/filename",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 140,
|
|
|
|
"y": 800,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"a2b0ef42bca5e9f1"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "a2b0ef42bca5e9f1",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse filename data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 410,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 800,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"04b4d32bae0f2348",
|
|
|
|
"8d1f5be333d2d226"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "04b4d32bae0f2348",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "filename",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 680,
|
|
|
|
"y": 840,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "8d1f5be333d2d226",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "filename2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "fileaname",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "3dprinter",
|
|
|
|
"x": 700,
|
|
|
|
"y": 760,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "65bf19a4f55aee7e",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/3dprinter/starttime",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 130,
|
|
|
|
"y": 1000,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"1d33bc1b547f5ce2"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "1d33bc1b547f5ce2",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse start time data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 400,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 1000,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"6af55efed77b7ef4",
|
|
|
|
"af07e620b26d2106"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "6af55efed77b7ef4",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "starttime",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 660,
|
|
|
|
"y": 1040,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "af07e620b26d2106",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "starttime2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "starttime",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "3dprinter",
|
|
|
|
"x": 680,
|
|
|
|
"y": 960,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "957acd380de62057",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/3dprinter/endtime",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 120,
|
|
|
|
"y": 1200,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"048a2e5ff076bae4"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "048a2e5ff076bae4",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse end time data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 400,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 1200,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"2dc5b48d55a82a7c",
|
|
|
|
"ee288ff508fa00f2"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2dc5b48d55a82a7c",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "endtime",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 660,
|
|
|
|
"y": 1240,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ee288ff508fa00f2",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "endtime2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "starttime",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "3dprinter",
|
|
|
|
"x": 680,
|
|
|
|
"y": 1160,
|
|
|
|
"wires": []
|
|
|
|
},
|
2023-03-01 21:54:01 +01:00
|
|
|
{
|
|
|
|
"id": "f721f6ca3b0cecf9",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "microfactory/3dprinter/filament",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "4cf36a44b74caee5",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 130,
|
|
|
|
"y": 1360,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"fd226380c8ce5db6"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "fd226380c8ce5db6",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "parse filament data",
|
|
|
|
"func": "return {\n payload: {\n device: String(msg.payload.device),\n unit: String(msg.payload.unit),\n measure: Number(msg.payload.value)\n }\n};",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
|
|
|
"x": 410,
|
|
|
|
"y": 1360,
|
|
|
|
"wires": [
|
|
|
|
[]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "de4f15d4a930ac7c",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/3dprinter/filename",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 120,
|
|
|
|
"y": 1440,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"8009b4490856d02b"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "8009b4490856d02b",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "parse filename data",
|
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
|
|
|
"x": 410,
|
|
|
|
"y": 1440,
|
|
|
|
"wires": [
|
|
|
|
[]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "4d79d002fc073730",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/3dprinter/starttime",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 130,
|
|
|
|
"y": 1400,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"68b1314794d5f138"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "68b1314794d5f138",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "starttime message trigger",
|
|
|
|
"func": "return 1;",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
|
|
|
"x": 390,
|
|
|
|
"y": 1400,
|
|
|
|
"wires": [
|
|
|
|
[]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "a5836d9b547ecc51",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/3dprinter/endtime",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 120,
|
|
|
|
"y": 1480,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"36054fb13964cc2c"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "36054fb13964cc2c",
|
|
|
|
"type": "function",
|
|
|
|
"z": "325e309897bf4538",
|
|
|
|
"name": "endtime message trigger",
|
|
|
|
"func": "return 1;",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
|
|
|
"x": 390,
|
|
|
|
"y": 1480,
|
|
|
|
"wires": [
|
|
|
|
[]
|
|
|
|
]
|
|
|
|
},
|
2023-03-01 19:00:40 +01:00
|
|
|
{
|
|
|
|
"id": "03218742c3ad8813",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/lasercutter/power",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 160,
|
|
|
|
"y": 100,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"d5c6cec404621985"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d5c6cec404621985",
|
|
|
|
"type": "function",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse power data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: Number(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 430,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 100,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"bc5a407d180795d6",
|
|
|
|
"717f97209a08d9e6"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "bc5a407d180795d6",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "power",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 690,
|
|
|
|
"y": 140,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "717f97209a08d9e6",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "power2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "power",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "lasercutter",
|
|
|
|
"x": 710,
|
|
|
|
"y": 60,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "de46b19aa31d7651",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/lasercutter/state",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 150,
|
|
|
|
"y": 300,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"c744b426dfa65eb5"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "c744b426dfa65eb5",
|
|
|
|
"type": "function",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse state data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 420,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 300,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"efd7719d7decb1ea",
|
|
|
|
"2b6011429c5db2cf"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "efd7719d7decb1ea",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "state",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 690,
|
|
|
|
"y": 340,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2b6011429c5db2cf",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "state2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "state",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "lasercutter",
|
|
|
|
"x": 710,
|
|
|
|
"y": 260,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "8526861fd9b04a1e",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/lasercutter/filename",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 160,
|
|
|
|
"y": 520,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"608cda03a9c0f11c"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "608cda03a9c0f11c",
|
|
|
|
"type": "function",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse filename data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 430,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 520,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"338d4cf095415f71",
|
|
|
|
"6a44d6248d307f2f"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "338d4cf095415f71",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "filename",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 700,
|
|
|
|
"y": 560,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "6a44d6248d307f2f",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "filename2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "fileaname",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "lasercutter",
|
|
|
|
"x": 720,
|
|
|
|
"y": 480,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "04a28afa6d1e805e",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/lasercutter/starttime",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 150,
|
|
|
|
"y": 720,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"fced75dd9147f098"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "fced75dd9147f098",
|
|
|
|
"type": "function",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse start time data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 420,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 720,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"77a78efc551054de",
|
|
|
|
"e8414361ec62c0fd"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "77a78efc551054de",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "starttime",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 680,
|
|
|
|
"y": 760,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e8414361ec62c0fd",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "starttime2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "starttime",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "lasercutter",
|
|
|
|
"x": 700,
|
|
|
|
"y": 680,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "3090b2bebdaf9dc4",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/lasercutter/endtime",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 140,
|
|
|
|
"y": 920,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"1c4d7a829c5238f5"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "1c4d7a829c5238f5",
|
|
|
|
"type": "function",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse end time data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 420,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 920,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"b44d4302a407dd2b",
|
|
|
|
"dbfb1873d5556ab7"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b44d4302a407dd2b",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"name": "endtime",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 680,
|
|
|
|
"y": 960,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "dbfb1873d5556ab7",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "47e5443dc1c29bcd",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "endtime2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "starttime",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "lasercutter",
|
|
|
|
"x": 700,
|
|
|
|
"y": 880,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "638c6ded649c614b",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/cnc/power",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 160,
|
|
|
|
"y": 100,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"10cf598593d1c733"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "10cf598593d1c733",
|
|
|
|
"type": "function",
|
|
|
|
"z": "8ef0902d5920bef2",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse power data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: Number(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 430,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 100,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"c7fb8cedc139159b",
|
|
|
|
"0786982790db5744"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "c7fb8cedc139159b",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "power",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 690,
|
|
|
|
"y": 140,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "0786982790db5744",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "power2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "power",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "cnc",
|
|
|
|
"x": 710,
|
|
|
|
"y": 60,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "98b5ad128b01848f",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/cnc/state",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 150,
|
|
|
|
"y": 300,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"53e884adebc7c2b6"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "53e884adebc7c2b6",
|
|
|
|
"type": "function",
|
|
|
|
"z": "8ef0902d5920bef2",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse state data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 420,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 300,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"9e773dd4015689eb",
|
|
|
|
"ef7d6e2d40f1aa5f"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "9e773dd4015689eb",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "state",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 690,
|
|
|
|
"y": 340,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "ef7d6e2d40f1aa5f",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "state2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "state",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "cnc",
|
|
|
|
"x": 710,
|
|
|
|
"y": 260,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "7bd4b1807e47ee1d",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/cnc/filename",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 160,
|
|
|
|
"y": 520,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"cb768f2f0da63c93"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "cb768f2f0da63c93",
|
|
|
|
"type": "function",
|
|
|
|
"z": "8ef0902d5920bef2",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse filename data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 430,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 520,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"cb4c266a29ef1440",
|
|
|
|
"1cc4882458d1f319"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "cb4c266a29ef1440",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "filename",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 700,
|
|
|
|
"y": 560,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "1cc4882458d1f319",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "filename2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "fileaname",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "cnc",
|
|
|
|
"x": 720,
|
|
|
|
"y": 480,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "885cd93aa8f7ef38",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/cnc/starttime",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 150,
|
|
|
|
"y": 720,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"2257476829ab9742"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2257476829ab9742",
|
|
|
|
"type": "function",
|
|
|
|
"z": "8ef0902d5920bef2",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse start time data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 420,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 720,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"217def6e60f47b93",
|
|
|
|
"6d5919e96c3906fd"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "217def6e60f47b93",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "starttime",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 680,
|
|
|
|
"y": 760,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "6d5919e96c3906fd",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "starttime2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "starttime",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "cnc",
|
|
|
|
"x": 700,
|
|
|
|
"y": 680,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "2293ee44337863a9",
|
|
|
|
"type": "mqtt in",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "",
|
|
|
|
"topic": "inmachines/cnc/endtime",
|
|
|
|
"qos": "2",
|
|
|
|
"datatype": "auto-detect",
|
|
|
|
"broker": "7ce136dbb8c897d1",
|
|
|
|
"nl": false,
|
|
|
|
"rap": true,
|
|
|
|
"rh": 0,
|
|
|
|
"inputs": 0,
|
|
|
|
"x": 140,
|
|
|
|
"y": 920,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"8e5574ad90cc3b10"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "8e5574ad90cc3b10",
|
|
|
|
"type": "function",
|
|
|
|
"z": "8ef0902d5920bef2",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "parse end time data",
|
2023-03-01 19:00:40 +01:00
|
|
|
"func": "return {\n payload: String(msg.payload)\n}",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
2023-03-01 19:36:59 +01:00
|
|
|
"x": 420,
|
2023-03-01 19:00:40 +01:00
|
|
|
"y": 920,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"25d21239196d7faa",
|
|
|
|
"28113e349797c645"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "25d21239196d7faa",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"name": "endtime",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 680,
|
|
|
|
"y": 960,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "28113e349797c645",
|
|
|
|
"type": "influxdb out",
|
|
|
|
"z": "8ef0902d5920bef2",
|
|
|
|
"influxdb": "d61a7da6caeb26aa",
|
2023-03-01 19:36:59 +01:00
|
|
|
"name": "endtime2Influx",
|
2023-03-01 19:00:40 +01:00
|
|
|
"measurement": "starttime",
|
|
|
|
"precision": "",
|
|
|
|
"retentionPolicy": "",
|
|
|
|
"database": "database",
|
|
|
|
"precisionV18FluxV20": "ms",
|
|
|
|
"retentionPolicyV18Flux": "",
|
|
|
|
"org": "Curious Community Labs",
|
|
|
|
"bucket": "cnc",
|
|
|
|
"x": 700,
|
|
|
|
"y": 880,
|
|
|
|
"wires": []
|
2023-03-01 21:54:01 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "d62baedc.ded46",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"name": "",
|
|
|
|
"active": false,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "payload",
|
|
|
|
"targetType": "msg",
|
|
|
|
"statusVal": "",
|
|
|
|
"statusType": "auto",
|
|
|
|
"x": 690,
|
|
|
|
"y": 120,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "74280b50.f704a4",
|
|
|
|
"type": "inject",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"name": "1 kW feed",
|
|
|
|
"props": [
|
|
|
|
{
|
|
|
|
"p": "payload"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"p": "topic",
|
|
|
|
"vt": "str"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"repeat": "10",
|
|
|
|
"crontab": "",
|
|
|
|
"once": false,
|
|
|
|
"onceDelay": 0.1,
|
|
|
|
"topic": "",
|
|
|
|
"payload": "1000",
|
|
|
|
"payloadType": "str",
|
|
|
|
"x": 370,
|
|
|
|
"y": 120,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"5eb66b22.1a4de4"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "5eb66b22.1a4de4",
|
|
|
|
"type": "watt2kwh",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"format": "kwh",
|
|
|
|
"maximum": "5",
|
|
|
|
"maximumunit": "mins",
|
|
|
|
"name": "",
|
|
|
|
"x": 530,
|
|
|
|
"y": 120,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"d62baedc.ded46"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "0a53eaae9809ca5d",
|
|
|
|
"type": "inject",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"name": "1 kW feed",
|
|
|
|
"props": [
|
|
|
|
{
|
|
|
|
"p": "payload"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"p": "topic",
|
|
|
|
"vt": "str"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"repeat": "",
|
|
|
|
"crontab": "",
|
|
|
|
"once": false,
|
|
|
|
"onceDelay": 0.1,
|
|
|
|
"topic": "",
|
|
|
|
"payload": "100",
|
|
|
|
"payloadType": "str",
|
|
|
|
"x": 360,
|
|
|
|
"y": 340,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"b8a15b474b58d57e"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "b8a15b474b58d57e",
|
|
|
|
"type": "watt2kwh",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"format": "kwh",
|
|
|
|
"maximum": "5",
|
|
|
|
"maximumunit": "mins",
|
|
|
|
"name": "energy",
|
|
|
|
"x": 510,
|
|
|
|
"y": 340,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"49376315951ce5fa"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "49376315951ce5fa",
|
|
|
|
"type": "function",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"name": "Store kwh",
|
|
|
|
"func": "\nif (msg.topic == \"starttime\"){\n flow.set(\"energyVal\", 0);\n flow.set(\"starttime\", String(msg.payload));\n}\nelse if (msg.topic == \"filename\"){\n flow.set(\"filename\", msg.payload);\n}\nelse if (msg.topic == \"energy\"){\n var savedVal = flow.get(\"energyVal\")||0;\n savedVal += Number(msg.payload);\n flow.set(\"energyVal\", savedVal);\n}\nelse if (msg.topic == \"endtime\") {\n return {\n payload: {\n filename: String(flow.get(\"filename\")),\n totalEnergy: Number(flow.get(\"energyVal\")),\n starttime: String(flow.get(\"starttime\")),\n endtime: String(msg.payload)\n }\n };\n}\n\n\n\n\n// var inputVal = msg.payload;\n// return {\n// payload: Number(inputVal)\n// }\n// if (inputVal == \"reset\"){\n// flow.set(\"energyVal\",0); \n// } \n// else {\n// var savedVal = flow.get('energyVal')||0;\n// savedVal += inputVal;\n// flow.set(\"energyVal\",savedVal);\n// msg.payload = savedVal;\n// return msg;\n// }",
|
|
|
|
"outputs": 1,
|
|
|
|
"noerr": 0,
|
|
|
|
"initialize": "",
|
|
|
|
"finalize": "",
|
|
|
|
"libs": [],
|
|
|
|
"x": 680,
|
|
|
|
"y": 300,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"429b6abaf0a24b24"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "429b6abaf0a24b24",
|
|
|
|
"type": "debug",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"name": "",
|
|
|
|
"active": true,
|
|
|
|
"tosidebar": true,
|
|
|
|
"console": false,
|
|
|
|
"tostatus": false,
|
|
|
|
"complete": "false",
|
|
|
|
"x": 870,
|
|
|
|
"y": 340,
|
|
|
|
"wires": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "a22c25030b9db89c",
|
|
|
|
"type": "inject",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"name": "starttime",
|
|
|
|
"props": [
|
|
|
|
{
|
|
|
|
"p": "payload"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"repeat": "",
|
|
|
|
"crontab": "",
|
|
|
|
"once": false,
|
|
|
|
"onceDelay": 0.1,
|
|
|
|
"topic": "",
|
|
|
|
"payload": "",
|
|
|
|
"payloadType": "date",
|
|
|
|
"x": 360,
|
|
|
|
"y": 220,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"49376315951ce5fa"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "205d111a44376ad3",
|
|
|
|
"type": "inject",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"name": "endtime",
|
|
|
|
"props": [
|
|
|
|
{
|
|
|
|
"p": "payload"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"repeat": "",
|
|
|
|
"crontab": "",
|
|
|
|
"once": false,
|
|
|
|
"onceDelay": 0.1,
|
|
|
|
"topic": "",
|
|
|
|
"payload": "",
|
|
|
|
"payloadType": "date",
|
|
|
|
"x": 360,
|
|
|
|
"y": 260,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"49376315951ce5fa"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "e467f8636f87a598",
|
|
|
|
"type": "inject",
|
|
|
|
"z": "306896b1c1761662",
|
|
|
|
"name": "filename",
|
|
|
|
"props": [
|
|
|
|
{
|
|
|
|
"p": "payload"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"repeat": "",
|
|
|
|
"crontab": "",
|
|
|
|
"once": false,
|
|
|
|
"onceDelay": 0.1,
|
|
|
|
"topic": "",
|
|
|
|
"payload": "test.gcode",
|
|
|
|
"payloadType": "str",
|
|
|
|
"x": 360,
|
|
|
|
"y": 300,
|
|
|
|
"wires": [
|
|
|
|
[
|
|
|
|
"49376315951ce5fa"
|
|
|
|
]
|
|
|
|
]
|
2023-02-07 16:55:21 +01:00
|
|
|
}
|
2023-02-22 17:26:41 +01:00
|
|
|
]
|