node-red 流程的导入导出

流程的导入导出

流程的导出

选中所要导出的流程,点击右上角三条杠按钮

有两个选项,导出到剪贴板和库

1. 导出到剪贴板

导出到剪贴板可以复制,粘贴到任何地方

[{"id":"898828bc.89b418","type":"inject","z":"6c70a17b.e110f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":300,"wires":[["1e951d4f.b4d6a3"]]},{"id":"1e951d4f.b4d6a3","type":"file","z":"6c70a17b.e110f","name":"save","filename":"/data/testtimestamp.txt","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":450,"y":300,"wires":[["c27669f0.bef7e8"]]},{"id":"c27669f0.bef7e8","type":"debug","z":"6c70a17b.e110f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":610,"y":300,"wires":[]}]

2. 导出到库

导出到库是保存成有个json文件

windows下路径一般是:C:\Users\Administrator.node-red\lib\flows

docker路径:容器内部 /data/lib/flows 目录下, 如果把/data目录挂载出来的话,保存在挂载的相应目录

流程的导入

这里介绍剪贴板如何导入,库的导入方法类似,复制上面的字符串,选择导入——剪贴板, 粘贴,此时会有一个流程随着你的鼠标移动,选好位置,单击安放,OK

猜你喜欢

转载自www.cnblogs.com/zhzhlong/p/11505411.html