# How can I initial all node and send out when ui is first start?

**URL:** <https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287>\
**Category:** General\
**Created:** [12 July 2021 05:33 UTC](https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287 "2021-07-12T05:33:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [12 July 2021 05:33 UTC](https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287/1 "2021-07-12T05:33:47Z")

</div>

Dear All :

Does nore-red can do that like title?

Thank u.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 July 2021 06:49 UTC](https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287/2 "2021-07-12T06:49:06Z")

</div>

Hi, can you clarify...

- What do you mean by "initial all node"

- What do you mean by "send out when UI is first start"?

* * *

@jlian168 many of your questions miss out important details. Please try to explain your requirements with relevant details when you start a new thread.

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [12 July 2021 07:57 UTC](https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287/3 "2021-07-12T07:57:46Z")

</div>

Dear Steve-Mcl :

ok, I try to say it clear.

example :

1. When UI is start, A Button payload is fault.
2. And then I hope text is show "Press button to read AD".
3. And the gauge is show 0.
4. When I press A Button.
5. Then text is show "AD is reading".
6. Process of reading AD.
7. And the gauge is show AD value.

Thank u.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 July 2021 08:18 UTC](https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287/4 "2021-07-12T08:18:34Z")

</div>

So you are talking about setting initial values on UI elements in the dashboard.

- Is this when re-starting node-red?
  - For this, you can use an inject node set to trigger xxx Seconds after starting  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/b/db73b11aa2ceeed24b791a0ec221f05173a5005c.png)

OR

- When opening the Dashboard page (the one with Button and Gauge)?
  - For this, you can use UI\_CONTROL to fire the button  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/c/7cf7dd02f6d94846f622f05386f6a1d243b6272c.png)

  

NOTE: you will need to set option on button  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/c/9c301cf5d924fa47c3b853a22269df258ce6d3cb.png)

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [12 July 2021 08:29 UTC](https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287/5 "2021-07-12T08:29:03Z")

</div>

Dear Steve-Mcl :

Thanks for ur reply.  
I will try to understand...

Thank u.

---

<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:** [10 September 2021 08:29 UTC](https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287/6 "2021-09-10T08:29:26Z")

</div>

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