Very slow dashboard on raspberry pi

hello guys i,m working on my raspberry pi 4 with node red and i,m getting a very slow responsive of the dashboard. allthough it worked fine before.
help ! please

OK, I'll bite...

Define slow.

Everything on my dashboards are static unless I have some process running, and then it is only the associated displays that do something, and how fast that something is depends on what it is doing.

Before when/what?

Did you make some changes on something? Because if you did, but don't tell us, then how would we know how to help.

And if you didn't, then again how would we know without a lot more details.

the dashboard becomes uresponsive and if it responds that will be after 1 minute maybe
and it always reloads by it self

no it worked fine before if u want i can share my nodes with you

I doubt I need to see your nodes, I don't see how that can be related... unless you added something and then suddenly have this issue... in which case tell us about what you added.

Otherwise, based on the limited info, the dashboard is basically a webpage being fed from your RPi, so I would say something is bogging down your RPi, affecting either CPU or Memory???

and i'm hoving a connection lost notification

Reboot the RPi :stuck_out_tongue:

Do you have charts on the dashboard?
If so, how many? How many points are you sending to it/them? How fast are you sending the points?

actually yes i'm having 3 tabs, one of them is for chart display , i'm having 4 charts, the points depends on how much data t'm having on my csv file cause i'm not having a real time display
but now i'm having like 10 points for each chart.

About how many rows are then in the csv file? 100, 10000, 1 million?
Or is that what you meant when you said 10 points for each chart?

that's my csv file:
image

In that case it isn't the charts.

In a terminal run
top
and see if anything is using up lots of CPU usage. If you see that node-red is doing that then possibly you have created a loop in the flows (or in a function node).
Do you use MQTT.? It is very easy to create an MQTT loop.

i'm not sure what u mean about the loop in the flows but lately i've added a gate node i don'know if that affects what i'm doing
i don't know if u wanna have a look

