# Dashboard change screen with timer

**URL:** <https://discourse.nodered.org/t/dashboard-change-screen-with-timer/53402>\
**Category:** Dashboard\
**Created:** [8 November 2021 20:44 UTC](https://discourse.nodered.org/t/dashboard-change-screen-with-timer/53402 "2021-11-08T20:44:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RGebel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rgebel/32/18002_2.png) [@RGebel](https://discourse.nodered.org/u/RGebel)\
**Post date:** [8 November 2021 20:44 UTC](https://discourse.nodered.org/t/dashboard-change-screen-with-timer/53402/1 "2021-11-08T20:44:47Z")

</div>

I have dashboard running on a touch screen. The touch part went bad, is there a way to use a timer to change the active screen?

---

<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:** [8 November 2021 21:00 UTC](https://discourse.nodered.org/t/dashboard-change-screen-with-timer/53402/2 "2021-11-08T21:00:23Z")

</div>

> [@RGebel](#):
>
> is there a way to use a timer to change the active screen?

Do you mean to cycle through a number of dashboard tabs, for example show a different tab every minute?  
If so, take a look at the `ui-control` node in the `node-red-dashboard`.  
If it's not what you mean, please provide more information.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [8 November 2021 21:05 UTC](https://discourse.nodered.org/t/dashboard-change-screen-with-timer/53402/3 "2021-11-08T21:05:55Z")

</div>

From the help text in side panel for ui-control node.

> The default function is to change the currently displayed tab. `msg.payload` should either be an object of the form `{"tab":"my_tab_name"}` , or just be the **tab name** or **numeric index** (from 0) of the tab or link to be displayed.

```auto
[{"id":"6c3bf74.56fd688","type":"inject","z":"7f59364f045fd16d","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"4","crontab":"","once":false,"onceDelay":0.1,"topic":"d","payload":"{\"tab\":$floor($random()*4)}","payloadType":"jsonata","x":220,"y":720,"wires":[["2687a25b.ea2ff6","7e95dde3.374014"]]},{"id":"2687a25b.ea2ff6","type":"ui_ui_control","z":"7f59364f045fd16d","name":"","events":"all","x":470,"y":720,"wires":[[]]},{"id":"7e95dde3.374014","type":"debug","z":"7f59364f045fd16d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":400,"y":680,"wires":[]}]

```

here is a crude example that generates a random page cycle, With a little tweaking I sure you could make it cycle, and select which tabs you want.

---

<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:** [8 November 2021 21:52 UTC](https://discourse.nodered.org/t/dashboard-change-screen-with-timer/53402/4 "2021-11-08T21:52:57Z")

</div>

Also I think string “+1” will move to next tab and “-1” for previous and should loopok as well

---

<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:** [8 December 2021 21:53 UTC](https://discourse.nodered.org/t/dashboard-change-screen-with-timer/53402/5 "2021-12-08T21:53:33Z")

</div>

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