added a flow for 3d printer

This commit is contained in:
Juan Manuel Grados Luyando 2023-02-28 19:40:41 +01:00
parent 90b241c11b
commit a83cf87ef0
4 changed files with 183 additions and 3 deletions

View file

@ -419,7 +419,7 @@
"type": "function",
"z": "f6f2187d.f17ca8",
"name": "shelly2Influx",
"func": "return {\n payload: {\n power: Number(msg.payload.ENERGY.Power),\n volate: Number(msg.payload.ENERGY.Voltage),\n current: Number(msg.payload.ENERGY.Current)\n }\n};\n",
"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",
"outputs": 1,
"noerr": 0,
"initialize": "",
@ -434,6 +434,96 @@
]
]
},
{
"id": "de75dc47910e5a82",
"type": "mqtt in",
"z": "f6f2187d.f17ca8",
"name": "",
"topic": "microfactory/3dPrinter",
"qos": "2",
"datatype": "auto-detect",
"broker": "7ce136dbb8c897d1",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 180,
"y": 1260,
"wires": [
[
"78453032339fa301"
]
]
},
{
"id": "1f140270e13f73cd",
"type": "json",
"z": "f6f2187d.f17ca8",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 370,
"y": 1220,
"wires": [
[]
]
},
{
"id": "688eeb4c8835fc6e",
"type": "influxdb out",
"z": "f6f2187d.f17ca8",
"influxdb": "d61a7da6caeb26aa",
"name": "influx 3dPrinter",
"measurement": "FilamentSensor",
"precision": "",
"retentionPolicy": "",
"database": "database",
"precisionV18FluxV20": "ms",
"retentionPolicyV18Flux": "",
"org": "NPI",
"bucket": "3dPrinter",
"x": 780,
"y": 1220,
"wires": []
},
{
"id": "665f1b4136421405",
"type": "debug",
"z": "f6f2187d.f17ca8",
"name": "3dPrinter Sensor",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 790,
"y": 1320,
"wires": []
},
{
"id": "78453032339fa301",
"type": "function",
"z": "f6f2187d.f17ca8",
"name": "3dPrinter2Influx",
"func": "return {\n payload: {\n device: String(msg.payload.device),\n unit: String(msg.payload.unit),\n value: Number(msg.payload.value)\n }\n};",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 540,
"y": 1260,
"wires": [
[
"688eeb4c8835fc6e",
"665f1b4136421405"
]
]
},
{
"id": "e0977f2582bfaaa6",
"type": "mqtt in",

View file

@ -1,3 +1,3 @@
{
"$": "8a5830375d7cb047a920bc81b4cc476d+XU3NAfSPPxYBE1efxY1lIAusvuTCZCAU0damInvBBb4fzVvhMaUn60RLfr4AV7lMRCB2hbzc9MdqjzWd2JOC4ihNxhIKjYqZiqGAZ+dhJJ0U+FjxkCd"
"$": "61928af03edb50cc6aca62a484ad6ea92hejWh+gAvqCLSvWIF/BQNIS6vqKIgzteKjcP4UA1Ee/AWCUcFXPizdT6suUZ4Mf6vw8dbLcJnXduW+0c0f2dwGK5io0Z3ghS7rh4tA2XAgsyhMKA2DuI3z2Bl7O0znAZo390l6MK+btAysPNiWak4eScefUyhcZAmSYiuGo/A1OrlgYMe7gKPQYtwsSSVe07hO8W+uQBeoAC9JL4+CJeOwDOM70iz/kZdzfamdGY3K80iE3+GNwHmmP"
}

View file

@ -434,6 +434,96 @@
]
]
},
{
"id": "de75dc47910e5a82",
"type": "mqtt in",
"z": "f6f2187d.f17ca8",
"name": "",
"topic": "microfactory/3dPrinter",
"qos": "2",
"datatype": "auto-detect",
"broker": "7ce136dbb8c897d1",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 180,
"y": 1260,
"wires": [
[
"78453032339fa301"
]
]
},
{
"id": "1f140270e13f73cd",
"type": "json",
"z": "f6f2187d.f17ca8",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 370,
"y": 1220,
"wires": [
[]
]
},
{
"id": "688eeb4c8835fc6e",
"type": "influxdb out",
"z": "f6f2187d.f17ca8",
"influxdb": "d61a7da6caeb26aa",
"name": "influx 3dPrinter",
"measurement": "FilamentSensor",
"precision": "",
"retentionPolicy": "",
"database": "database",
"precisionV18FluxV20": "ms",
"retentionPolicyV18Flux": "",
"org": "NPI",
"bucket": "3dPrinter",
"x": 780,
"y": 1220,
"wires": []
},
{
"id": "665f1b4136421405",
"type": "debug",
"z": "f6f2187d.f17ca8",
"name": "3dPrinter Sensor",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 790,
"y": 1320,
"wires": []
},
{
"id": "78453032339fa301",
"type": "function",
"z": "f6f2187d.f17ca8",
"name": "3dPrinter2Influx",
"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": 540,
"y": 1260,
"wires": [
[
"688eeb4c8835fc6e",
"665f1b4136421405"
]
]
},
{
"id": "e0977f2582bfaaa6",
"type": "mqtt in",

View file

@ -1,3 +1,3 @@
{
"$": "61928af03edb50cc6aca62a484ad6ea92hejWh+gAvqCLSvWIF/BQNIS6vqKIgzteKjcP4UA1Ee/AWCUcFXPizdT6suUZ4Mf6vw8dbLcJnXduW+0c0f2dwGK5io0Z3ghS7rh4tA2XAgsyhMKA2DuI3z2Bl7O0znAZo390l6MK+btAysPNiWak4eScefUyhcZAmSYiuGo/A1OrlgYMe7gKPQYtwsSSVe07hO8W+uQBeoAC9JL4+CJeOwDOM70iz/kZdzfamdGY3K80iE3+GNwHmmP"
"$": "f90bdebf4eebd76ed8b765faa4745a6bNPfItZFH6XGwCaKTGi0QRModVxBQh5Q3Z1LC+QnRS6HM7Bg6y42/Ao76GBlr2lE2Lsn06LPguvMQBPFGnj4qKdPT49gT8xnI+ID70MV4W2aEMzpBkGOQ6A4Z2ASSoiNGiz2qI/F8N+ziC4KoDhftq3eL3WiTffEehR++ciW6vOV8Ji1Tmf6Hl1dznDDa1HCWKPpMbxD8gZYd8NznXfuEM9tINBSHCLL9U+y6vFQ2q8rCoMmKi3vjd+jh"
}