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

Опубликовано: 05 Октябрь 2024
на канале: IOT Connectivity Simplified
12,603
111

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)