Changing filament mqtt topic and parsing

This commit is contained in:
Juan Manuel Grados Luyando 2023-03-02 14:04:47 +01:00
parent 9967a1f269
commit 8bec0b8e9f
1 changed files with 5 additions and 5 deletions

View File

@ -598,7 +598,7 @@
"type": "mqtt in", "type": "mqtt in",
"z": "325e309897bf4538", "z": "325e309897bf4538",
"name": "", "name": "",
"topic": "microfactory/3dprinter/filament", "topic": "microfactory/3dprinter",
"qos": "2", "qos": "2",
"datatype": "auto-detect", "datatype": "auto-detect",
"broker": "4cf36a44b74caee5", "broker": "4cf36a44b74caee5",
@ -606,7 +606,7 @@
"rap": true, "rap": true,
"rh": 0, "rh": 0,
"inputs": 0, "inputs": 0,
"x": 150, "x": 120,
"y": 120, "y": 120,
"wires": [ "wires": [
[ [
@ -1054,7 +1054,7 @@
"type": "mqtt in", "type": "mqtt in",
"z": "325e309897bf4538", "z": "325e309897bf4538",
"name": "", "name": "",
"topic": "microfactory/3dprinter/filament", "topic": "microfactory/3dprinter",
"qos": "2", "qos": "2",
"datatype": "auto-detect", "datatype": "auto-detect",
"broker": "4cf36a44b74caee5", "broker": "4cf36a44b74caee5",
@ -1062,7 +1062,7 @@
"rap": true, "rap": true,
"rh": 0, "rh": 0,
"inputs": 0, "inputs": 0,
"x": 150, "x": 120,
"y": 1780, "y": 1780,
"wires": [ "wires": [
[ [
@ -1426,7 +1426,7 @@
"type": "function", "type": "function",
"z": "325e309897bf4538", "z": "325e309897bf4538",
"name": "parse filament data", "name": "parse filament data",
"func": "return {\n payload: Number(msg.payload),\n topic: \"filament\"\n}", "func": "return {\n payload: Number(msg.payload.value),\n topic: \"filament\"\n}",
"outputs": 1, "outputs": 1,
"noerr": 0, "noerr": 0,
"initialize": "", "initialize": "",