Skip to content
The Things Stack documentation home
Getting Started Concepts Cloud Enterprise Integrations API Hardware
Getting Started Concepts
Cloud Enterprise
Integrations API Hardware
Get The Things Stack

    Recent searches

      Popular pages

      • Getting Started
      • Adding Gateways
      • Adding Devices
      • Payload Formatters
      • Webhooks
      • Authentication

      No results for “”.

      • Check the spelling, or try fewer or more general words.
      • Ask the community on The Things Network Forum
      • Contact support
      ↑↓ to navigate ↵ to open Esc to close

      Integrations

      • Overview
      • Adding Applications
      • Data Formats
      • Payload Formatters
      • Webhooks
      • Storage Integration
      • Integrate with popular IoT platforms
      • Other integrations
        • MQTT Server
        • Pub/Sub
        • Node-RED
          • Setup
          • Receive Events and Messages
          • Send Messages
        • IFTTT
      • Application Packages
      • Examples

      Setup

      Updated 20 January 2025 Edit on GitHub
      Copy page
      • View as MarkdownThis page as plain text
      • Open in ChatGPTAsk questions about this page
      • Open in ClaudeAsk questions about this page

      This section describes how to setup a Node-RED server and prepare to connect it to The Things Stack.

      Requirements

      1. Install Node-RED

      Note:

      Node-RED v1.0.6 is current at time of writing and is used in this guide.

      Setup

      Run Node-RED in your terminal and navigate to the server address of your Node-RED instance in your web browser. For example, a default address of a Node-RED instance deployed on localhost is 127.0.0.1:1880. You should see something like:

      Node-RED dashboard

      On the left side, you can see various types of nodes that can be used in order to build flows.

      All nodes can be found in the Node-RED library.

      The Things Stack Console provides the connection information needed for completing this integration.

      In The Things Stack Console, click Applications and choose the application you want to connect to Node-RED. Click Integrations in the left hand panel of the Console, and the MQTT submenu to view the MQTT server info:

      MQTT Server connection information

      In this example, The Things Stack instance is installed on localhost and a built-in MQTT server is configured by default on port 1883 for insecure connections and on port 8883 for TLS-secured connections.

      Please make sure to read a note on using the tenant ID, because the MQTT server address and MQTT topics for multi-tenant The Things Stack deployments have a slightly different format. For example, to connect Node-RED to The Things Stack Sandbox (which is a multi-tenant environment) built-in MQTT server, the MQTT server address would be eu1.cloud.thethings.network instead of localhost, and the MQTT username would be app-example@ttn instead of app-example.

      In a later step, we will use this information to connect Node-RED to The Things Stack.

      ← Node-RED Receive Events and Messages →

      On this page

      • Requirements
      • Setup

      Sections

      Getting Started

      Concepts

      Cloud

      Enterprise

      Integrations

      API

      Hardware

      Sitemap

      View our Sitemap

      Contributing

      GitHub

      About Us

      The Things Industries

      Privacy Policy

      Cookie settings

      Cookie Settings

      We use cookies to enhance your experience, analyze site traffic and deliver personalized content. Read our Privacy Policy.

      Cookie categories