# Sigfox callback - Nodered

**URL:** https://discourse.nodered.org/t/sigfox-callback-nodered/54671
**Category:** General
**Created:** [3 December 2021 14:03 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671 "2021-12-03T14:03:25Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![FeliceM](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@FeliceM](https://discourse.nodered.org/u/FeliceM)
#### Post date: [3 December 2021 14:03 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671/1 "2021-12-03T14:03:25Z")

</div>

A generic question for a specific application.  
I have started testing Sigfox and I see the messages being sent by the Pi and well received on the Sigfox backend service.

I would like now to get the message from the Sigfox backend into a node on another Pi and from there build up a dashboard.

My question is about how do I get the data from the Sigfox backend into a local node. Looking for advices on how to structure this.

Thank you

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [3 December 2021 14:14 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671/2 "2021-12-03T14:14:30Z")

</div>

> [@FeliceM](#):
>
> Sigfox

Acording to the overview, there seem to be 2 methods. A defined callback which is triggered when a device sends data to the Sigfox cloud and a REST API.

Either could potentially be used with Node-RED I would think. However, the callback method probably requires you to expose your own endpoint and so security would be key. The REST API wouldn't need that but it is a polling method, you have to go get some data rather than having it delivered.

[Sigfox Cloud Integration | Sigfox build](https://build.sigfox.com/backend-callbacks-and-api)

---

<div class="post-metadata">

### Author: ![FeliceM](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@FeliceM](https://discourse.nodered.org/u/FeliceM)
#### Post date: [4 December 2021 07:16 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671/3 "2021-12-04T07:16:34Z")

</div>

Thanks for the hint.  
Using the Sigfox resources, I managed to build the API REST. They have an automatic feature to do that. I received the credentials to use it.  
My next step is now to understand on the nodered side how to use the credentials to access the API and get the messages in a node. I am not sure.... I think this should be the direction.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [4 December 2021 12:04 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671/4 "2021-12-04T12:04:13Z")

</div>

> [@FeliceM](#):
>
> how to use the credentials

There have been quite a few examples in the forum over the years. First you need to know what kind of authentication is being used. The API docs should say. Then you will most likely need to set the credential in an http header. The request node lets you do this.

---

<div class="post-metadata">

### Author: ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)
#### Post date: [4 December 2021 13:58 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671/5 "2021-12-04T13:58:44Z")

</div>

Sorry completely 1/2 way off topic, have you ever looked at LoraWAN?

---

<div class="post-metadata">

### Author: ![FeliceM](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@FeliceM](https://discourse.nodered.org/u/FeliceM)
#### Post date: [8 December 2021 04:54 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671/6 "2021-12-08T04:54:15Z")

</div>

I did study a bit more the Sigfox documentation. The recommended way to retrieve messages from the Sigfox backend is to set a call-back pointing to a receiver device. I did test it using a webhook on Losant and every time the Sigfox backend receive a message from the device, it is posted to the webhook. Cool, it works!

Since I need to receive the data on my nodered instance (local) and I am not finding my way around with Losant to relay the message to my nodered instance, I am trying to find a way to safely point the Sigfox callback to my nodered instance. I have found this [node-red-contrib-webhookrelay (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-webhookrelay). Does anyone have any experience with this node? Is there any alternative ?  
Thank you.

---

<div class="post-metadata">

### Author: ![FeliceM](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@FeliceM](https://discourse.nodered.org/u/FeliceM)
#### Post date: [8 December 2021 06:20 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671/7 "2021-12-08T06:20:51Z")

</div>

@ScheepersJohan  
There aren't infrastructures of any type in the radius of 20-30 km from the device but Sigfox or satellite.  
Tankwa Karoo National Park  
Sigfox sounds to me the cheapest solution.

---

<div class="post-metadata">

### Author: ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)
#### Post date: [8 December 2021 06:45 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671/8 "2021-12-08T06:45:43Z")

</div>

Yes you are quite right, 77KM away.

How many nodes are you deploying?

You always can place your own gate way or two.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/2/02f6be15b49f665f19715040869960da8e848575.jpeg)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [6 February 2022 06:46 UTC](https://discourse.nodered.org/t/sigfox-callback-nodered/54671/9 "2022-02-06T06:46:06Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
