Multiple Different Instances of the same Node-RED Dashboard

3,175 views
Skip to first unread message

sama...@gmail.com

unread,
Jan 18, 2017, 9:04:26 AM1/18/17
to Node-RED

Hello,

I found that the Node-RED dashboard version 0.16.0 (Nodejs version 4.9.6) is one instance everywhere which it means if you access it from the desktop and from the mobile phone at the same time, you will find immediately any state update/change to the widgets on the desktop to be visible on the mobile phone i.e. moving a slider on the desktop to 50% would move the slider on the mobile phone to 50%. 
I don't know if this is a feature in Node-RED but I want to have multiple instances of the same dashboard so that multiple users could use it and set the slider as they wish.

Is there a way to have multiple different instances of the same dashboard so that different users can use it and change its widgets without interfering each others?


Colin Law

unread,
Jan 18, 2017, 9:11:44 AM1/18/17
to node...@googlegroups.com
What is the slider signal connected to in node-red? Both input and output.

Colin
> --
> http://nodered.org
>
> Join us on Slack to continue the conversation: http://nodered.org/slack
> ---
> You received this message because you are subscribed to the Google Groups
> "Node-RED" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to node-red+u...@googlegroups.com.
> To post to this group, send email to node...@googlegroups.com.
> Visit this group at https://groups.google.com/group/node-red.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/node-red/199ad42c-9ab8-4a73-828c-52493a04483a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Nicholas O'Leary

unread,
Jan 18, 2017, 9:19:36 AM1/18/17
to Node-RED Mailing List
Hi,

the dashboard doesn't currently distinguish between who is accessing it - it provides a single view. If I access the dashboard and set the slider to value 10, the underlying flow the slider is connected to will be triggered with that value. If you access the dashboard and set it to 20, the same underlying flow will be triggered with that different value. Depending on how you have it wired up, my dashboard may or may not also update to reflect that change - if it doesn't, my view is now out of sync with the real state.

Multi-user support in the dashboard comes up often - I'm sure if you search the google group you'll see it discussed. The short answer is it would be quite a large piece of work to enable that sort of thing given the current architecture of the dashboard. So it isn't something we'll be doing any time soon ourselves.

Nick



On 18 January 2017 at 14:04, <sama...@gmail.com> wrote:

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.

sama...@gmail.com

unread,
Jan 18, 2017, 11:13:22 AM1/18/17
to Node-RED
Hi Nick,

Thanks for your early response, appreciate it a lot.

I am discussing here the end-user dashboard and not the flow editor.

Well, let me explain what I want to do.
I want to let user 1 to select an item from the dropdown box so call it item "device A" so that this selection would trigger the connection to the database to get data of device 1 and display it in the dashboard.
At the same time, user 2 could select "device B" to trigger the connection to the database to get its data displayed on the dashboard without interfering what user 1 is doing on the dashboard.

Is there any possible way to make the dashboard to do such behavior?




Den onsdag 18 januari 2017 kl. 14:19:36 UTC skrev Nick O'Leary:
Hi,

the dashboard doesn't currently distinguish between who is accessing it - it provides a single view. If I access the dashboard and set the slider to value 10, the underlying flow the slider is connected to will be triggered with that value. If you access the dashboard and set it to 20, the same underlying flow will be triggered with that different value. Depending on how you have it wired up, my dashboard may or may not also update to reflect that change - if it doesn't, my view is now out of sync with the real state.

Multi-user support in the dashboard comes up often - I'm sure if you search the google group you'll see it discussed. The short answer is it would be quite a large piece of work to enable that sort of thing given the current architecture of the dashboard. So it isn't something we'll be doing any time soon ourselves.

Nick


On 18 January 2017 at 14:04, <sama...@gmail.com> wrote:

Hello,

I found that the Node-RED dashboard version 0.16.0 (Nodejs version 4.9.6) is one instance everywhere which it means if you access it from the desktop and from the mobile phone at the same time, you will find immediately any state update/change to the widgets on the desktop to be visible on the mobile phone i.e. moving a slider on the desktop to 50% would move the slider on the mobile phone to 50%. 
I don't know if this is a feature in Node-RED but I want to have multiple instances of the same dashboard so that multiple users could use it and set the slider as they wish.

Is there a way to have multiple different instances of the same dashboard so that different users can use it and change its widgets without interfering each others?


--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

Nicholas O'Leary

unread,
Jan 18, 2017, 11:15:56 AM1/18/17
to Node-RED Mailing List
Hi,

yes, I was talking about the dashboard.

It does not distinguish between different connected browsers. If an update is set to a widget, it goes to everyone - there is no per-user view.

Nick

To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.

sama...@gmail.com

unread,
Jan 18, 2017, 5:01:11 PM1/18/17
to Node-RED

Hi Nick,

Well, I understand what you mean. This is disappointment at least for me and hopefully the multi-user view would be supported in Node-RED in the future.

Two more questions:
Is there any way to protect the dashboard by setting password to access it? 

Do you know which dashboard could be used easily with similar widgets as in Node-RED that has support to multi-user?

Thanks a lot!
/Sammy

Mark Setrem

unread,
Jan 18, 2017, 5:43:50 PM1/18/17
to Node-RED
You can use the httpNodeAuth property to secure the UI as it is created the same way a the HTTP nodes are.
The details can be found at the bottom of this page in the docs http://nodered.org/docs/security

Jéan Roux

unread,
Jan 19, 2017, 11:32:30 AM1/19/17
to Node-RED
Guys, you really have to read the documentation on nodered site. The q of auth for dashboard have been asked over and over on this site.

This is not cool, we cannot tire specially Nick and tue guys with seeing this every day. Really, nodered is not a car you get into and drive. The documentation is also not even a 20th in size of a car manual.

My opinion.... i am worried people will get fed up with this, and leave....

Dave C-J

unread,
Jan 19, 2017, 12:09:16 PM1/19/17
to node...@googlegroups.com
Hi, thanks :-)

I've added a few words to the Dashboard README file to try to make that more clear - but hey... who reads the README ;-)

Colin Law

unread,
Jan 20, 2017, 7:31:53 AM1/20/17
to node...@googlegroups.com
Thinking about this a bit more, is it possible to drive a ui widget
such as a slider from javascript in the template node? Also is it
possible to intercept or detect, in javascript, movements of the
slider?

Colin
>> email to node-red+u...@googlegroups.com.
>> To post to this group, send email to node...@googlegroups.com.
>> Visit this group at https://groups.google.com/group/node-red.
>> To view this discussion on the web, visit
>> https://groups.google.com/d/msgid/node-red/199ad42c-9ab8-4a73-828c-52493a04483a%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> http://nodered.org
>
> Join us on Slack to continue the conversation: http://nodered.org/slack
> ---
> You received this message because you are subscribed to the Google Groups
> "Node-RED" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to node-red+u...@googlegroups.com.
> To post to this group, send email to node...@googlegroups.com.
> Visit this group at https://groups.google.com/group/node-red.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/node-red/CAF%3Dvhqdp38tccnyTuRZHOW833nzhUoL-xHCq_um0%2BajRVBHOcg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages