Darshi Patel
Darshi Patel

Reputation: 21

How to call the python library as an external script in Node-RED

I am using virtual cloud from iotify.io and using execute node. I am not able to call a python script. How to run a python script in Node-RED?

Upvotes: 2

Views: 1691

Answers (1)

amadain
amadain

Reputation: 2836

I have no idea about iotify.io but if you are on a Pi as your tags suggest, i.e. NodeRed is running on the Pi, you can have something like this in the exec node: /usr/bin/python /home/pi/HelloWorld.py. If NodeRed is not running on the Pi though, the exec will execute where it is actually running so it won't find that file. You would need the script on the server where NodeRed is running. HTH Maeve

enter image description here

Upvotes: 3

Related Questions