[{"id":"793a66fa.080cc8","type":"tab","label":"sensors values ed2","disabled":false,"info":""},{"id":"febc3e41.fd97d","type":"ui_slider","z":"793a66fa.080cc8","d":true,"name":"","label":"slider","tooltip":"","group":"23133d3b.98dc12","order":2,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":10,"step":1,"x":1210,"y":40,"wires":[[]]},{"id":"e07315ab.d51f18","type":"ui_slider","z":"793a66fa.080cc8","d":true,"name":"","label":"slider","tooltip":"","group":"156e329f.791a4d","order":2,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":10,"step":"0.2","x":1210,"y":100,"wires":[[]]},{"id":"2e87c861.6351d8","type":"function","z":"793a66fa.080cc8","name":"","func":"var msg ={payload:msg.payload.toString()};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1370,"y":40,"wires":[[]]},{"id":"ab2508cb.f83fd8","type":"function","z":"793a66fa.080cc8","name":"","func":"var msg ={payload:msg.payload.toString()};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1360,"y":100,"wires":[[]]},{"id":"6409a9c3.f24d78","type":"ui_gauge","z":"793a66fa.080cc8","name":"","group":"23133d3b.98dc12","order":1,"width":0,"height":0,"gtype":"gage","title":"","label":"°C","format":"{{msg.payload}}","min":0,"max":"110","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":950,"y":440,"wires":[]},{"id":"131b4bb9.5bff24","type":"ui_gauge","z":"793a66fa.080cc8","name":"","group":"156e329f.791a4d","order":1,"width":0,"height":0,"gtype":"gage","title":"","label":"Bar","format":"{{msg.payload}}","min":0,"max":"5","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":950,"y":500,"wires":[]},{"id":"b3baeb89.9caa08","type":"ui_gauge","z":"793a66fa.080cc8","name":"Water_Level","group":"59fd06df.a62778","order":1,"width":3,"height":3,"gtype":"wave","title":"","label":"Litre","format":"{{75}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":970,"y":560,"wires":[]},{"id":"3b804137.07e2ae","type":"ui_gauge","z":"793a66fa.080cc8","name":"Oxygen","group":"e1d4a35a.ad8de","order":1,"width":3,"height":3,"gtype":"compass","title":"","label":"%","format":"{{msg.payload}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":960,"y":680,"wires":[]},{"id":"dfc00eb0.15fff","type":"function","z":"793a66fa.080cc8","name":"","func":"msg.payload = msg.payload.pres ;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":800,"y":500,"wires":[["131b4bb9.5bff24","323d6978.1c03d6"]]},{"id":"be920eb5.e5d46","type":"function","z":"793a66fa.080cc8","name":"","func":"msg.payload = msg.payload.temp ;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":800,"y":440,"wires":[["6409a9c3.f24d78","535ace71.2670b","e0417284.e572e"]]},{"id":"c5954549.c95658","type":"serial in","z":"793a66fa.080cc8","name":"","serial":"b8ab2984.37dc58","x":330,"y":540,"wires":[["a1354bb4.c346a8"]]},{"id":"a1354bb4.c346a8","type":"json","z":"793a66fa.080cc8","name":"","property":"payload","action":"","pretty":false,"x":490,"y":440,"wires":[["3df33cb3.680d24","be920eb5.e5d46","dfc00eb0.15fff","eba5ac7.d897d5","408207b7.9cf058","9556a998.16f468","2e730828.06b3b8"]]},{"id":"3df33cb3.680d24","type":"debug","z":"793a66fa.080cc8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":630,"y":340,"wires":[]},{"id":"503af99a.a946e8","type":"ui_gauge","z":"793a66fa.080cc8","name":"Flow","group":"e640cbf8.ab4168","order":1,"width":4,"height":3,"gtype":"gage","title":"","label":"SLM","format":"{{value}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":950,"y":620,"wires":[]},{"id":"eba5ac7.d897d5","type":"function","z":"793a66fa.080cc8","name":"","func":"msg.payload = msg.payload.pres ;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":800,"y":560,"wires":[["b3baeb89.9caa08","5f950d6a.d30814"]]},{"id":"9556a998.16f468","type":"function","z":"793a66fa.080cc8","name":"","func":"msg.payload = msg.payload.oxyg ;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":800,"y":680,"wires":[["3b804137.07e2ae","58e3ad72.d0c534"]]},{"id":"408207b7.9cf058","type":"function","z":"793a66fa.080cc8","name":"","func":"msg.payload = msg.payload.flow ;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":800,"y":620,"wires":[["503af99a.a946e8","d533d365.d76f3"]]},{"id":"fab92e5e.e11bd","type":"json","z":"793a66fa.080cc8","name":"","property":"payload","action":"","pretty":false,"x":410,"y":640,"wires":[["80b4f075.9e548"]]},{"id":"80b4f075.9e548","type":"function","z":"793a66fa.080cc8","name":"","func":"msg.payload = msg.payload.pimp ;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":520,"y":560,"wires":[["452e107f.02b8d"]]},{"id":"452e107f.02b8d","type":"ui_text","z":"793a66fa.080cc8","group":"a7c5784.5e9ef88","order":4,"width":0,"height":0,"name":"","label":"","format":"{{msg.payload}}","layout":"row-center","x":570,"y":640,"wires":[]},{"id":"a53ec2c1.a3416","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"myInput1","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":900,"wires":[[]]},{"id":"f39d6e27.27fc","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"myInput2","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":940,"wires":[[]]},{"id":"4811443e.1d761c","type":"ui_button","z":"793a66fa.080cc8","name":"","group":"dc53cc09.4e298","order":6,"width":4,"height":1,"passthru":true,"label":"Calibrate","tooltip":"","color":"RGB(4,92,154)","bgcolor":"RGB(255,255,255)","icon":"","payload":"a","payloadType":"str","topic":"topic","topicType":"msg","x":340,"y":820,"wires":[["7cc97b8d.5a7824","cfef19f5.27fc18"]]},{"id":"50c3e3d7.4e644c","type":"ui_numeric","z":"793a66fa.080cc8","name":"","label":"T_a","tooltip":"","group":"dc53cc09.4e298","order":2,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"a","topicType":"str","format":"{{value}}","min":0,"max":10,"step":"0.2","x":330,"y":900,"wires":[["a53ec2c1.a3416"]]},{"id":"ea6165e5.7d3b78","type":"ui_numeric","z":"793a66fa.080cc8","name":"","label":"T_b","tooltip":"","group":"dc53cc09.4e298","order":3,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"a","topicType":"str","format":"{{value}}","min":0,"max":10,"step":1,"x":331,"y":942,"wires":[["f39d6e27.27fc"]]},{"id":"7cc97b8d.5a7824","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"set","p":"payload1","pt":"msg","to":"myInput1","tot":"flow"},{"t":"set","p":"payload2","pt":"msg","to":"myInput2","tot":"flow"},{"t":"set","p":"payload3","pt":"msg","to":"myInput3","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":820,"wires":[["b9a25c5e.5a709"]]},{"id":"b9a25c5e.5a709","type":"function","z":"793a66fa.080cc8","name":"","func":"var a = msg.payload1;\nvar b = msg.payload2;\nvar temp = msg.payload3;\n\n\n\n//var x = 2 ;\n// n7ot l gauge elli fil menu welli fil admin m3a b3adh'houm w ki bech na3mel calibration n desable elli fil menu w enable elli fl admin w ba3d na3kasshoum\n//msg.payload = a * msg.payload + b;\nmsg.payload = a * temp + b;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":660,"y":820,"wires":[["5111b529.a4cf0c","c4495c5a.31396","94ee947.4273c68"]]},{"id":"5111b529.a4cf0c","type":"debug","z":"793a66fa.080cc8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":770,"y":860,"wires":[]},{"id":"c4495c5a.31396","type":"ui_gauge","z":"793a66fa.080cc8","name":"","group":"dc53cc09.4e298","order":9,"width":0,"height":0,"gtype":"gage","title":"","label":"°C","format":"{{value}}","min":0,"max":"110","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":730,"y":740,"wires":[]},{"id":"af2f4275.4093f","type":"function","z":"793a66fa.080cc8","name":"","func":"/*msg.payload ={\n    temp : 50 \n};*/\n//msg.payload =msg.payload.temp;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":340,"y":780,"wires":[[]]},{"id":"535ace71.2670b","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"myInput3","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":760,"wires":[[]]},{"id":"658444ee.015bbc","type":"debug","z":"793a66fa.080cc8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":350,"y":680,"wires":[]},{"id":"cfef19f5.27fc18","type":"function","z":"793a66fa.080cc8","name":"","func":"if (msg.payload == \"a\")\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":360,"y":860,"wires":[["4811443e.1d761c"]]},{"id":"94ee947.4273c68","type":"ui_gauge","z":"793a66fa.080cc8","name":"","group":"d1c550a5.11738","order":1,"width":0,"height":0,"gtype":"gage","title":"","label":"°C","format":"{{value}}","min":0,"max":"110","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1050,"y":760,"wires":[]},{"id":"c786e202.875ce","type":"ui_ui_control","z":"793a66fa.080cc8","name":"","events":"all","x":920,"y":880,"wires":[[]]},{"id":"81b1249f.70dfe8","type":"inject","z":"793a66fa.080cc8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"{\"group\": {\"hide\": [\"Home_Calib_Temp\"], \"show\": [\"Home_Temperature\"], \"focus\": true}}","payloadType":"json","x":710,"y":900,"wires":[["c786e202.875ce"]]},{"id":"8eb0d191.7fb79","type":"ui_button","z":"793a66fa.080cc8","name":"","group":"dc53cc09.4e298","order":10,"width":3,"height":1,"passthru":false,"label":"Calibrated","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"group\": {\"hide\": [\"Home_Temperature\"], \"show\": [\"Home_Calib_Temp\"], \"focus\": true}}","payloadType":"json","topic":"topic","topicType":"msg","x":820,"y":960,"wires":[["c786e202.875ce"]]},{"id":"89f0ff0e.582a4","type":"ui_button","z":"793a66fa.080cc8","name":"","group":"dc53cc09.4e298","order":11,"width":3,"height":1,"passthru":false,"label":"Real Value","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"group\": {\"hide\": [\"Home_Calib_Temp\"], \"show\": [\"Home_Temperature\"], \"focus\": true}}","payloadType":"json","topic":"topic","topicType":"msg","x":1010,"y":940,"wires":[["c786e202.875ce"]]},{"id":"9e0884e8.fefb98","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"myInput4","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":1410,"y":840,"wires":[[]]},{"id":"6f9f3f7.88105c","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"myInput5","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":1410,"y":880,"wires":[[]]},{"id":"6e245bee.3c9cb4","type":"ui_button","z":"793a66fa.080cc8","name":"","group":"15578343.b846ed","order":4,"width":4,"height":1,"passthru":true,"label":"Calibrate","tooltip":"","color":"","bgcolor":"RGB(209,98,0)","icon":"","payload":"b","payloadType":"str","topic":"topic","topicType":"msg","x":1220,"y":760,"wires":[["61c4c3d6.6c38ac","bb539e1c.df8e6"]]},{"id":"ff85a92e.b0e4d8","type":"ui_numeric","z":"793a66fa.080cc8","name":"","label":"P_a","tooltip":"","group":"15578343.b846ed","order":1,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"a","topicType":"str","format":"{{value}}","min":0,"max":10,"step":"0.2","x":1210,"y":840,"wires":[["9e0884e8.fefb98"]]},{"id":"74a7d1ca.982ff","type":"ui_numeric","z":"793a66fa.080cc8","name":"","label":"P_b","tooltip":"","group":"15578343.b846ed","order":2,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"a","topicType":"str","format":"{{value}}","min":0,"max":10,"step":1,"x":1211,"y":882,"wires":[["6f9f3f7.88105c"]]},{"id":"61c4c3d6.6c38ac","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"set","p":"payload4","pt":"msg","to":"myInput4","tot":"flow"},{"t":"set","p":"payload5","pt":"msg","to":"myInput5","tot":"flow"},{"t":"set","p":"payload6","pt":"msg","to":"myInput6","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":760,"wires":[["191ff819.e0a158"]]},{"id":"191ff819.e0a158","type":"function","z":"793a66fa.080cc8","name":"","func":"var a = msg.payload4;\nvar b = msg.payload5;\nvar temp = msg.payload6;\n\n\n\n//var x = 2 ;\n// n7ot l gauge elli fil menu welli fil admin m3a b3adh'houm w ki bech na3mel calibration n desable elli fil menu w enable elli fl admin w ba3d na3kasshoum\n//msg.payload = a * msg.payload + b;\nmsg.payload = a * temp + b;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1540,"y":760,"wires":[["fdef4f0a.6aa2","eb9d1d5.836f2e","9326d01.b08b73"]]},{"id":"fdef4f0a.6aa2","type":"debug","z":"793a66fa.080cc8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1650,"y":800,"wires":[]},{"id":"eb9d1d5.836f2e","type":"ui_gauge","z":"793a66fa.080cc8","name":"","group":"15578343.b846ed","order":6,"width":0,"height":0,"gtype":"gage","title":"","label":"Bar","format":"{{value}}","min":0,"max":"110","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1610,"y":680,"wires":[]},{"id":"8723dce9.63535","type":"function","z":"793a66fa.080cc8","name":"","func":"/*msg.payload ={\n    temp : 50 \n};*/\n//msg.payload =msg.payload.temp;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1220,"y":720,"wires":[[]]},{"id":"323d6978.1c03d6","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"myInput6","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":1410,"y":700,"wires":[[]]},{"id":"bb539e1c.df8e6","type":"function","z":"793a66fa.080cc8","name":"","func":"if (msg.payload == \"b\")\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1250,"y":800,"wires":[["6e245bee.3c9cb4"]]},{"id":"9326d01.b08b73","type":"ui_gauge","z":"793a66fa.080cc8","name":"","group":"cb15f81f.437d68","order":1,"width":0,"height":0,"gtype":"gage","title":"","label":"Bar","format":"{{value}}","min":0,"max":"110","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1930,"y":700,"wires":[]},{"id":"5b7e03d2.e3d5ec","type":"ui_ui_control","z":"793a66fa.080cc8","name":"","events":"all","x":1800,"y":820,"wires":[[]]},{"id":"5633c809.a8ec08","type":"inject","z":"793a66fa.080cc8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"{\"group\": {\"hide\": [\"Home_Calib_Pres\"], \"show\": [\"Home_Pressure\"], \"focus\": true}}","payloadType":"json","x":1590,"y":840,"wires":[["5b7e03d2.e3d5ec"]]},{"id":"7564815.2fb4a8","type":"ui_button","z":"793a66fa.080cc8","name":"","group":"15578343.b846ed","order":7,"width":3,"height":1,"passthru":false,"label":"Calibrated","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"group\": {\"hide\": [\"Home_Pressure\"], \"show\": [\"Home_Calib_Pres\"], \"focus\": true}}","payloadType":"json","topic":"topic","topicType":"msg","x":1690,"y":900,"wires":[["5b7e03d2.e3d5ec"]]},{"id":"357440c8.ee5c8","type":"ui_button","z":"793a66fa.080cc8","name":"","group":"15578343.b846ed","order":8,"width":3,"height":1,"passthru":false,"label":"Real Value","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"group\": {\"hide\": [\"Home_Calib_Pres\"], \"show\": [\"Home_Pressure\"], \"focus\": true}}","payloadType":"json","topic":"topic","topicType":"msg","x":1890,"y":880,"wires":[["5b7e03d2.e3d5ec"]]},{"id":"e0417284.e572e","type":"debug","z":"793a66fa.080cc8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1100,"y":480,"wires":[]},{"id":"31004d64.8f5272","type":"function","z":"793a66fa.080cc8","name":"","func":"var now = new Date().toLocaleTimeString(\"en-US\", {hour12: false});\nvar day = new Date().toLocaleDateString(\"en-US\", {hour12: false});\nvar T = msg.payload3 ;\nvar P = msg.payload6 ;\n\nvar F = msg.payload8 ;\nvar O = msg.payload9 ;\nmsg.payload = day + ',' + now + ','  + T + ',' + P + ',' + O + ',' + F + ',' ;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":980,"y":320,"wires":[["747e34b2.9c899c","8e166b97.424b58"]]},{"id":"747e34b2.9c899c","type":"debug","z":"793a66fa.080cc8","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1130,"y":360,"wires":[]},{"id":"8e166b97.424b58","type":"file","z":"793a66fa.080cc8","name":"","filename":"/home/pi/file.csv","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"none","x":1120,"y":260,"wires":[[]]},{"id":"3efd430d.746b6c","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"set","p":"payload3","pt":"msg","to":"myInput3","tot":"flow"},{"t":"set","p":"payload6","pt":"msg","to":"myInput6","tot":"flow"},{"t":"set","p":"payload8","pt":"msg","to":"myInput8","tot":"flow"},{"t":"set","p":"payload9","pt":"msg","to":"myInput9","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":810,"y":400,"wires":[["31004d64.8f5272"]]},{"id":"c515c6e3.bbc3d8","type":"ui_button","z":"793a66fa.080cc8","name":"","group":"96fbb160.8139f","order":3,"width":"6","height":"1","passthru":false,"label":"{{topic}}","tooltip":"","color":"","bgcolor":"{{colour}}","icon":"{{payload}}","payload":"","payloadType":"str","topic":"topic","topicType":"msg","x":930,"y":160,"wires":[["309fb3ad.d9988c"]]},{"id":"309fb3ad.d9988c","type":"function","z":"793a66fa.080cc8","name":"","func":"state = context.state;\n/*if (msg.payload == \"OK\"){\n    state = !state;\n    \n}*/\nstate = !state;\ncontext.state = state;\n\n\n/*if (state){\n        msg.colour = \"green\";\n        return ([msg,msg]);\n    }\nelse {\n        msg.colour = \"red\";\n        return ([msg,msg]);\n    }*/\nif (state){\n    //msg.colour = \"green\";\n    msg.topic = \"control\";\n    msg.payload = \"open\";\n    return([null,msg]);\n    /*if(msg.payload == \"Cancel\")\n        return([msg,null]);\n    else\n        return([msg,msg]);*/\n}\nelse {\n    msg.topic = \"control\";\n    msg.payload = \"close\";\n    return([msg,null]);\n    /*msg.colour =\"red\";\n    if (msg.payload == \"Cancel\")\n        return([msg,null]);\n    else \n        return([msg,msg]);*/\n}\n/*if (msg.payload == \"button\" && state == true){\n    msg.colour =\"red\";\n    return([null,msg]);\n}\nelse if (msg.payload ==\"button\" && state == false){\n    msg.colour =\"green\";\n    return([null,null]);\n}*/\n","outputs":2,"noerr":0,"initialize":"","finalize":"","x":480,"y":200,"wires":[["5666b131.ca1ab","2e730828.06b3b8"],["33581ade.12d516","2e730828.06b3b8"]]},{"id":"5666b131.ca1ab","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"play_arrow","tot":"str"},{"t":"set","p":"colour","pt":"msg","to":"green","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"Record","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":40,"wires":[["c515c6e3.bbc3d8"]]},{"id":"33581ade.12d516","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"stop","tot":"str"},{"t":"set","p":"colour","pt":"msg","to":"red","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"Stop","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":160,"wires":[["c515c6e3.bbc3d8"]]},{"id":"62a342e1.83b42c","type":"inject","z":"793a66fa.080cc8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":590,"y":280,"wires":[["5666b131.ca1ab"]]},{"id":"2e730828.06b3b8","type":"gate","z":"793a66fa.080cc8","name":"","controlTopic":"control","defaultState":"closed","openCmd":"open","closeCmd":"close","toggleCmd":"toggle","defaultCmd":"default","statusCmd":"status","persist":false,"storeName":"memory","x":820,"y":280,"wires":[["3efd430d.746b6c"]]},{"id":"68dfec9e.53e904","type":"inject","z":"793a66fa.080cc8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":200,"y":860,"wires":[["4811443e.1d761c"]]},{"id":"da417d21.46bb6","type":"inject","z":"793a66fa.080cc8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"","topic":"","payload":"","payloadType":"date","x":1060,"y":820,"wires":[["6e245bee.3c9cb4"]]},{"id":"5f950d6a.d30814","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"myInput7","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":1150,"y":560,"wires":[[]]},{"id":"63b68cca.898d14","type":"comment","z":"793a66fa.080cc8","name":"","info":"i've chnaged the theme of the whole interface by changing the parametre in template node.\nalso the back ground color of the numeric values of numeric node to transparent.\nalso the size of words.\n","x":1260,"y":440,"wires":[]},{"id":"d533d365.d76f3","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"myInput8","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":1240,"y":620,"wires":[[]]},{"id":"58e3ad72.d0c534","type":"change","z":"793a66fa.080cc8","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"myInput9","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":1140,"y":680,"wires":[[]]},{"id":"23133d3b.98dc12","type":"ui_group","name":"Temperature","tab":"c94cf15f.47a4d","order":6,"disp":true,"width":"4","collapse":false},{"id":"156e329f.791a4d","type":"ui_group","name":"Pressure","tab":"c94cf15f.47a4d","order":8,"disp":true,"width":"4","collapse":false},{"id":"59fd06df.a62778","type":"ui_group","name":"Water_Level","tab":"c94cf15f.47a4d","order":5,"disp":true,"width":"3","collapse":false},{"id":"e1d4a35a.ad8de","type":"ui_group","name":"Oxygen","tab":"c94cf15f.47a4d","order":11,"disp":true,"width":"3","collapse":false},{"id":"b8ab2984.37dc58","type":"serial-port","serialport":"/dev/ttyACM0","serialbaud":"57600","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":"e640cbf8.ab4168","type":"ui_group","name":"Oxygen_Flow","tab":"c94cf15f.47a4d","order":10,"disp":true,"width":"4","collapse":false},{"id":"a7c5784.5e9ef88","type":"ui_group","name":"Notification","tab":"c94cf15f.47a4d","order":2,"disp":true,"width":"10","collapse":false},{"id":"dc53cc09.4e298","type":"ui_group","name":"Temperature_Calibration","tab":"1854ea3c.181436","order":1,"disp":true,"width":"6","collapse":false},{"id":"d1c550a5.11738","type":"ui_group","name":"Calib_Temp","tab":"c94cf15f.47a4d","order":7,"disp":true,"width":"4","collapse":false},{"id":"15578343.b846ed","type":"ui_group","name":"Pressure_Calibration","tab":"1854ea3c.181436","order":5,"disp":true,"width":"6","collapse":false},{"id":"cb15f81f.437d68","type":"ui_group","name":"Calib_Pres","tab":"c94cf15f.47a4d","order":9,"disp":true,"width":"4","collapse":false},{"id":"96fbb160.8139f","type":"ui_group","name":"Commands","tab":"9d5adccc.2c10c","order":1,"disp":false,"width":"18","collapse":false},{"id":"c94cf15f.47a4d","type":"ui_tab","name":"Home","icon":"home","order":1,"disabled":false,"hidden":false},{"id":"1854ea3c.181436","type":"ui_tab","name":"Admin","icon":"person","disabled":false,"hidden":false},{"id":"9d5adccc.2c10c","type":"ui_tab","name":"History","icon":"timeline","order":2,"disabled":false,"hidden":false}]

i found out that if a display this flow and let the other flows work , nothing will happend and every thing will work fine but still didn't know what is causing this unresponsive dashboard

i found out what was the problem, it seems that i've been using a couple of inject nodes that runs automaticly just after deploying.
but can anyone explains why that happens
thanks for every one for help.

That isn't the problem, it is whatever happens after they trigger that is the problem. Add some debug nodes to the flow to follow the flow of messages through and see if it gets stuck somewhere.

yes that's true actually i've been using buttons that was pressed every second and that what causes the bad responsive of the dashboard.
thanks a lot my friend.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.