Webhook TTN to Tagocore

Hi everyone,

I struggle getting data from TTN into my tagocore (rasp).

In the Tagocore TTn plugin I changed the port to: 8001

The TagoIO info block about my tagocore shows the internet IP

13.248.XXX.XX

In the TTN Webhoook under Base URL I put:

http://13.248.xxx.xx:8001/uplink

or

http://13.248.xxx.xx:8001

both don´t work:

TTN message:

request to `{url}` failed"

Any idea what I do wrong?

Greetings from Austria,

Robin

Hi Robin,

Have you’ve checked if that IP’s port is open to the internet?
Can you send over the plugin’s log?

You can get it from here:

Displaying image.png

Hi Freddy,

[14:09:57.717]: TTN/TTI-Integration started at port 8001

Checking from outside the port is “Port 8001 is closed”

Any idea how I can open this manually?

Greetings from the forest,

Robin

Hi Robin,

To use the TTN webhook, the port needs to be publicly open. For this, one option is to use a port forwarder in your router. A quick alternative is to expose your TagoCore instance using ngrok (which has a free tier). This service provides a custom URL for your TagoCore so you can access the instance outside the local network.

Hi Ricardo,

thanks for the info! I now used ngrok alternative localtunnel to expose the port.

Now it works but hits the next error. Find the TTN plugin log:

1****4:57:31.237]: TTN/TTI-Integration started at port 8001

[22:13:31.524]: Thu, 30 Nov 2023 21:13:31 GMT express deprecated req.host: Use req.hostname instead at ../.tagocore/Plugins/e50736acf7ed122a5924658f2ddde7b9/build/index.js:66:21297

[22:13:31.561]: Error inserting data

[22:13:31.569]: ZodError: [
{
“code”: “invalid_type”,
“expected”: “string”,
“received”: “undefined”,
“path”: [
0,
“variable”
],
“message”: “Required”
}
]
at new ZodError (/snapshot/app/node_modules/zod/lib/ZodError.js:81:28)
at handleResult (/snapshot/app/node_modules/zod/lib/types.js:115:21)
at ZodArray. (/snapshot/app/node_modules/zod/lib/types.js:250:47)
at step (/snapshot/app/node_modules/zod/lib/types.js:59:23)
at Object.next (/snapshot/app/node_modules/zod/lib/types.js:40:53)
at fulfilled (/snapshot/app/node_modules/zod/lib/types.js:31:58)

Thank you so much!

Robin

Hi everyone,

I got it working with ngrok

and also setting the Encoder Stack:

TTN/TTI Integration in Tagocore.

Now we just need to get more than just live data from Tagocore to TagoIO :wink:

Greetings from Austria,

Robin