Datacake Docs
  • Welcome
  • Get Started
  • Changelog
  • Best practices
    • Best practices: Getting started
    • Best practices: Resolution (Timeframe)
    • Best practices: Dashboards
    • Best practices: Reports
    • Best practices: Grouping Devices
  • Datacake LNS
    • Getting Started
    • Gateways
      • Milesight LoRaWAN Gateway - UG6x
      • RAKwireless WisGate Edge Light 2
    • Devices
    • Add Devices without Gateway
  • Device
    • Product
    • Configuration
    • Claiming
    • Historical Data
    • Database
      • Configuration Fields
      • Fields
        • Manual input
        • Field Roles
        • Formulas
        • Mapping Fields
      • Data retention & Datapoints
      • Examples
        • Mapping 4-20mA Signals
        • Converting Units
  • Dashboards
    • Global Dashboards
      • Setting Homepage
    • Device Dashboards
    • Multi-Device Dashboards
    • Widgets
      • Value Widget
      • Chart Widget
      • Image Map
      • Map Widget
      • Text Widget
      • SOS Widget
      • Boolean Widget
      • iFrame Widget
      • Downlink Widget
      • Set Value Widget
      • Measurement List Widget
      • Heatmap Widget
      • Table Widget
      • Image Widget
  • Portal
    • Multi-Tenancy (Workspaces)
    • Reports
      • Energy Report
    • Administrators
    • Members
      • API Users
    • Security & Privacy
    • Billing
      • Support Packages
      • VAT Exemption / Tax ID
      • SMS Credits
      • Access Invoices
      • Unused time and Remaining time in Invoices (Prorations)
      • Codes
    • White Label
    • Rules
      • Legacy Rule Engine
        • Sending notifications via Telegram
      • New Rule Engine
        • Rule Engine Table Overview
        • Copy/Paste and Template Functionality
        • Advanced Rule Engine E-Mail and Webhook Templates
        • Time Restrictions
    • Zones
  • Cake Red
    • Get Started
    • Overview
  • LoRaWAN
    • Get Started
      • CSV Import
      • Custom LoRaWAN Device
    • Configuring LNS
      • The Things Stack (TTN / TTI) Automated Setup
      • The Things Stack (TTN / TTI) Manual Setup
      • Loriot
      • Kerlink Wanesy
      • Helium
      • ChirpStack
      • Tektelic
      • Actility ThingPark
      • Senet
      • Milesight Gateway
      • KPN
    • Downlinks (LoRaWAN)
      • Set Time Frame
    • Securing Webhooks
    • Payload Decoders
      • Location and GPS
      • Access Gateway Metadata
      • Access Measurements
      • Global Variables
    • Using Cayenne LPP
    • Converting Payload
  • Generic API Devices
    • HTTP Downlinks
  • Integrations
    • MQTT
    • Particle
      • Get Started
      • Adding Integrations
      • Decoding Payloads
      • Calling Functions
      • Templates
        • Particle Tracker One
    • Incoming Webhooks
    • Outgoing Webhooks
      • Securing Outgoing Webhooks in Datacake
    • Golioth
    • Blues Wireless Notecard
    • Sigfox
    • Swarm Asset Tracker
    • Grandcentrix Modbus Cloud Connect
    • YuDash LYNX IoT Gateway
    • Dragino NB-IoT
      • Changing NB-IoT Bands
    • Hardwario CHESTER
    • 1NCE OS
  • API
    • Exporting Data
    • Record Measurements via API
    • Node RED to Datacake
    • Generate Access Token
    • Internal MQTT
      • Get Started
      • MQTT Documentation
      • MQTT over WebSocket
      • Example Code
    • GraphQL API
      • Using GraphQL
      • Device Creation
      • Tutorials
        • Read Group via Tags
  • Guides
    • Python
    • Send Slack Notifications
    • Forward Data to Cake Red
    • Multiple Data Feeds
    • Automated Dynamic Downlinks
    • Ingesting JSON Data into Datacake API Devices
    • Working with Default HTTP Decoder on API Devices and Code Examples
    • Accessing Measurements in Decoders
    • Connecting Datacake to Notion Using Zapier
    • How to set up and use location on non-GPS devices
    • How to integrate with AWS IoT Core
    • How to Schedule Mass-Downlinks (Multicast) using Datacake Rule Engine
    • How to Map Sensor Values to Ranges or Booleans, Strings using Mapping Fields
    • Understanding Internal vs. External MQTT Brokers on Datacake
    • Sending UDP Messages between 1NCE OS and Datacake
    • Concepts of LoRaWAN Payload Decoders on Datacake
    • How to check if a value stays above or below limits for given time
