Hello,
Is there a simple manner two combines two flows.
I have flow A and flow B
How to combine this to C as a combination of A and B?
Dick
If you mean you have flow A on tab 1 and flow B on tab 2, just copy one of the flows and paste it on the other tab then delete the other tab.
If you mean somehtnig else, please give more detail on where tehy are located i.e. are they on different computers, the same computer but different NR projects etc
thanks zenofmud,
flow A = the sensordata from some of my own wx-interfaces (temp-hum- etc) on an arduino
flow B = is the data from different sensordate through the house with a rflink .
I would like those two working flows on ONE dashboard.
Dick
So are you really asking ‘how do I put UI elements from two different flows on the same dashboard’?
Please provide an export of the flows
In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```
)
```
code goes here
```
You can edit and correct your post by clicking the pencil icon.
See this post for more details - How to share code or flow json
I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
This are the two flows
A
[{"id":"66438235.d8767c","type":"tab","label":"p1-arduino","disabled":false=
,"info":""},{"id":"b1dfabab.fc3268","type":"serial in","z":"66438235.d8767c=
","name":"wxsens","serial":"8d61a9e8.199668","x":130,"y":1100,"wires":[["6e=
dccb03.763a14","f4c474d7.81e728","ed476bdc.5df7a8","5987efcb.c778c","14618e=
d0.f58dd1","53a9fd46.afd0a4","9f5e3ed9.f0d31","20b9a981.199a76","15be8f64.f=
7bb11"]]},{"id":"6edccb03.763a14","type":"debug","z":"66438235.d8767c","nam=
e":"hum-temp-hic-CO-dauw-luchtdruk-temperatuur","active":false,"tosidebar":=
true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg"=
,"statusVal":"payload","statusType":"auto","x":250,"y":1300,"wires":[]},{"i=
d":"f4c474d7.81e728","type":"ui_text","z":"66438235.d8767c","group":"77508a=
d6.7f4da4","order":0,"width":"6","height":"1","name":"","label":"arduino-gi=
ga5","format":"{{msg.payload}}","layout":"row-left","x":140,"y":1040,"wires=
":[]},{"id":"15be8f64.f7bb11","type":"function","z":"66438235.d8767c","name=
":"hum","func":"var hum1=3D msg.payload[0];\nvar hum2=3D msg.payload[1];\n\=
n\n\nvar result =3D (hum1*10)+ (hum2*1); \n\n\nvar result1 =3D {payload:res=
ult};\nreturn[result1];\n","outputs":1,"noerr":0,"initialize":"","finalize"=
:"","libs":[],"x":390,"y":960,"wires":[["b7a1f9e3.0ee098","b4c30c2e.0394"]]=
},{"id":"b7a1f9e3.0ee098","type":"debug","z":"66438235.d8767c","name":"","a=
ctive":false,"tosidebar":true,"console":true,"tostatus":true,"complete":"pa=
yload","targetType":"msg","statusVal":"payload","statusType":"auto","x":560=
,"y":960,"wires":[]},{"id":"b4c30c2e.0394","type":"ui_gauge","z":"66438235.=
d8767c","name":"","group":"23f031b4.5eeece","order":2,"width":"3","height":=
"3","gtype":"gage","title":"","label":"%","format":"{{payload}}","min":0,"m=
ax":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":=
730,"y":960,"wires":[]},{"id":"ed476bdc.5df7a8","type":"function","z":"6643=
8235.d8767c","name":"temp","func":"var ttem1=3D msg.payload[3];\nvar ttem=
2=3D msg.payload[4];\n\n\n\nvar result =3D ( ttem1*10)+ ( ttem2*1); \n\n\nv=
ar result1 =3D {payload:result};\nreturn[result1];","outputs":1,"noerr":0,"=
initialize":"","finalize":"","libs":[],"x":390,"y":1020,"wires":[["73de1055=
=2E40d8a","8c710426.43f0e8"]]},{"id":"73de1055.40d8a","type":"debug","z":"6=
6438235.d8767c","name":"","active":false,"tosidebar":true,"console":true,"t=
ostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload"=
,"statusType":"auto","x":560,"y":1020,"wires":[]},{"id":"8c710426.43f0e8","=
type":"ui_gauge","z":"66438235.d8767c","name":"","group":"46b77824.e91ab8",=
"order":1,"width":"3","height":"3","gtype":"gage","title":"","label":"=C2=
=B0C","format":"{{payload}}","min":0,"max":"50","colors":["#00b500","#e6e60=
0","#ca3838"],"seg1":"20","seg2":"25","x":730,"y":1020,"wires":[]},{"id":"1=
60681d4.3dce1e","type":"ui_text","z":"66438235.d8767c","group":"8d505bd0.a0=
f188","order":1,"width":"3","height":"1","name":"","label":"hitte-index","f=
ormat":"{{msg.payload}}","layout":"row-spread","x":670,"y":1080,"wires":[]}=
,{"id":"aa11b061.22dfa","type":"ui_gauge","z":"66438235.d8767c","name":"","=
group":"8d505bd0.a0f188","order":2,"width":"3","height":"3","gtype":"gage",=
"title":"gauge","label":"units","format":"{{payload}}","min":"10","max":"10=
0","colors":["#00b500","#e6e600","#ca3838"],"seg1":"50","seg2":"75","x":810=
,"y":1080,"wires":[]},{"id":"5987efcb.c778c","type":"function","z":"6643823=
5.d8767c","name":"hic","func":"var hic1=3D msg.payload[6];\nvar hic2=3D m=
sg.payload[7];\n\n\n\nvar result =3D ( hic1*10)+ ( hic2*1); \n\n\nvar resul=
t1 =3D {payload:result};\nreturn[result1];","outputs":1,"noerr":0,"initiali=
ze":"","finalize":"","libs":[],"x":390,"y":1080,"wires":[["160681d4.3dce1e"=
,"aa11b061.22dfa","535b8b0e.ffee34"]]},{"id":"9f5e3ed9.f0d31","type":"funct=
ion","z":"66438235.d8767c","name":"dauw","func":"var dauw1=3D msg.payload[=
13];\nvar dauw2=3D msg.payload[14];\nvar dauw3=3D msg.payload[15];\n\nvar=
result =3D(dauw1)+ (dauw2)+ ( dauw3); \nvar result =3Dresult/10\n\nvar res=
ult1 =3D {payload:result};\nreturn[result1];\n","outputs":1,"noerr":0,"init=
ialize":"","finalize":"","libs":[],"x":390,"y":1200,"wires":[["4b2c7b1c.a06=
604","350e6e5b.be1652"]]},{"id":"4b2c7b1c.a06604","type":"debug","z":"66438=
235.d8767c","name":"","active":false,"tosidebar":true,"console":true,"tosta=
tus":true,"complete":"payload","targetType":"msg","statusVal":"payload","st=
atusType":"auto","x":560,"y":1200,"wires":[]},{"id":"535b8b0e.ffee34","type=
":"debug","z":"66438235.d8767c","name":"","active":false,"tosidebar":true,"=
console":true,"tostatus":true,"complete":"payload","targetType":"msg","stat=
usVal":"payload","statusType":"auto","x":580,"y":1080,"wires":[]},{"id":"35=
0e6e5b.be1652","type":"ui_gauge","z":"66438235.d8767c","name":"","group":"8=
d505bd0.a0f188","order":2,"width":"3","height":"3","gtype":"gage","title":"=
dauwpunt","label":"units","format":"{{payload}}","min":0,"max":"100","color=
s":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":760,"y":1200,"wi=
res":[]},{"id":"98acf1fe.59a22","type":"ui_gauge","z":"66438235.d8767c","na=
me":"","group":"df20d8d.1ca5428","order":2,"width":"3","height":"3","gtype"=
:"gage","title":"","label":"units","format":"{{msg.payload}}","min":"980","=
max":"1040","colors":["#00b500","#e6e600","#ca3838"],"seg1":"990","seg2":"1=
030","x":690,"y":1260,"wires":[]},{"id":"e4c9b692.f235c8","type":"debug","z=
":"66438235.d8767c","name":"","active":true,"tosidebar":true,"console":fals=
e,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x=
":530,"y":1260,"wires":[]},{"id":"14618ed0.f58dd1","type":"function","z":"6=
6438235.d8767c","name":"bar","func":"var bar1=3D msg.payload[17];\nvar bar2=
=3D msg.payload[18];\nvar bar3=3D msg.payload[19];\nvar bar4=3D msg.payload=
[20];\n//var bar5=3D msg.payload[21];\n\nvar result =3D (bar1)+ (bar2) + (b=
ar3) + bar4; \n\n//var result =3D (bar1*1000)+ (bar2*100) + (bar3*10) + bar=
4; \nresult =3D result;\n\nvar result1 =3D {payload:result};\n\nreturn[resu=
lt1];","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":39=
0,"y":1260,"wires":[["e4c9b692.f235c8","98acf1fe.59a22"]]},{"id":"53a9fd46.=
afd0a4","type":"function","z":"66438235.d8767c","name":"co","func":"var co1=
=3D msg.payload[9];\nvar co2=3D msg.payload[10];\nvar co3=3D msg.payload[11=
];\nvar co4=3D msg.payload[12];\n\nvar result =3D (co1)+ (co2) + (co3) + co=
4; \n//result =3D result/1000;\n\nvar result1 =3D {payload:result};\n\nretu=
rn[result1];","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[]=
,"x":390,"y":1140,"wires":[["974fc9e.6fe4f38","e9d00f66.30779"]]},{"id":"97=
4fc9e.6fe4f38","type":"debug","z":"66438235.d8767c","name":"","active":fals=
e,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","tar=
getType":"msg","statusVal":"payload","statusType":"auto","x":560,"y":1140,"=
wires":[]},{"id":"e9d00f66.30779","type":"ui_gauge","z":"66438235.d8767c","=
name":"","group":"8d505bd0.a0f188","order":4,"width":"3","height":"3","gtyp=
e":"gage","title":"CO","label":"units","format":"{{value}}","min":0,"max":"=
1000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":750,=
"y":1140,"wires":[]},{"id":"20b9a981.199a76","type":"function","z":"6643823=
5.d8767c","name":"","func":"var newMsg =3D {payload: msg.payload.toString()=
};\nreturn newMsg;","outputs":1,"noerr":0,"initialize":"","finalize":"","li=
bs":[],"x":100,"y":920,"wires":[["c094a814.3a3fe8"]]},{"id":"c094a814.3a3fe=
8","type":"debug","z":"66438235.d8767c","name":"","active":true,"tosidebar"=
:true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg=
","statusVal":"payload","statusType":"auto","x":260,"y":920,"wires":[]},{"i=
d":"3d2ec9ba.ca4146","type":"comment","z":"66438235.d8767c","name":"6 24.00=
34.00 25.13 24,50 102110 -64.49","info":"","x":160,"y":960,"wires":[]},{"i=
d":"ea574d7a.f85e8","type":"comment","z":"66438235.d8767c","name":"arduino =
programma","info":"giga5\ninterface/node-red\nbijv dhtenz/..ino","x":120,"y=
":1160,"wires":[]},{"id":"8d61a9e8.199668","type":"serial-port","serialport=
":"COM11","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1"=
,"waitfor":"","dtr":"none","rts":"none","cts":"none","dsr":"none","newline"=
:"\\n","bin":"false","out":"char","addchar":"","responsetimeout":"10000"},{=
"id":"77508ad6.7f4da4","type":"ui_group","name":"text","tab":"83858644.83c4=
d8","order":1,"disp":true,"width":"6","collapse":false},{"id":"23f031b4.5ee=
ece","type":"ui_group","name":"luchtvochtigheid","tab":"83858644.83c4d8","o=
rder":2,"disp":true,"width":"4","collapse":false},{"id":"46b77824.e91ab8","=
type":"ui_group","name":"temperatuur","tab":"83858644.83c4d8","order":3,"di=
sp":true,"width":"4","collapse":false},{"id":"8d505bd0.a0f188","type":"ui_g=
roup","name":"div","tab":"83858644.83c4d8","order":5,"disp":true,"width":"6=
","collapse":false},{"id":"df20d8d.1ca5428","type":"ui_group","name":"lucht=
druk","tab":"83858644.83c4d8","order":4,"disp":true,"width":"4","collapse":=
false},{"id":"83858644.83c4d8","type":"ui_tab","name":"home","icon":"dashbo=
ard","disabled":false,"hidden":false}]
B
[{"id":"e5a28a29.1659f8","type":"tab","label":"p2-rad","disabled":false,"in=
fo":""},{"id":"7b205406.6f6f7c","type":"function","z":"e5a28a29.1659f8","na=
me":"Parse message","func":"msg.payload.raw =3D msg.payload.raw.split(\";\"=
); // split raw data\nfor(let i=3D3; i < msg.payload.raw.length-1; i++){ //=
loop through split data fro index 3 to end-1\n let part =3D msg.payload=
=2Eraw[i].split(\"=3D\"); //split each item at =3D\n msg.payload[part[0]=
=2EtoLowerCase()] =3D part[1]; //creat payload values\n}\nmsg.payload.humid=
ity =3D Number(msg.payload.hum); // convert from string\nmsg.payload.name =
=3D msg.payload.raw[2];\nmsg.payload.p1=3Dmsg.payload.raw[0];\nmsg.payload.=
p2=3Dmsg.payload.raw[1];\n\n\nvar global_name =3D \"rainstat\"; // Name o=
f the global variable\n\n// your code for rain data not sure this works\nva=
r rainstat =3D global.get(global_name) || 0;\n\nmsg.payload.RAINRATE =3D 0;=
\n\nif (msg.payload.rain!=3D=3Dundefined) {\n msg.payload.rain =3D parse=
Int(((msg.payload.rain, 16) /10)-1);\n msg.payload.RAINRATE =3D msg.payl=
oad.rain - rainstat;\n global.set(global_name,msg.payload.rain);\n} else=
{\n msg.payload.rain=3D0;\n}\n\nreturn msg;\n\n","outputs":1,"noerr":0,=
"initialize":"","finalize":"","libs":[],"x":140,"y":840,"wires":[[]]},{"id"=
:"51d05d3d.b4f8b4","type":"comment","z":"e5a28a29.1659f8","name":"andere pa=
rse","info":"","x":130,"y":800,"wires":[]},{"id":"caf7045c.0c94e8","type":"=
buienradar","z":"e5a28a29.1659f8","name":"","station":"6260","interval":"60=
000","forecast":false,"x":190,"y":740,"wires":[["a30066cd.55c688","eec82d0e=
=2E902e6","85391852.a1fcf8","a874b7cb.d140e8","719ca380.540d4c","9ec6083f.a=
39ee8","45e6286.c157fd8","50b81897.3d5228","a5277708.629158","14303459.e60f=
5c","be746f3b.162e","e0c2b34.f121e5"]]},{"id":"a30066cd.55c688","type":"ui_=
gauge","z":"e5a28a29.1659f8","name":"","group":"7fa31e7d.9c758","order":0,"=
width":"3","height":"3","gtype":"gage","title":"extern","label":"=C2=B0 C",=
"format":"{{payload.buienradar.temperatuurGC}}","min":0,"max":"50","colors"=
:["#00b500","#e6e600","#ca3838"],"seg1":"20","seg2":"30","x":550,"y":680,"w=
ires":[]},{"id":"eec82d0e.902e6","type":"debug","z":"e5a28a29.1659f8","name=
":"","active":true,"tosidebar":true,"console":true,"tostatus":true,"complet=
e":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","=
x":140,"y":660,"wires":[]},{"id":"a874b7cb.d140e8","type":"ui_gauge","z":"e=
5a28a29.1659f8","name":"","group":"ec73c148.7a44c","order":1,"width":"3","h=
eight":"3","gtype":"gage","title":"extern","label":"%","format":"{{payload.=
buienradar.luchtvochtigheid}}","min":0,"max":"100","colors":["#00b500","#e6=
e600","#ca3838"],"seg1":"30","seg2":"60","x":550,"y":840,"wires":[]},{"id":=
"45e6286.c157fd8","type":"ui_gauge","z":"e5a28a29.1659f8","name":"","group"=
:"73f6a74b.5b1d78","order":2,"width":"3","height":"3","gtype":"gage","title=
":"windsnelheid","label":"m/s","format":"{{payload.buienradar.windsnelheidB=
F}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","s=
eg2":"","x":570,"y":760,"wires":[]},{"id":"85391852.a1fcf8","type":"ui_gaug=
e","z":"e5a28a29.1659f8","name":"luchtdruk","group":"615ce851.307cc8","orde=
r":3,"width":"3","height":"3","gtype":"gage","title":"luchtdruk","label":"m=
B","format":"{{payload.buienradar.luchtdruk}}","min":"980","max":"1040","co=
lors":["#00b500","#e6e600","#ca3838"],"seg1":"1000","seg2":"1020","x":560,"=
y":800,"wires":[]},{"id":"9ec6083f.a39ee8","type":"ui_gauge","z":"e5a28a29.=
1659f8","name":"wind-gr","group":"73f6a74b.5b1d78","order":5,"width":"3","h=
eight":"3","gtype":"compass","title":"windrichting","label":"=C2=B0","forma=
t":"{{payload.buienradar.windrichtingGR}}","min":0,"max":"360","colors":["#=
00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":740,"y":700,"wires":[]=
},{"id":"50b81897.3d5228","type":"ui_text","z":"e5a28a29.1659f8","group":"3=
ae28753.2940d8","order":10,"width":"4","height":"4","name":"","label":"W/m2=
","format":"{{payload.buienradar.zonintensiteitWM2}}","layout":"col-center"=
,"x":550,"y":880,"wires":[]},{"id":"719ca380.540d4c","type":"ui_text","z":"=
e5a28a29.1659f8","group":"3ae28753.2940d8","order":6,"width":"5","height":"=
2","name":"icon","label":"","format":"{{payload.buienradar.icoonzin}}","lay=
out":"row-left","x":550,"y":640,"wires":[]},{"id":"a5277708.629158","type":=
"ui_text","z":"e5a28a29.1659f8","group":"3ae28753.2940d8","order":1,"width"=
:"5","height":"1","name":"meetstation","label":"","format":"{{payload.buien=
radar.stationnaam}}","layout":"row-left","x":370,"y":820,"wires":[]},{"id":=
"863958a5.7f93e8","type":"ui_audio","z":"e5a28a29.1659f8","name":"","group"=
:"3ae28753.2940d8","voice":"Google Nederlands","always":true,"x":520,"y":92=
0,"wires":[]},{"id":"be746f3b.162e","type":"template","z":"e5a28a29.1659f8"=
,"name":"","field":"payload","fieldType":"msg","format":"handlebars","synta=
x":"plain","template":"buiten temperatuur {{payload.buienradar.temperatuurG=
C}} graden celsius;\nluchtdruk {{payload.buienradar.luchtdruk}} milibar;\n=
het is {{payload.buienradar.icoonzin}}","output":"str","x":360,"y":920,"wir=
es":[[]]},{"id":"14303459.e60f5c","type":"ui_text","z":"e5a28a29.1659f8","g=
roup":"ec73c148.7a44c","order":4,"width":"3","height":"2","name":"regen mm"=
,"label":"regen","format":"{{payload.buienradar.regenMMPU}}","layout":"col-=
center","x":360,"y":880,"wires":[]},{"id":"f72fa42d.831878","type":"comment=
","z":"e5a28a29.1659f8","name":"","info":"E1cid\n\ndick\n8h\nThe sample cod=
e I posted leaves TEMP and HUM in msg.payload.\nYou should not need any fur=
ther function nodes to move things around\n\nAs Colin said you should be ab=
le to just use {{payload.TEMP}}\ne.g\n\n[{\"id\":\"114c43cf.aa1ea4\",\"type=
\":\"inject\",\"z\":\"b779de97.b1b46\",\"name\":\"\",\"props\":[{\"p\":\"pa=
yload\"},{\"p\":\"topic\",\"vt\":\"str\"}],\"repeat\":\"\",\"crontab\":\"\"=
,\"once\":false,\"onceDelay\":0.1,\"topic\":\"\",\"payload\":\"20;0A;Cresta=
;ID=3D2C01;TEMP=3D00e8;HUM=3D63;BAT=3DOK;\",\"payloadType\":\"str\",\"x\":9=
0,\"y\":820,\"wires\":[[\"525b3f06.acd908\"]]},{\"id\":\"525b3f06.acd908\",=
\"type\":\"function\",\"z\":\"b779de97.b1b46\",\"name\":\"\",\"func\":\"con=
st split_array =3D msg.payload.split(\\\";\\\");\\nmsg.payload=3D{};\\nfor(=
let i in split_array){\\n let parts =3Dsplit_array[i].split(\\\"=3D\\\")=
;\\n if(parts.length =3D=3D=3D 2){\\n if(parts[0]=3D=3D=3D\\\"HUM=
\\\") msg.payload[parts[0]]=3DparseInt(parts[1]);\\n else if(parts[0=
] =3D=3D=3D \\\"TEMP\\\") msg.payload[parts[0]] =3D parseInt(parts[1], 16)/=
10;\\n else if(parts[0]=3D=3D=3D\\\"ID\\\") msg.payload [parts[0]] =
=3D parseInt(parts[1], 16);\\n else msg.payload[parts[0]] =3D parts[=
1];\\n }\\n}\\n\\n\\n/* or\\nmsg.payload =3D msg.payload.split(/=3D|;/);=
\\nmsg.payload =3D {\\n [msg.payload[5]]: parseInt(msg.payload[6],16)/10=
,\\n [msg.payload[7]]: parseInt(msg.payload[8])\\n}\\n*/\\nreturn msg;\"=
,\"outputs\":1,\"noerr\":0,\"initialize\":\"\",\"finalize\":\"\",\"x\":250,=
\"y\":820,\"wires\":[[\"28a29eb7.ccf372\",\"20de9a3f.02141e\",\"762a773f.c7=
cb38\"]]},{\"id\":\"28a29eb7.ccf372\",\"type\":\"debug\",\"z\":\"b779de97.b=
1b46\",\"name\":\"\",\"active\":true,\"tosidebar\":true,\"console\":false,\=
"tostatus\":false,\"complete\":\"false\",\"statusVal\":\"\",\"statusType\":=
\"auto\",\"x\":490,\"y\":820,\"wires\":[]},{\"id\":\"20de9a3f.02141e\",\"ty=
pe\":\"ui_gauge\",\"z\":\"b779de97.b1b46\",\"name\":\"\",\"group\":\"8b5cde=
76.edd58\",\"order\":14,\"width\":0,\"height\":0,\"gtype\":\"gage\",\"title=
\":\"Temperature\",\"label\":\"units\",\"format\":\"{{payload.TEMP}}\",\"mi=
n\":0,\"max\":\"50\",\"colors\":[\"#00b500\",\"#e6e600\",\"#ca3838\"],\"seg=
1\":\"\",\"seg2\":\"\",\"x\":450,\"y\":880,\"wires\":[]},{\"id\":\"762a773f=
=2Ec7cb38\",\"type\":\"ui_gauge\",\"z\":\"b779de97.b1b46\",\"name\":\"\",\"=
group\":\"8b5cde76.edd58\",\"order\":14,\"width\":0,\"height\":0,\"gtype\":=
\"gage\",\"title\":\"Humidity\",\"label\":\"units\",\"format\":\"{{payload.=
HUM}}\",\"min\":0,\"max\":\"100\",\"colors\":[\"#00b500\",\"#e6e600\",\"#ca=
3838\"],\"seg1\":\"\",\"seg2\":\"\",\"x\":450,\"y\":920,\"wires\":[]},{\"id=
\":\"8b5cde76.edd58\",\"type\":\"ui_group\",\"name\":\"\",\"tab\":\"8f03e63=
9.85956\",\"order\":1,\"disp\":true,\"width\":\"12\",\"collapse\":false},{\=
"id\":\"8f03e639.85956\",\"type\":\"ui_tab\",\"name\":\"Home\",\"icon\":\"d=
ashboard\",\"disabled\":false,\"hidden\":false}]\nIf this is failing post t=
he section of your flow that you are having difficulty with.","x":940,"y":7=
60,"wires":[]},{"id":"71317cb1.f45274","type":"comment","z":"e5a28a29.1659f=
8","name":"34.00 24.00 23.34 171 6.26 1008.60 23.20","info":"\n","x":860,"y=
":820,"wires":[]},{"id":"df839eef.dde5b","type":"function","z":"e5a28a29.16=
59f8","name":"demo-teller","func":"var app1=3D msg.payload[6];\nvar app2=3D=
msg.payload[7];\nvar app3=3D msg.payload[8];\nvar app4=3D msg.payload[9];\=
nvar app5=3D msg.payload[10];\nvar app6=3D msg.payload[11];\n\nvar result =
=3D (app1)+ (app2) + (app3) + (app4) + (app5) + (app6); \n//result =3D resu=
lt;\n\nvar result1 =3D {payload:result};\nreturn[result1];\n\nvar hum1=3D m=
sg.payload[0];\nvar hum2=3D msg.payload[1];\nvar hum3=3D msg.payload[3];\nv=
ar hum4=3D msg.payload[4];\n\nvar result =3D (hum1*1000)+ (hum2*100) + (hum=
3*10) + hum4; \nresult =3D result/1000;\n\nvar result1 =3D {payload:result}=
;\n\nreturn[result1];\n\nmsg.payload =3D msg.payload.split(/=3D|;/);\n","ou=
tputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":770,"y":760,=
"wires":[[]]},{"id":"e0c2b34.f121e5","type":"debug","z":"e5a28a29.1659f8","=
name":"radar","active":true,"tosidebar":true,"console":true,"tostatus":true=
,"complete":"true","targetType":"full","statusVal":"payload","statusType":"=
auto","x":360,"y":760,"wires":[]},{"id":"7fa31e7d.9c758","type":"ui_group",=
"name":"temperatuur","tab":"83858644.83c4d8","order":2,"disp":true,"width":=
"6","collapse":false},{"id":"ec73c148.7a44c","type":"ui_group","name":"luch=
tvochtigheid","tab":"83858644.83c4d8","order":4,"disp":true,"width":"6","co=
llapse":false},{"id":"73f6a74b.5b1d78","type":"ui_group","name":"wind","tab=
":"83858644.83c4d8","order":1,"disp":true,"width":"6","collapse":false},{"i=
d":"615ce851.307cc8","type":"ui_group","name":"luchtdruk","tab":"83858644.8=
3c4d8","order":3,"disp":true,"width":"6","collapse":false},{"id":"3ae28753.=
2940d8","type":"ui_group","name":"text","tab":"83858644.83c4d8","order":6,"=
disp":true,"width":"6","collapse":false},{"id":"83858644.83c4d8","type":"ui=
_tab","name":"home","icon":"dashboard","disabled":false,"hidden":false}]
(Some terminology so we are talking about the same things - note: some terms have more than one meaning)
The Flow editor
is the Node-RED backend where you add nodes
and connect
them together by wires
to create a flow. You can have multiple flows
on a single tab
and you can have flows
on multiple tabs
. For example, this is a flow:
and here is a second flow, both on the tab
called 'Flow 1'
and a third flow
on tab
'Flow 2'
The Dashboard
is a set of nodes in Node-RED to quickly create a live data dashboard. This is the user interface where you see gauges, buttons, switches etc.
To move a flow
from one tab
to another in the editor
you can select the nodes and do a cut/click on the tab you want them/paste. Here is an example.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.