2

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?

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

1 Comment

Nice answer, @amadain!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.