Node-RED in Raspberry pi
One of the many things that Raspberry Pi-based systems are excellent for is for building the Internet of Things platforms. The cost is around $35, but the performance is great for that price. Because of this, a slew of operating system choices for the Raspberry Pi has appeared along with some creative software development tools such as Node-RED, a free, open source, visual wiring tool built by IBM Emerging Technologies.
Node-RED, a tool for wiring the anything to anything but particularly useful for wiring the IoT to devices such as the Raspberry Pi. Node-RED was first released for x86 platforms in 2013, and the Raspberry Pi version now comes pre-installed in the Raspbian “Jessie” release of Debian officially released last December by the Raspberry Pi Foundation. And not only does Node-RED run on Windows, Linux, and OS X, it also runs on the Beagle bone black, single board computer, and there’s support for connecting Node-RED to Arduino boards.
Node-RED provides a set of building blocks, or “nodes,” which you drag from the left-hand palette onto the canvas. You then drag a connection from an output connector on the right side of a node to the input connectors on the left side of a node. Edit the properties of each node as needed, click on Deploy, and your process, called a “flow,” starts running with messages being sent a received by nodes.
In the default Node-RED installation there’s a large number of nodes types preinstalled including searching for tweets, analyzing text for sentiment, running commands, sending and receiving HTTP requests, queuing and dequeuing message, sending and receiving UDP and TCP requests, and processing CSV, HTML, JSON, and XML messages.
The Node-RED Library contains nodes and flows you can add to your installation. Pre-built flows are also available from the Node-RED Library which also indexes available nodes. To use a flow, you copy its JSON from the library and then paste it into the Node-RED user interface. You can also save and retrieve flows into your local library.
Node-RED also provides admin, runtime, and storage APIs although you’ll find the documentation pretty scant at present.