Auto refresh to home tab


#1

I am looking for a way to have the dashboard auto-refresh to home tab after a specified amount of inactivity. Any ideas on this?


#2

once you have defined and detected inactivity then use a ui_control node and just send it a 0 which will swap it to the first tab, etc.


#3

Thanks dceejay.
Any thoughts on how one would detect inactivity? In our case that would mean no input from keyboard or mouse.


#4

That would probably need to be outside of Node-RED and would depend on the operating system you are using. (Unless you actually mean clicks inside the Node-RED dashboard in which case you could feed all ui elements into a trigger node (as well as wherever they are meant to go to), set to not send anything on first input , a suitable timeout, and extend if any more inputs - then send the message above.


#5

Excellent. Thanks.