RogerLM
RogerLM

Reputation: 35

unable to run python script with Node-red

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

Upvotes: 0

Views: 1005

Answers (1)

hardillb
hardillb

Reputation: 59608

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

Upvotes: 2

Related Questions