# Input numeric data from Dashboard

**URL:** <https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273>\
**Category:** Dashboard\
**Created:** [13 January 2020 17:25 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273 "2020-01-13T17:25:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jusembo](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jusembo](https://discourse.nodered.org/u/jusembo)\
**Post date:** [13 January 2020 17:25 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/1 "2020-01-13T17:25:18Z")

</div>

Hello, can we use numeric Dashboard node in order to change settings into a node, for example change the delay of a delay node. Or is there any other way to do it without opening the node? Thanks

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [13 January 2020 18:05 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/2 "2020-01-13T18:05:54Z")

</div>

Did you read the node's Info tab?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [13 January 2020 18:12 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/3 "2020-01-13T18:12:33Z")

</div>

Here's the basics how it can be done

```auto
[{"id":"b5de0f6b.8e304","type":"delay","z":"6d08d5ab.a8aa3c","name":"","pauseType":"delayv","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":460,"y":330,"wires":[["bf6c9dd9.528b3"]]},{"id":"9f0535bf.8fcbf8","type":"inject","z":"6d08d5ab.a8aa3c","name":"","topic":"","payload":"message","payloadType":"str","repeat":"5","crontab":"","once":false,"onceDelay":0.1,"x":270,"y":330,"wires":[["b5de0f6b.8e304"]]},{"id":"bf6c9dd9.528b3","type":"debug","z":"6d08d5ab.a8aa3c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":540,"y":390,"wires":[]},{"id":"a7f10ff4.3a675","type":"ui_numeric","z":"6d08d5ab.a8aa3c","name":"","label":"numeric","tooltip":"","group":"d6060f19.2b834","order":0,"width":0,"height":0,"wrap":false,"passthru":true,"topic":"","format":"{{value}}","min":"1000","max":"10000","step":"1000","x":160,"y":270,"wires":[["8938fbca.942ca8"]]},{"id":"8938fbca.942ca8","type":"change","z":"6d08d5ab.a8aa3c","name":"","rules":[{"t":"move","p":"payload","pt":"msg","to":"delay","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":270,"wires":[["b5de0f6b.8e304"]]},{"id":"d6060f19.2b834","type":"ui_group","z":"","name":"STAATUS","tab":"93443fe0.36117","disp":true,"width":"20","collapse":false},{"id":"93443fe0.36117","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![jusembo](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jusembo](https://discourse.nodered.org/u/jusembo)\
**Post date:** [14 January 2020 12:36 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/4 "2020-01-14T12:36:59Z")

</div>

Hello HotNipi, thanks for your reply.  
I've been trying your flow but the "variable delay node" gets overide to it's default value each time i'm pushing the inject mode, see screen shot

 ![ScreenShot072](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e216ecbdbd0dde06e4a614560d4259717d07ecb5.jpeg) ![ScreenShot071](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/0/802d7f4c008770b6d0a7beb1e3b64c8b2585d247.jpeg) ![ScreenShot070](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/03611d2a1f81d8e9655ef755af06d720031be441.jpeg)

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [14 January 2020 12:40 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/5 "2020-01-14T12:40:18Z")

</div>

As I said, example was to indicate basics.  
What you'll need to do is to store the value from numeric into flow context (or global context if needed) and use it every time as last known good value for delay.

---

<div class="post-metadata">

**Author:** ![SpareSimian](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@SpareSimian](https://discourse.nodered.org/u/SpareSimian)\
**Post date:** [1 March 2022 02:14 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/6 "2022-03-01T02:14:21Z")

</div>

Is there some way to get the Inject node to use a number from the dashboard for its repeat interval? I'd like to make that user-configurable.

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [1 March 2022 06:05 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/7 "2022-03-01T06:05:13Z")

</div>

**node-red-contrib-ui-time-scheduler**??

---

<div class="post-metadata">

**Author:** ![SpareSimian](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@SpareSimian](https://discourse.nodered.org/u/SpareSimian)\
**Post date:** [1 March 2022 20:41 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/8 "2022-03-01T20:41:26Z")

</div>

> [@smanjunath211](#):
>
> node-red-contrib-ui-time-scheduler

It looks like that's limited to one on/off event a day. It's great for controlling something that operates once a day.

I have a pet feeder I want to turn on and off about every 1-2 hours, and it need not do so with any relation to the wall clock. The Inject node is great for this, but I have to edit and restart the flow to adjust the repeat interval. (The feeder dispenses a measured amount when it turns on. It comes with a mechanical lamp timer with plastic tabs for every 15 minutes so I could turn the thing on and off every 1/2 hour if I wanted.I replaced the timer with an Ikea remote switch and Node-RED.)

---

<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:** [1 March 2022 21:07 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/9 "2022-03-01T21:07:12Z")

</div>

You could try the trigger node set to resend every x ... and set to allow msg.delay to set the delay (in mS I think)

---

<div class="post-metadata">

**Author:** ![SpareSimian](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@SpareSimian](https://discourse.nodered.org/u/SpareSimian)\
**Post date:** [1 March 2022 23:06 UTC](https://discourse.nodered.org/t/input-numeric-data-from-dashboard/20273/10 "2022-03-01T23:06:38Z")

</div>

That looks promising. Perhaps two Triggers in a loop to create the repeat, a UI node to inject the delay value into one of them, and something to remember the delay in a context across reboots.

(The funny thing is that I can see the code in C++ but I'll have to think about it to create a flow like that. I'll bet it would make a nice sub-flow for reuse by others.)