Powered by GitBook
On this page
  • Webhook Output Setup
  • Open Outputs
  • Add new Output
  • Select Output Type
  • Enter Webhook URL
  • Add Output
  • Authentication (Optional)
  • Downlinks
  • Create an Access Token
  • Copy Token
  • Paste Token on Datacake
  • Debugging

Was this helpful?

  1. LoRaWAN
  2. Configuring LNS

Loriot

Last updated 4 years ago

Was this helpful?

Webhook Output Setup

Setting up a Webhook Forward for Loriot is pretty simple. First of all, open up the management console on your Loriot Instance or the public version and head over to the Application which Data you want to forward to Datacake.

Open Outputs

In the overview of your Application navigate into the "Output" Section using the sidebar.

Add new Output

Now add a new Output by pressing on the "Add new output" Button.

Select Output Type

Now choose the "HTTP Push" Output type and provide the details needed to set up the output in the configuration field on the right side.

Enter Webhook URL

Fill in the following URL into the "Target URL for POSTs"-Field on the configuration Modal just like shown on the screenshot below.

https://api.datacake.co/integrations/lorawan/loriot/

Add Output

After you have pasted the URL into the Target URL field you can create the Output by pressing the "Add Output" button below.

When the setup was successful you will see the newly created output in the outputs overview. This will look like on the following screenshot:

Authentication (Optional)

If you want to make your Webhook more secure you can create an API Token for your Loriot Devices on Datacake and paste this Token into the HTTP Push configuration.

This step is optional and not required. Forwarding Data via Webhook will also work without providing a Token and is secured by SSL encryption anyways.

Create Token

In the Members section of your Datacake Workspace, you have to create a new Token and set the Devices Workspace Permissions just like on the following screenshot.

Learn more about creating API Tokens here:

After adding a new API User to your Workspaces Members you can copy the API Token from the overview panel.

Paste Token

Paste this copied token into the "Custom Authorization header value" field on the HTTP Push Output configuration in your Loriot Application. Please make sure it's done in the following way:

Token 123456mytoken123456datacake

See the following screenshot as an example:

The final overview will look something like the following screenshot:

Enable Authentication on Device

Last but not least you have to enable Webhook Authentication on the Datacake Device so that only Authenticated Webhooks are allowed to record Data into that device. This works by simply accessing the device configuration and setting a single checkbox.

Downlinks

Thanks to Loriots' perfect API and Integration section, setting up a Downlink Integration, so that you can send Downlinks directly from your Datacake Devices and Templates, simply requires copy and paste of a Loriot API Token.

The following steps will show you how easy this is.

Create an Access Token

In your Loriot Application simply open up the "Access Token" section and create a new access token.

Creating a new Access Token works by clicking on "Generate another authentication token" in the top right panel.

Copy Token

Now click on the "Eye Icon" to make that truncated Token visible and copy the complete string.

Paste Token on Datacake

This Token has to be pasted into the Datacake Device which you want to enable for sending Downlinks. To do this head over to the Device Configuration on Datacake.

Now scroll down a bit until you reach the LoRaWAN configuration panel.

Paste the Loriot Token into the field "LORIOT Access Token" and press "Save Changes" and the end of this configuration panel.

Token-Validation will happen right after you have pressed this button and if the Token was validated successfully you will see this in the Label next to the Token-Input-Field.

That's it. Downlinks are now enabled for this device.

Debugging

If you want to see if Downlinks have been successfully transmitted to Loriot you can do that on the Debug-Tab. Simply open up the Debug-View by navigation to "Debug" on the Device-Tab-Bar.

On the Debug-View, you'll find successful and unsuccessful Loriot Communication Calls and an error description if something went wrong sending the Downlink.

API Users
Webhook URL