新的节点红色,只是第一次尝试这个节点。
[{"id":"2f6b5f38.045e2","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"4e1d163a.a3b598","type":"amazon s3 out","z":"2f6b5f38.045e2","aws":"","bucket":"testbucket","filename":"","localFilename":"local_file.txt","region":"us-east-1","name":"AWS S3","x":700,"y":380,"wires":[]},
{"id":"be311fd.6ce07e","type":"inject","z":"2f6b5f38.045e2","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":240,"y":440,"wires":[["f6cce006.47462"]]},
{"id":"f6cce006.47462","type":"change","z":"2f6b5f38.045e2","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"filename","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":480,"wires":[["4e1d163a.a3b598"]]}]
我希望将时间戳用作文件名,但似乎无法弄清楚如何使AWS节点将msg.filename
属性用作文件名。
根据文件“Amazon S3 out节点。将内容上载到Amazon S3 bucket。bucket名称可以在node bucket属性或msg.bucket属性中指定。Amazon S3上的文件名取自node filename属性或msg.filename属性。内容取自nodelocalFilename
属性和msg.localFilename
属性或消息。有效载荷
属性。"
任何帮助都将不胜感激。
我的问题是我传递了一个msg中的数字。文件名,而不是字符串。转换为字符串后,AWS节点即可工作。
看看代码,只要节点配置中的filename属性是空的,那么它应该为文件名使用msg.filename
。
如果在配置中包含文件名,则将始终使用该文件名。
Node-RED 是一种编程事件驱动应用程序的低代码方法。基于流的编程创建网络,使其能够可视化表示,从而使其成为一种更容易访问的编程方式。JavaScript 函数可以使用富文本编辑器构建,内置库允许访问有用的函数、模板或流以供重用。
DOM的概念 节点的概念 Node节点的属性 nodeName,nodeType ownerDocument,nextSibling,previousSibling,parentNode,parentElement textContent,nodeValue childNodes,firstNode,lastChild baseURI Node节点的方法 appendChild(),hasChil
Node-RED是一个轻量级的开源集成技术,用JavaScript编写。它使用图形流程来集成不同的节点,节点可以接收数据、转换数据和输出数据。 Node-RED通常用于快速建立物联网样式应用的原型,或将现有的互联网服务连接在一起。 您可以使用Hyperledger Composer Node-RED来: 提交交易 读取和更新资产和参与者 订阅时间 删除资产和参与者 Hyperledger Comp
Homebridge Automation powered by Node-RED The above Node-RED Flow, turns on my 'Outside Office' light when the powder room is turned on, and turns them both off after 10 seconds. Not practical but a g
Node RED join-wait This Node-RED module waits for incoming messages from different input paths to arrive within a fixed time window. Node-RED is a tool for wiring together hardware devices, APIs and o
kubernetes Node 节点包含如下组件: flanneld docker kubelet kube-proxy 使用的变量 本文档用到的变量定义如下: $ # 替换为 kubernetes master 集群任一机器 IP $ export MASTER_IP=10.64.3.7 $ export KUBE_APISERVER="https://${MASTER_IP}:6443" $