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

      ThingSpeak

      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

      ThingSpeak is an IoT platform with built-in MATLAB® analytics, which allows preprocessing, analyzing and visualizing data sent by IoT devices, as well as creating actions such as alerts based on your channel data.

      Prerequisites

      1. A user account on ThingSpeak.

      Setup ThingSpeak

      Log in to your ThingSpeak user account and navigate to the Channels section. To create a new channel, click the New Channel button.

      Enter a Name for your channel, give labels to the data fields and enable them by checking the boxes next to them.

      When done, scroll down and click the Save Channel button.

      You should enable a field for each metric from the decoded_payload object of the uplink message.

      Creating a new channel

      For implementing the webhook integration on The Things Stack, you will need the following information from your channel’s page on ThingSpeak:

      • Channel ID, which can be found on the Channel Settings tab after channel creation, or under your channel’s name on top of the channel page;

      • Write API Key, which can be found on the API Keys tab.

      Channel information

      Configure The Things Stack

      Before implementing the Webhook integration, you need to create an uplink payload formatter in order to decode the uplink payload and set fields in the decoded_payload object of the uplink message. The example uplink payload formatter is shown below.

      function decodeUplink(input) {
        return {
          data: {
            field1: input.bytes[0],
            field2: input.bytes[1],
          },
          warnings: [],
          errors: [],
        };
      }
      

      The last step is to instantiate the ThingSpeak Webhook template to create a Webhook integration.

      Give a name to your integration by filling in the Webhook ID field.

      Fill in the Channel ID field with the ThingSpeak channel ID value, and paste the Write API Key from ThingSpeak in the API Key field.

      Finish by clicking the Create thingspeak webhook button.

      ThingSpeak webhook

      To see the values of all parameters of the ThingSpeak integration, click on the integration after you created it with the Webhook template.

      At this point, you can go back to your channels page on ThingSpeak and select the private or public view of your channel to check out the field charts under Channel Stats. You can now also write and automate MATLAB® code to analyze and further visualize your data.

      ← ThingsBoard TTN Mapper →

      On this page

      • Prerequisites
      • Setup ThingSpeak
      • Configure The Things Stack

      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