Sure, many thanks for help!
I found the flow on the web, as I didnt use the exec node before.
[
{
"id": "ddf1664c.ea95a8",
"type": "tab",
"label": "MQTT Humdity Flow",
"disabled": false,
"info": ""
},
{
"id": "a938202d.205da8",
"type": "exec",
"z": "ddf1664c.ea95a8",
"command": "python3 /home/pi/Pimoroni/bme680/examples/read-all.py",
"addpay": false,
"append": "",
"useSpawn": "false",
"timer": "",
"oldrc": false,
"name": "Sensor Script",
"x": 323.0000305175781,
"y": 87.99999237060547,
"wires": [
[
"22433620.cb3822",
"3c24d2a7.a12a86"
],
[],
[]
]
},
{
"id": "d4fe4f85.abf38",
"type": "inject",
"z": "ddf1664c.ea95a8",
"name": "Repeater",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": "",
"x": 91.5,
"y": 94.99999237060547,
"wires": [
[
"a938202d.205da8",
"2a2501dd.4dc7de"
]
]
},
{
"id": "22433620.cb3822",
"type": "function",
"z": "ddf1664c.ea95a8",
"name": "test",
"func": "var hum = {payload: {humidity: msg.payload}};\nreturn hum;",
"outputs": 1,
"noerr": 0,
"x": 512,
"y": 87.99999237060547,
"wires": [
[
"66851d0b.05ae74"
]
]
},
{
"id": "66851d0b.05ae74",
"type": "json",
"z": "ddf1664c.ea95a8",
"name": "JSON Parser",
"property": "payload",
"action": "",
"pretty": false,
"x": 689,
"y": 85.99999237060547,
"wires": [
[]
]
},
{
"id": "3c24d2a7.a12a86",
"type": "debug",
"z": "ddf1664c.ea95a8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 490.6166076660156,
"y": 158.95001220703125,
"wires": []
},
{
"id": "2a2501dd.4dc7de",
"type": "debug",
"z": "ddf1664c.ea95a8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 400.8500061035156,
"y": 233.85000610351562,
"wires": []
}
]