如何在node-red中使用纯json创建网页

时间:2019-06-05 16:30:36

标签: html json http node-red

我正在尝试从HTML页面上的node-red的msg.variable中显示原始json数据,最好是每次需要时自动在外部网站上显示。

我已经尝试过在节点红色上使用post和get请求,但是阅读文档对我来说并不清楚。

这是我当前的流量:

I have a flow on node-red that starts from MQTT which provides a JSON that makes an INSERT into a database. Then just after it, it makes a SELECT returning the whole table as a JSON from the database and sending back to the MQTT.

我想创建一个在数据库中进行选择后发布纯json字符串的节点,并使其可以在Internet上使用,这可能是通过Portfowarding或使用自动托管json的服务实现的。

1 个答案:

答案 0 :(得分:0)

您可能正在搜索模板节点。请点击https://nodered.org/docs/user-guide/nodes

相关问题