Notification node in the Dashboard module

724 views
Skip to first unread message

Matha Goram

unread,
Apr 1, 2018, 12:25:28 AM4/1/18
to Node-RED
Hello!

I need some guidance on the use of the Notification node in the Dashboard module. I couldn't find any reference (in this Group as well as general Google search) to the Notification node in sufficient detail such that I could enable it for my use.

Presently, I set msgOut.topic = "text string" in the preceding node and accept all defaults for the Notification node. I'm clueless on the next steps to enable notifications (as designed for the node). What are the options for the Notification node and how are these enabled? My environment is current with respect to OS and Node-RED releases.

Thanks.

Colin Law

unread,
Apr 1, 2018, 3:51:22 AM4/1/18
to node...@googlegroups.com
There isn't really much to say.  Click on the node in your flow and look in the Info tab to see how to set it up. The string in topic will be shown as a title and the string in payload will be shown as the text of the message (have you put a string in the payload?).  Then if you are looking at the dashboard in the browser any messages sent to the notification node should appear, being shown for the time specified in the node or as a ok/cancel dialog.  The title can be configured in the node or passed in a message.

For example, this works for me

[{"id":"8114f8ee.cb1698","type":"ui_toast","z":"c67d2f27.f71248","position":"top right","displayTime":"3","highlight":"","outputs":0,"ok":"OK","cancel":"","topic":"Notification title","name":"","x":405,"y":399,"wires":[]},{"id":"126a6595.90a892","type":"inject","z":"c67d2f27.f71248","name":"","topic":"","payload":"Hello here is a notification","payloadType":"str","repeat":"6","crontab":"","once":true,"onceDelay":"10","x":211,"y":400,"wires":[["8114f8ee.cb1698"]]}]


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+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.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/a858423f-7ce3-4b2f-b61d-da573bfa46a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bart Butenaers

unread,
Apr 1, 2018, 4:22:42 AM4/1/18
to Node-RED
Hi Matha,

Perhaps one extra thing about the Notification node: instead of plain text, you can also put HTML code in the msg.payload.  
That allows you to show nice things in the popup dialog, like lists etc ....  
In this issue you can find an example of displaying a bullet list.

Good luck with it,
Bart

Matha Goram

unread,
Apr 2, 2018, 9:19:08 AM4/2/18
to Node-RED
Thanks, Colin & Bart.

I had previously set topic, highlight and payload after reading the info tab for the node. This is definitely a self-inflicted operator issue at my end as Colin rightly points out this node is indeed very simple. VNC has been reliable (except for audio). I'll keep plugging away.

Bart, good point on the HTML flavoring for the message.

Regards.
Reply all
Reply to author
Forward
0 new messages