How to use Python Code in Node Red (Pythonshell Node)

preview_player
Показать описание
This video takes a look at two methods for running Python code in Node Red. The Exec Node, one of the core functions, and a new Pythonshell node. I demonstrate the limitations of the exec node with regards to speed and show how to use the pythonshell node.

For more information please visit Blog Page.

Video Content
0:00 Intro
0:35 Python code for vibration sensor
1:44 Using exec node to run python script
3:04 Exec node and compatibility issues
3:22 Editing Python script to work with exec node.
4:20 Speed limitation for exec node
5:55 Introduction to Pythonshell node
7:02 Using Pythonshell node
8:30 Using Pythonshell node (Note of caution)
Рекомендации по теме
Комментарии
Автор

First of all, thanks for content.

I have a Question

If a using a specific library on my python code, like pandas for example, the result on de node-red will be the same that I have when I Execute my python code on terminal? Its possible use a pythone file that use any library?

GustavoSilva-wxby
Автор

Hello Sir,
Is there any way to get an input from "text input" on Node red, send it as a variable value into my python code and execute ?
Thanks

Mab_G_Jud
Автор

Where i have to save the py file? i receving this message "pyfile not exist"

lucasc.
Автор

I used pythonshell but it keep telling me pyfile not exist ?

malekkharcha
visit shbcf.ru