CHAPTER 4 ■ COMPLEX FLOWS: NODE-RED
Node-RED Flow
■ Note This book does not cover the installation of the Node-RED server. You can find
installation instructions at Node-RED’s official web site ( http://nodered.org/docs/
getting-started/installation.html ).
In this section you are going to develop a flow in Node-RED that will perform the
following tasks :
- Receive an HTTP request sent from the light sensor
- Prepare a tweet using data sent by the light sensor
- Tweet the message
- Send an HTTP response
Start your Node-RED server using the node-red command in a terminal window.
Figure 4-6 shows the log messages you will see once the Node-RED server starts.
Figure 4-6. Startup logs of Node-RED
In Figure 4-6 , the log message Server now running at http://127.0.0.1:1880
contains the exact URL of the Node-RED server.