# Node-red lagging

**URL:** <https://discourse.nodered.org/t/node-red-lagging/39364>\
**Category:** Dashboard\
**Created:** [19 January 2021 01:58 UTC](https://discourse.nodered.org/t/node-red-lagging/39364 "2021-01-19T01:58:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![xale12](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xale12/32/20112_2.png) [@xale12](https://discourse.nodered.org/u/xale12)\
**Post date:** [19 January 2021 01:58 UTC](https://discourse.nodered.org/t/node-red-lagging/39364/1 "2021-01-19T01:58:59Z")

</div>

I used to use node-red very easy and fast with the code, which can change the color and size of the button icon imediatly. But now I have to reload the ui webpage to upload new status of the button. Can you guy help me.`[{"id":"455ffa9e.b8e254","type":"ui_button","z":"308ffad0.16b866","name":"light","group":"5e211b7a.2bd3e4","order":13,"width":"3","height":"3","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"gray","icon":"fa-lightbulb-o bigIcon","payload":"1","payloadType":"str","topic":"","x":730,"y":180,"wires":[["ed4ac092.6ee3b"]]},{"id":"5e211b7a.2bd3e4","type":"ui_group","name":"Default","tab":"79c634a1.b3d44c","order":1,"disp":true,"width":"6","collapse":false},{"id":"79c634a1.b3d44c","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]`

---

<div class="post-metadata">

**Author:** ![xale12](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xale12/32/20112_2.png) [@xale12](https://discourse.nodered.org/u/xale12)\
**Post date:** [19 January 2021 02:16 UTC](https://discourse.nodered.org/t/node-red-lagging/39364/2 "2021-01-19T02:16:29Z")

</div>

I just realized that the source code in node-red forum is not working too . Is there any change with node-red lasted update`[{"id":"86dce912.04f0a8","type":"ui_button","z":"34b4a5e.a6f4b5a","name":"","group":"357d373a.2d1478","order":0,"width":"3","height":"3","passthru":false,"label":"","tooltip":"","color":"","bgcolor":"","icon":"fa-male bigIcon","payload":"","payloadType":"str","topic":"","x":550,"y":380,"wires":[[]]},{"id":"cda848ce.b96c58","type":"ui_template","z":"34b4a5e.a6f4b5a","group":"357d373a.2d1478","name":"icon style","order":1,"width":0,"height":0,"format":"<style>\n .bigIcon{\n font-size:9em;\n transition: 1s;\n }\n .bigIcon.red{\n color:red;\n }\n \n</style>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"global","x":560,"y":320,"wires":[[]]},{"id":"34b25f13.91062","type":"inject","z":"34b4a5e.a6f4b5a","name":"inject","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":360,"wires":[["8365ec1f.f4eaf"]]},{"id":"bab885f9.56dcf8","type":"inject","z":"34b4a5e.a6f4b5a","name":"inject","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":400,"wires":[["e9b8f766.0ffc08"]]},{"id":"8365ec1f.f4eaf","type":"change","z":"34b4a5e.a6f4b5a","name":"","rules":[{"t":"set","p":"ui_control.icon","pt":"msg","to":"fa-male bigIcon","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":360,"wires":[["86dce912.04f0a8"]]},{"id":"e9b8f766.0ffc08","type":"change","z":"34b4a5e.a6f4b5a","name":"","rules":[{"t":"set","p":"ui_control.icon","pt":"msg","to":"fa-male bigIcon red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":400,"wires":[["86dce912.04f0a8"]]},{"id":"357d373a.2d1478","type":"ui_group","z":"","name":"Default","tab":"40d8b907.a41218","disp":true,"width":"6","collapse":false},{"id":"40d8b907.a41218","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]`

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [19 January 2021 09:26 UTC](https://discourse.nodered.org/t/node-red-lagging/39364/3 "2021-01-19T09:26:32Z")

</div>

See this comment on a duplicate topic - [Node-red button - #4 by dceejay](https://discourse.nodered.org/t/node-red-button/39369/4)

---

<div class="post-metadata">

**Author:** ![xale12](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xale12/32/20112_2.png) [@xale12](https://discourse.nodered.org/u/xale12)\
**Post date:** [19 January 2021 10:06 UTC](https://discourse.nodered.org/t/node-red-lagging/39364/4 "2021-01-19T10:06:23Z")

</div>

sorry I thought that I delete this topic already

---

<div class="post-metadata">

**Author:** ![xale12](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xale12/32/20112_2.png) [@xale12](https://discourse.nodered.org/u/xale12)\
**Post date:** [19 January 2021 10:07 UTC](https://discourse.nodered.org/t/node-red-lagging/39364/5 "2021-01-19T10:07:40Z")

</div>

What should I do to fix this problem ?

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [19 January 2021 10:30 UTC](https://discourse.nodered.org/t/node-red-lagging/39364/6 "2021-01-19T10:30:43Z")

</div>

Update to the latest [Dashboard version 2.27.0](https://discourse.nodered.org/t/announce-dashboard-version-2-27-0/39373/2). The bug has been fixed there.

---

<div class="post-metadata">

**Author:** ![xale12](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xale12/32/20112_2.png) [@xale12](https://discourse.nodered.org/u/xale12)\
**Post date:** [20 January 2021 02:05 UTC](https://discourse.nodered.org/t/node-red-lagging/39364/7 "2021-01-20T02:05:32Z")

</div>

It is still not working even I update to version 2.27

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [20 January 2021 09:43 UTC](https://discourse.nodered.org/t/node-red-lagging/39364/8 "2021-01-20T09:43:47Z")

</div>

You don't need to use ui\_control to set the icon colour - just use any msg property - eg

```auto
[{"id":"86dce912.04f0a8","type":"ui_button","z":"cca8d493.5a61e8","name":"","group":"357d373a.2d1478","order":0,"width":"3","height":"3","passthru":false,"label":"","tooltip":"","color":"{{mycolor}}","bgcolor":"","icon":"fa-male bigIcon","payload":"","payloadType":"str","topic":"","x":530,"y":520,"wires":[[]]},{"id":"cda848ce.b96c58","type":"ui_template","z":"cca8d493.5a61e8","group":"","name":"icon style","order":1,"width":0,"height":0,"format":"<style>\n .bigIcon{\n font-size:9em;\n transition: 1s;\n }\n</style>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":false,"templateScope":"global","x":540,"y":460,"wires":[[]]},{"id":"34b25f13.91062","type":"inject","z":"cca8d493.5a61e8","name":"inject","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":500,"wires":[["8365ec1f.f4eaf"]]},{"id":"bab885f9.56dcf8","type":"inject","z":"cca8d493.5a61e8","name":"inject","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":130,"y":540,"wires":[["e9b8f766.0ffc08"]]},{"id":"8365ec1f.f4eaf","type":"change","z":"cca8d493.5a61e8","name":"","rules":[{"t":"set","p":"mycolor","pt":"msg","to":"red","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":500,"wires":[["86dce912.04f0a8"]]},{"id":"e9b8f766.0ffc08","type":"change","z":"cca8d493.5a61e8","name":"","rules":[{"t":"set","p":"mycolor","pt":"msg","to":"green","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":540,"wires":[["86dce912.04f0a8"]]},{"id":"357d373a.2d1478","type":"ui_group","name":"Default","tab":"40d8b907.a41218","order":1,"disp":true,"width":"6","collapse":false},{"id":"40d8b907.a41218","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 February 2021 09:44 UTC](https://discourse.nodered.org/t/node-red-lagging/39364/9 "2021-02-19T09:44:18Z")

</div>

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