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
        • akenza
        • AllThingsTalk Maker
        • AnyViz
        • AWS IoT
        • Azure IoT Central
        • Azure IoT Hub
        • Blockbax
        • Blynk
        • Cayenne
        • Cloud Studio
        • Daizy
        • Datacake
        • Delmation Products
        • deZem
        • evrlast
        • Homey
        • InfluxDB Cloud 2.0
        • IoT in a Box
        • IoT Wonderland
        • Kaa
        • Losant IoT Platform
        • MClimate
        • my IoT open Tech
        • Qubitro
        • TagoIO
        • Telemetry2U
        • Tellsens
        • thethings.iO
        • Thinger.io
        • ThingsBoard
        • ThingSpeak
        • TTN Mapper
        • Ubidots
        • UIB
        • UnaConnect
        • Widgelix
        • Withthegrid
        • Zoho IoT
      • Other integrations
      • Application Packages
      • Examples

      thethings.iO

      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

      thethings.iO is hardware and connectivity agnostic enterprise IoT plaform that enables deploying scalable and flexible IoT solutions. This simple platform offers to quickly connect your IoT products using multiple protocols, APIs to manage them and dashboards to visualize the incoming data.

      Prerequisites

      1. A user account on thethings.iO.

      Setup thethings.iO

      Log in to your thethings.iO user account.

      On the left hand menu, navigate to Things.

      Click the Create new IoT product button. Give it a Name, choose LoRa as its format and finish with the Create button.

      Creating a new IoT product

      To parse the data coming from The Things Stack, we use thething.iO’s Cloud Code Function.

      On the left hand menu, navigate to Cloud Code. Since you have created a new LoRa product, a lora_parser Cloud Code Function is automatically generated for you - you can find it under Functions.

      Auto-generated Cloud Code Function

      To parse the data correctly, you need to modify this function according to the payload you are sending from The Things Stack. Checking Data Formats in the the official The Things Stack documentation might be useful.

      To modify the lora_parser function code, click the Edit button on its right.

      In the Code window, paste the following code, adjust it to your uplink data and click Save:

      function main(params, callback) {
        var payload = params.payload.uplink_message.decoded_payload;
        var result = [
          {
            key: "battery",
            value: payload.battery,
          },
        ];
        callback(null, result);
      }
      
      Modifying the Cloud Code Function

      Once you have created the product and the parser function, thethings.iO setup is ready. The next step will be creating the Webhook integration on The Things Stack.

      To complete the Webhook integration, you will need some information about the product you created in the previous steps. You can find the Product ID and its Hash in the Details window of the created product.

      Callback URL

      At this point, you can see that the API has not been called yet. Also, if you scroll down and check the Things section, you will see that your product does not have any things activated yet. After we complete the integration, a thing will be activated within your product, you will see the API calls and you will be able to visualize the incoming data!

      Configure The Things Stack

      Next is to create a Webhook integration on The Things Stack by using thethings.iO Webhook template.

      On The Things Stack, navigate to Integrations → Webhooks and choose thethings.iO Webhook template.

      Name your integration by filling in the Webhook ID field.

      Paste the Product ID and Hash values from thethings.iO into the equally named fields of the Webhook template.

      Creating the Webhook integration

      Hit the Create thethings.io webhook button to finish.

      To see the values of all parameters of the thethins.iO integration, click on the integration after you created it with the Webhook template. If you do this, you will see that the final callback URL has the following structure: https://subscription.thethings.io/lora/{Product ID}/{Hash}?idname=end_device_ids.dev_eui.

      Monitor Your Data

      After you have created the Webhook integration on The Things Stack, you can monitor the incoming data on thethings.iO.

      Go back to thethings.iO and navigate to your product’s details page.

      In the API calls and the Things sending data now windows, you will see the incoming API calls.

      If you scroll down, on the Things tab, you will see that now you have one activated thing! Click on its Details button on the right.

      The incoming API calls

      In the Thing Details section, scroll down to see the incoming data. Switch between marked buttons to see the data in numeric format, or as a real-time graph.

      Incoming data visualization
      ← Tellsens Thinger.io →

      On this page

      • Prerequisites
      • Setup thethings.iO
      • Configure The Things Stack
      • Monitor Your Data

      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