Diverse Node Examples

A flow purely to demonstrate the functionality of the embeddable flowviewer, and how it handles the range of different Node types in Node-RED.

Included here we have:

  • Switch Node (multiple outputs)
  • Link In/Out
  • Subflow
  • Third Party Node (Dashboard 2.0)
  • Complete Node
  • Comment Node
[{"id":"7729b0260e15f62c","type":"subflow","name":"Subflow 1","info":"","in":[{"x":80,"y":60,"wires":[{"id":"d1b2a7579291fd4d"}]}],"out":[{"x":320,"y":60,"wires":[{"id":"d1b2a7579291fd4d","port":0}]}]},{"id":"d1b2a7579291fd4d","type":"function","z":"7729b0260e15f62c","name":"function 1","func":"\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":200,"y":60,"wires":[[]]},{"id":"99422f48da26fe3c","type":"inject","z":"bcaf1d5e01c74a74","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":60,"wires":[["ec071ea827372891"]]},{"id":"ec071ea827372891","type":"switch","z":"bcaf1d5e01c74a74","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"","vt":"str"},{"t":"eq","v":"","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":270,"y":60,"wires":[["7b82505fe9e38644"],["7a981f7a402cf328"]]},{"id":"716e8a60c740f3b2","type":"comment","z":"bcaf1d5e01c74a74","name":"","info":"","x":120,"y":120,"wires":[]},{"id":"7b82505fe9e38644","type":"link out","z":"bcaf1d5e01c74a74","name":"link out 4","mode":"link","links":["f3d6dad054c14ec5"],"x":375,"y":40,"wires":[]},{"id":"f3d6dad054c14ec5","type":"link in","z":"bcaf1d5e01c74a74","name":"link in 1","links":["7b82505fe9e38644"],"x":65,"y":180,"wires":[["948fa71ca0c7aef4"]]},{"id":"20f58eef627e989a","type":"subflow:7729b0260e15f62c","z":"bcaf1d5e01c74a74","name":"","x":500,"y":40,"wires":[[]]},{"id":"948fa71ca0c7aef4","type":"ui-chart","z":"bcaf1d5e01c74a74","name":"","label":"chart","order":9007199254740991,"chartType":"line","xAxisType":"time","removeOlder":1,"removeOlderUnit":"3600","removeOlderPoints":"","colors":["#1F77B4","#AEC7E8","#FF7F0E","#2CA02C","#98DF8A","#D62728","#FF9896","#9467BD","#C5B0D5"],"width":0,"height":0,"className":"","x":190,"y":180,"wires":[[]]},{"id":"038005a8ae37f4db","type":"complete","z":"bcaf1d5e01c74a74","name":"","scope":[],"uncaught":false,"x":110,"y":240,"wires":[["d77f1316df00cc89"]]},{"id":"d77f1316df00cc89","type":"debug","z":"bcaf1d5e01c74a74","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":280,"y":240,"wires":[]},{"id":"7a981f7a402cf328","type":"junction","z":"bcaf1d5e01c74a74","x":380,"y":80,"wires":[["20f58eef627e989a"]]}]

Flow Info

Created 1 year, 4 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x1)
  • complete (x1)
  • debug (x1)
  • function (x1)
  • inject (x1)
  • link in (x1)
  • link out (x1)
  • switch (x1)
Other
  • junction (x1)
  • subflow (x1)
  • subflow:7729b0260e15f62c (x1)
  • ui-chart (x1)

Tags

  • subflow
  • switch
  • dashboard
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option