Yes i do.
Gunner:
HMI file
I cannat upload a tft file here. Look like that is blocked.
Upload from the nodes
EDIT:
[
{
"id": "9f2e75f318e0db1f",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": ""
},
{
"id": "f439f64620f88998",
"type": "serial in",
"z": "9f2e75f318e0db1f",
"name": "Nextion",
"serial": "f527860f.a985e8",
"x": 790,
"y": 380,
"wires": [
[
"f2259c6fbec866b1",
"4deff35a28f1ce03"
]
]
},
{
"id": "94a2dac7d9f23039",
"type": "serial out",
"z": "9f2e75f318e0db1f",
"name": "NEXTION",
"serial": "f527860f.a985e8",
"x": 2500,
"y": 100,
"wires": []
},
{
"id": "0c779c63ceee7d51",
"type": "switch",
"z": "9f2e75f318e0db1f",
"name": "Which Button",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "2",
"vt": "str"
},
{
"t": "eq",
"v": "5",
"vt": "str"
},
{
"t": "eq",
"v": "6",
"vt": "str"
},
{
"t": "eq",
"v": "9",
"vt": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 4,
"x": 1380,
"y": 380,
"wires": [
[
"45470bcfb022c93a"
],
[
"ee791fc6b48d9a70",
"c7dae7fc1337a474"
],
[
"842caeb9f13ca686",
"3c462d2a75019956"
],
[]
],
"outputLabels": [
"Licht Links",
"Licht Rechts",
"Drucker Links",
""
]
},
{
"id": "842caeb9f13ca686",
"type": "debug",
"z": "9f2e75f318e0db1f",
"name": "2",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2330,
"y": 360,
"wires": []
},
{
"id": "e142724742466dbd",
"type": "rpi-gpio out",
"z": "9f2e75f318e0db1f",
"name": "PIN7",
"pin": "7",
"set": false,
"level": "1",
"freq": "",
"out": "out",
"x": 2330,
"y": 200,
"wires": []
},
{
"id": "772b8447c8b8a17f",
"type": "rpi-gpio out",
"z": "9f2e75f318e0db1f",
"name": "Gewindemodus",
"pin": "11",
"set": "",
"level": "0",
"freq": "",
"out": "out",
"x": 2360,
"y": 400,
"wires": []
},
{
"id": "e4489f852968afae",
"type": "comment",
"z": "9f2e75f318e0db1f",
"name": "Lampe ein",
"info": "",
"x": 2500,
"y": 200,
"wires": []
},
{
"id": "ee791fc6b48d9a70",
"type": "debug",
"z": "9f2e75f318e0db1f",
"name": "8",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2330,
"y": 260,
"wires": []
},
{
"id": "778f5ff619e9f46b",
"type": "rpi-gpio out",
"z": "9f2e75f318e0db1f",
"name": "Maschine an",
"pin": "37",
"set": "",
"level": "0",
"freq": "",
"out": "out",
"x": 2350,
"y": 300,
"wires": []
},
{
"id": "f7bd3ed22b4a5c0d",
"type": "comment",
"z": "9f2e75f318e0db1f",
"name": "Maschine AN",
"info": "nur ein Test",
"x": 2530,
"y": 300,
"wires": []
},
{
"id": "3afaec171c8666dd",
"type": "inject",
"z": "9f2e75f318e0db1f",
"name": "shutdown!",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "",
"topic": "",
"payloadType": "date",
"x": 1120,
"y": 760,
"wires": [
[
"ee6f6a6a85ee79a9"
]
]
},
{
"id": "ee6f6a6a85ee79a9",
"type": "exec",
"z": "9f2e75f318e0db1f",
"command": "sudo shutdown -h 0 #",
"addpay": "",
"append": "",
"useSpawn": "",
"timer": "",
"winHide": false,
"name": "turn off Pi",
"x": 1300,
"y": 760,
"wires": [
[],
[],
[]
]
},
{
"id": "3c0bbdb2ddb1129f",
"type": "inject",
"z": "9f2e75f318e0db1f",
"name": "neustart!",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": "",
"topic": "",
"payloadType": "date",
"x": 1120,
"y": 840,
"wires": [
[
"311ec29c7d00d7ab"
]
]
},
{
"id": "311ec29c7d00d7ab",
"type": "exec",
"z": "9f2e75f318e0db1f",
"command": "sudo shutdown -r 0 #",
"addpay": "",
"append": "",
"useSpawn": "",
"timer": "",
"winHide": false,
"name": "turn off Pi",
"x": 1300,
"y": 840,
"wires": [
[],
[],
[]
]
},
{
"id": "45470bcfb022c93a",
"type": "toggle",
"z": "9f2e75f318e0db1f",
"name": "",
"onOffTopic": "",
"onValue": "1",
"onType": "str",
"offValue": "0",
"offType": "str",
"toggleTopic": "",
"toggleValue": "2",
"toggleType": "str",
"passOnOff": "",
"x": 2170,
"y": 220,
"wires": [
[
"e142724742466dbd"
]
]
},
{
"id": "c7dae7fc1337a474",
"type": "toggle",
"z": "9f2e75f318e0db1f",
"name": "",
"onOffTopic": "",
"onValue": "1",
"onType": "str",
"offValue": "0",
"offType": "str",
"toggleTopic": "",
"toggleValue": "5",
"toggleType": "str",
"passOnOff": "",
"x": 2170,
"y": 320,
"wires": [
[
"778f5ff619e9f46b"
]
]
},
{
"id": "3c462d2a75019956",
"type": "toggle",
"z": "9f2e75f318e0db1f",
"name": "",
"onOffTopic": "",
"onValue": "1",
"onType": "str",
"offValue": "0",
"offType": "str",
"toggleTopic": "",
"toggleValue": "6",
"toggleType": "str",
"passOnOff": "",
"x": 2170,
"y": 400,
"wires": [
[
"772b8447c8b8a17f"
]
]
},
{
"id": "f2259c6fbec866b1",
"type": "function",
"z": "9f2e75f318e0db1f",
"name": "Extract Button ID",
"func": "msg.payload = String(msg.payload[2]);\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1070,
"y": 380,
"wires": [
[
"0c779c63ceee7d51"
]
]
},
{
"id": "4c1e56bac57b1c42",
"type": "debug",
"z": "9f2e75f318e0db1f",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 2510,
"y": 20,
"wires": []
},
{
"id": "d56fe51869f9e45a",
"type": "comment",
"z": "9f2e75f318e0db1f",
"name": "Gewindemodus",
"info": "nur ein Test",
"x": 2540,
"y": 400,
"wires": []
},
{
"id": "4deff35a28f1ce03",
"type": "debug",
"z": "9f2e75f318e0db1f",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1000,
"y": 340,
"wires": []
},
{
"id": "ff1ce9ad05f1a132",
"type": "inject",
"z": "9f2e75f318e0db1f",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payloadType": "date",
"x": 2140,
"y": 80,
"wires": [
[
"8850e0187eacc6d3"
]
]
},
{
"id": "8850e0187eacc6d3",
"type": "function",
"z": "9f2e75f318e0db1f",
"name": "",
"func": "msg.payload = 't0.txt=\"Hello\"';\nvar textBuf = Buffer.from(msg.payload, 'ascii');\nvar postFixBuf = new Buffer(\"FFFFFF\", \"hex\");\n\nmsg.payload = Buffer.concat([textBuf, postFixBuf]);\n\nreturn msg;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 2320,
"y": 80,
"wires": [
[
"4c1e56bac57b1c42",
"94a2dac7d9f23039"
]
]
},
{
"id": "ac0492e69b2f65f5",
"type": "inject",
"z": "9f2e75f318e0db1f",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payloadType": "date",
"x": 2150,
"y": 140,
"wires": [
[
"8850e0187eacc6d3"
]
]
},
{
"id": "f527860f.a985e8",
"type": "serial-port",
"serialport": "/dev/ttyS0",
"serialbaud": "9600",
"databits": "8",
"parity": "none",
"stopbits": "1",
"waitfor": "",
"newline": "5",
"bin": "bin",
"out": "interbyte",
"addchar": "false",
"responsetimeout": ""
}
]
Thanks for your help
Alex