Iam trying now to use the described way in the document.
As soon as it comes to the software it is difficult for me because I have little knowledge of programming. Therefore, I had the hope that it is somehow possible with nodered.
If the board has a python library then it may well be that the best way to access it from node-red is via the python library, so get that going first then ask again and someone will help you get it from there into node-red, probably via MQTT.
You could run that in an Exec node, set to Output while the command is running and you should get the values appearing in messages on the output. I suggest amending the python so it only sends the number though, otherwise you will have to strip off the extra bits in node-red. In the command use the full path to python (probably /usr/bin/python) and also the full path to your script. I think you also need to tell python to use unbuffered mode, which means including -u in the command.
Unfortunately, I have not been able to do much lately, but I am not getting anywhere. Could you describe your execution in more detail? Because the Python programming does not work in Node Red. Means I send the data via MQTT and take it back up in Node Red and work with the exec Node?
Thank you
Get the python program running in node-red. You have not said what the problem is.
Run it as a separate process, outside of node-red, communicating with node-red via MQTT. Then you do not need an exec node at all. See this for an excellent introduction to MQTT MQTT Essentials - All Core Concepts Explained
I tried it first simply with the python function node. I suspect that this do not has access to the pyhton library i installed?
To be honest i dont knoe how to handle the exec node. It would be great if it could work without MQTT. Could you give me a short example with the exec node?
Initially all you should have to do is to put the command you run from the command line into an exec node, but specify the full path the the python command and also the full path to the python file. Add debug nodes on all outputs of the exec node, give them names so you can tell which output is which, and set them Output Complete Message and see what happens. Maybe a good idea to initially modify the python to just run once rather than looping.
However, it really would be better to use MQTT, you will not regret the few hours needed to understand and use MQTT. Particularly if you intend to keep using node-red.