DASHBOARD : Enable disable another node

2,814 views
Skip to first unread message

Ivan Morgade

unread,
Sep 9, 2016, 9:47:48 AM9/9/16
to Node-RED
Hi,

In order to make somethng for my kids I want to disable or enable some nodes like Slider and Switch based on time (after they go to the bed, they can not turn on the TV and playstation)

The idea is to use a button or other trigger to disable some functions on the UI.

Is it that possible? and if yes how can I do that?

Thanks for your help

Dave C-J

unread,
Sep 9, 2016, 10:28:38 AM9/9/16
to node...@googlegroups.com
in the release we hope to have out very very soon....   you can send msg.enabled = false to any widget and it will disable the input

sebasti...@gmail.com

unread,
Sep 9, 2016, 10:52:43 AM9/9/16
to Node-RED
Hi,

inject node can give input based on timesettings

or look at "Pete Scargills nodes" with bigtimer and more 

Mike Bell

unread,
Sep 9, 2016, 12:35:20 PM9/9/16
to Node-RED
Hi,

Also, node-red-contrib-time-range-switch can be used to block messages during a defined period. This might be cleanest solution until the new release.

Mike

Dave C-J

unread,
Sep 9, 2016, 12:45:50 PM9/9/16
to node...@googlegroups.com
It's already in github master... 

Dave C-J

unread,
Sep 9, 2016, 5:27:31 PM9/9/16
to node...@googlegroups.com
now released as node-red-dashboard 2.0.2 on npm

Ivan Morgade

unread,
Sep 13, 2016, 2:08:14 AM9/13/16
to Node-RED
Nice, I try it today :P thank's!

Ivan Morgade

unread,
Sep 16, 2016, 4:04:14 AM9/16/16
to Node-RED
Hi,

I've been very busy this week so sorry for my late reply.

I was thinking about somethink like ng-disabled="true"

Dave C-J

unread,
Sep 16, 2016, 8:39:21 AM9/16/16
to node...@googlegroups.com
??? - sending msg.enabled = false;  into any widget will now disable it by setting a disabled class and blocking any input. - this means the actual UI can still update to stay in sync but you can't operate the controls.)
Reply all
Reply to author
Forward
0 new messages