0

I am new in node-red, I just tried to do a simple test before doing a bigger project. So I created the basic python script with only print "Hello world" on it. Then I use the "exec" node and inside the command I wrote python test.py then I connected the output of the node to the "Debug" node and finally "Deploy" it. Nothing happen inside the debug messages...

Someone knows why ?

thank you

6
  • Where did you put the python script (test.py)? Commented Nov 6, 2019 at 8:48
  • in a folder inside my desktop Commented Nov 6, 2019 at 8:54
  • So what makes you think that Node-RED knows to look in that folder? Commented Nov 6, 2019 at 8:54
  • Also what do you have before the exec node? if there is no input, then nothing will trigger it. Commented Nov 6, 2019 at 9:02
  • so I replace 'python test.py' by 'python /home/user/Desktop/NodeRedTest/test.py' but it does not work Commented Nov 6, 2019 at 9:02

1 Answer 1

2

First problem: You need to give the full path to the script you are trying to run.

Second problem with no input the exec node will never run. For the simple test you can add an inject node that will fire when you press the button on the left hand end of the node in the editor, or you can configure it to run once on startup/deploy or to fire at regular intervals.

I also suggest you read the Node-RED doc about creating your first flow

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

Comments

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.