Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在树莓派上运行 Node-RED。我想在我在同一个 rpi 上运行的 python 脚本的末尾触发一个流程。最容易触发的输入节点是什么?使用它的 python 代码示例是什么?我想传回一个字符串变量
最好是最简单的,那么http-in节点可能是最好的
并且使用这样的东西会起作用:
import urllib2 urllib2.urlopen("http://localhost:1880/start").read()
http-in 节点已配置为侦听/start的位置