Node-Red Basics

Among its many features, the CC100's ability to run Node-RED—a flow-based development tool—makes the CC100 particularly attractive for projects requiring flexible and intuitive integration of IoT devices, APIs, and cloud services.

This guide assumes you already have setup your CC100 and installed Docker. If you need help with that, we have a Getting started guide here.

Install Node-Red via Docker

To install Node-Red you can use this command while in a SSH session:

docker run -d --name wago-node-red -d --privileged=true --user=root -p 1880:1880 -v /media/sd/node_red_user_data:/data nodered/node-red
 docker run -d --name wago-node-red -d --privileged=true --user=root -p 1880:1880 -v /media/sd/node_red_user_data:/data nodered/node-red

After installing, you can access Node-Red: http//:your-assigned-ip:1880

You now should see the dashboard of Node-Red.

General Use Cases for Node-Red

1. IoT Integration:

  • Sensor Data Handling: Collect and process data from connected sensors (e.g., temperature, humidity) directly within Node-RED, making it easy to implement real-time monitoring and control systems.
  • Communication Protocols: Node-RED supports various protocols like MQTT, Modbus, and OPC-UA, allowing seamless integration with different industrial devices and systems.

2. Cloud Connectivity:

  • Data Visualization: Integrate with cloud platforms like AWS, Azure, or Google Cloud to visualize data, trigger alerts, or execute complex workflows.
  • APIs and Webhooks: Use Node-RED to interact with external APIs, enabling the CC100 to send data to web services, trigger events, or even receive commands from remote systems.

3. Custom Automation:

  • Logic Implementation: Implement custom automation logic using Node-RED’s JavaScript-based function nodes, allowing you to create complex decision-making processes.
  • Dashboards: Create user interfaces using the Node-RED Dashboard nodes, providing real-time control and monitoring capabilities directly from a web browser.

4. Rapid Prototyping and Development:

  • Ease of Use: Node-RED’s visual programming interface is ideal for rapid prototyping, making it easier for developers to test and deploy automation solutions without deep programming knowledge.
  • Extensibility: With access to a vast library of pre-built nodes, you can quickly extend the functionality of your CC100 to meet specific project requirements.

This provides a fundamental introduction to Node-RED on the CC100. For additional support, forums, and a variety of ready-to-use flows, visit the official Node-RED website. In the next section, we will walk you through a basic node setup to help you get started. Don’t forget to explore our Showcases Section for more Node-RED examples.

With the CC100 and Node-RED as your programming interface, the possibilities are virtually limitless.