Help, I had set up 4 Sliders and had them working. Now they have disappeared. if I add a Slider it shows on the Work Bench but is not appearing on the Dash Board. v1.2.7 of Node Red and 2.27 of node-red-dashboard
Welcome to the forum Steve!
You haven't given much info in oorder to help you figure this out.
- Is it possible the sliders are on a differnt dashboard tab?
- if you go to the right sidebar in the editor and click the dashboard tab and open all the arrows, what do you see?
#) did you add anything new before this happened?
The 2 images answer the 1st 2 questions.
I had tested the flow that used the Slider on another machine and then imported it into the server that the images are from. Both servers now do not show the Slider, including adding a new slider to a ned flow.
Before the transfer I had updated dashboard on both machines to the latest version no other recent changes.
can you export your flow and attach it to a relpy?
what platform are you running on?
What browser are you using?
[{"id":"1c82f9e6.579dd6","type":"subflow","name":"Temperature Set Points","info":"","category":"","in":[],"out":[],"env":[],"color":"#DDAA99"},{"id":"a5cf81a5.7ec2c","type":"ui_slider","z":"1c82f9e6.579dd6","name":"Slider 1","label":"Set Point 1","tooltip":"","group":"d0a90912.709858","order":1,"width":0,"height":0,"passthru":true,"outs":"end","topic":"","min":"10","max":"30","step":1,"x":620,"y":180,"wires":[["e2349dc9.51f6a","42be17e1.15bcd8"]]},{"id":"94cabe5b.7a6a6","type":"ui_slider","z":"1c82f9e6.579dd6","name":"Slider 2","label":"Set Point 2","tooltip":"","group":"d0a90912.709858","order":2,"width":0,"height":0,"passthru":true,"outs":"end","topic":"","min":"10","max":"30","step":1,"x":620,"y":260,"wires":[["d900e352.c7e6b","42be17e1.15bcd8"]]},{"id":"92643547.2fbff8","type":"function","z":"1c82f9e6.579dd6","name":"Split Payload","func":"var array = msg.payload;\nvar vals=array.split(',');\nvar msg0 = {payload:vals[0]};\nvar msg1 = {payload:vals[1]};\nvar msg2 = {payload:vals[2]};\nvar msg3 = {payload:vals[3]};\n\n\nreturn [ [msg0],[msg1], [msg2],[msg3]]","outputs":4,"noerr":0,"x":130,"y":240,"wires":[["a5cf81a5.7ec2c"],["5c1ad4cf.01551c"],["9bdbfc23.f4161"],["b3474e92.7d495"]]},{"id":"e2349dc9.51f6a","type":"function","z":"1c82f9e6.579dd6","name":"Set T1 Global","func":"global.set('T1',msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":820,"y":180,"wires":[["88bd6a1b.c580c8"]]},{"id":"d900e352.c7e6b","type":"function","z":"1c82f9e6.579dd6","name":"Set T2 Global and reset if less than T1","func":"var t = msg.payload;\nvar tminus1 = global.get('T1');\nif (t<=tminus1){\n t=tminus1+2;\n msg2={payload:t};\n msg1=msg2;\n global.set('T2',t);\n return [msg1,msg2];\n}else{\n msg1={payload:t};\n global.set('T2',t);\n return [null,msg1];\n}\n","outputs":2,"noerr":0,"x":890,"y":300,"wires":[["94cabe5b.7a6a6"],["3d1e69c7.a56776"]]},{"id":"5c1ad4cf.01551c","type":"function","z":"1c82f9e6.579dd6","name":"Check T2 > T1","func":"var T2=msg.payload;\nvar t1=global.get('T1');\nif (T2<=t1+2){\n msg.payload=t1+2;\n}\n\nreturn msg","outputs":1,"noerr":0,"x":360,"y":240,"wires":[["94cabe5b.7a6a6"]]},{"id":"88bd6a1b.c580c8","type":"change","z":"1c82f9e6.579dd6","name":"Change T2","rules":[{"t":"set","p":"payload","pt":"msg","to":"T2","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":220,"wires":[["5c1ad4cf.01551c"]]},{"id":"cfa8f836.4eb028","type":"ui_slider","z":"1c82f9e6.579dd6","name":"Slider 3","label":"Set Point 3","tooltip":"","group":"d0a90912.709858","order":3,"width":0,"height":0,"passthru":true,"outs":"end","topic":"","min":"10","max":"30","step":1,"x":620,"y":380,"wires":[["45b4b805.fc5e68","42be17e1.15bcd8"]]},{"id":"45b4b805.fc5e68","type":"function","z":"1c82f9e6.579dd6","name":"Set T3 Global and reset if less than T2","func":"var t = msg.payload;\nvar tminus1 = global.get('T2');\nif (t<=tminus1){\n t=tminus1+2;\n msg2={payload:t};\n msg1=msg2;\n global.set('T3',t);\n return [msg1,msg2];\n}else{\n msg1={payload:t};\n global.set('T3',t);\n return [null,msg1];\n}","outputs":2,"noerr":0,"x":890,"y":420,"wires":[["cfa8f836.4eb028"],["2b75d1f6.b3c63e"]]},{"id":"9bdbfc23.f4161","type":"function","z":"1c82f9e6.579dd6","name":"Check T3 > T2","func":"var T3=msg.payload;\nvar t2=global.get('T2');\nif (T3<=t2+2){\n msg.payload=t2+2;\n}\n\nreturn msg","outputs":1,"noerr":0,"x":360,"y":360,"wires":[["cfa8f836.4eb028"]]},{"id":"3d1e69c7.a56776","type":"change","z":"1c82f9e6.579dd6","name":"Change T3","rules":[{"t":"set","p":"payload","pt":"msg","to":"T3","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":340,"wires":[["9bdbfc23.f4161"]]},{"id":"9882127c.f727d","type":"ui_slider","z":"1c82f9e6.579dd6","name":"Slider 4","label":"Set Point 4","tooltip":"","group":"d0a90912.709858","order":4,"width":0,"height":0,"passthru":true,"outs":"end","topic":"","min":"10","max":"30","step":1,"x":620,"y":500,"wires":[["62dd698f.1fa448","42be17e1.15bcd8"]]},{"id":"62dd698f.1fa448","type":"function","z":"1c82f9e6.579dd6","name":"Set T4 Global and reset if less than T3","func":"var t = msg.payload;\nvar tminus1 = global.get('T3');\nif (t<=tminus1){\n t=tminus1+2;\n msg2={payload:t};\n msg1=msg2;\n global.set('T4',t);\n return [msg1,msg2];\n}else{\n msg1={payload:t};\n global.set('T4',t);\n return [null,msg1];\n}","outputs":2,"noerr":0,"x":890,"y":540,"wires":[["9882127c.f727d"],[]]},{"id":"b3474e92.7d495","type":"function","z":"1c82f9e6.579dd6","name":"Check T4 > T3","func":"var T4=msg.payload;\nvar t3=global.get('T3');\nif (T4<=t3+2){\n msg.payload=t3+2;\n}\n\n\nreturn msg","outputs":1,"noerr":0,"x":360,"y":480,"wires":[["9882127c.f727d"]]},{"id":"2b75d1f6.b3c63e","type":"change","z":"1c82f9e6.579dd6","name":"Change T4","rules":[{"t":"set","p":"payload","pt":"msg","to":"T4","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":830,"y":460,"wires":[["b3474e92.7d495"]]},{"id":"99e7a204.10fb4","type":"file","z":"1c82f9e6.579dd6","name":"Update Param file","filename":"/home/pi/GHC/Params/param.txt","appendNewline":true,"createDir":true,"overwriteFile":"true","encoding":"none","x":970,"y":620,"wires":[[]]},{"id":"42be17e1.15bcd8","type":"function","z":"1c82f9e6.579dd6","name":"New Set point CSV for param file","func":"var t1= global.get('T1');\nvar t2= global.get('T2');\nvar t3= global.get('T3');\nvar t4= global.get('T4');\nmsg.payload=(t1+\",\"+t2+\",\"+t3+\",\"+t4);\nreturn msg;","outputs":1,"noerr":0,"x":680,"y":620,"wires":[["99e7a204.10fb4"]]},{"id":"7bfac141.ca377","type":"inject","z":"1c82f9e6.579dd6","name":"Slider Input","repeat":"","crontab":"","once":true,"onceDelay":"5","topic":"Slider Input","payload":"15,17,19,21","payloadType":"str","x":130,"y":60,"wires":[["a0f7b133.c5fea"]]},{"id":"a0f7b133.c5fea","type":"fs-ops-access","z":"1c82f9e6.579dd6","name":"Check File Exists","path":"/home/pi/GHC/Params/","pathType":"str","filename":"param.txt","filenameType":"str","read":true,"write":false,"throwerror":false,"x":350,"y":60,"wires":[["ac007eee.6ec5e"],[]]},{"id":"ac007eee.6ec5e","type":"file in","z":"1c82f9e6.579dd6","name":"read param file","filename":"/home/pi/GHC/Params/param.txt","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":140,"y":140,"wires":[["92643547.2fbff8"]]},{"id":"d0a90912.709858","type":"ui_group","name":"Parameters","tab":"c767d903.ceff88","order":4,"disp":true,"width":"6","collapse":false},{"id":"c767d903.ceff88","type":"ui_tab","name":"Control Data","icon":"dashboard","order":3,"disabled":false,"hidden":false}]
Raspberry Pi Zero W and Pi B both running debian 10.7
Chrome Version 87.0.4280.141 (Official Build) (64-bit)
Ahhh, you didn't say that the sliders are in a sub flow.
Did you add the sub flow to a regular tab?
I don't believe that you can put dashboard nodes in a subflow, unless I am out of date.
Yup, in the test bed they were not in a sub flow. Will see what happens
Yes, you can put them there, but until you add the subflow to a regular flow they don't show up. What will happen if you add the subflow twice is another thing altogether
Took copy and deleted before I try and reinstall. Will let you know.
Reinstall what?
Ok reload the sub flow.
...and what was the result????
I think that was in answer to my question. Reload the flow rather than reinstall something.
Thanks Success.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.