I am able to start Node-Red when the Raspberry PI resets or on power up. How can the Python script start when node red is open with a manual inject to start the program. I am using a Raspberry PI to monitor sensors and need to protect for reboot or power loss. The program needs to AutoStart and start collecting data without any interaction. Any ideas?
But there is a node to automatically start external processes: node-red-node-daemon.
A Node-RED node that runs and monitors a long running system command.
Similar to the exec node - but this calls the command at start time and then pipes any input to the node to the STDIN of the running command, and feeds any STDOUT to the first output.
Useful for monitoring command line based processes.
Like any other node, you can trigger the daemon node with either a manual inject or an inject at startup (But beware of multiple copies of the process running each time you do a full refresh)