Node-red-contrib-ttn on raspberry pi makes Node-RED fail to start

Hi Everyone,

for recent days I’ve been trying to install node-red-contrib-ttn on top of my node-red (running on rpi).
I have tried multiple options and combinations described in the following links:

https://nodered.org/docs/hardware/raspberrypi + https://flows.nodered.org/node/node-red-contrib-ttn
or
https://www.thethingsnetwork.org/docs/applications/nodered/quick-start.html

none of those methods works. What I mean is that as soon as ttn is installed, I’m not able to start node-red any longer. It is getting killed before web interface is available. Prior to ttn installation, node-red starts and works w/o any problem.
BTW, both methods I have tried on newly flashed raspbian image + apt update/upgrade.

Is the node-red-contrib-ttn still maintained? Has anyone tried recently to install it on the raspberry pi?

I would appreciate any hints

Regards

Too bad. Does it mean that RPI platform is not supported at all?
I thought that one of the most popular platforms among hobby enthusiasts would be / should be fully functional.
From the thread you posted above, seems no one is following up on this issue.

I started yesterday evening following this tutorial
https://ictoblog.nl/2017/04/15/ttn-mqtt-node-red-mysql-local-backup-of-your-lorawan-data

nodered

continue today (if time)

@BoRRoZ I am sure you are plugged into Pete Scargill’s blog but his “Script” will install Node-RED and SQLite in one go. I haven’t used this for any logging but have it in the back of my mind to try and dump some data onto a NAS. Let us know how you get on :wink:

Port :80 on a Pi with Pete’s utilities installed…

Scargill_Script

No, it just means that the TTN library might not work. But I never saw the added value for that one anyway; for me Node-RED’s regular MQTT input does the job just fine…

Node-RED's regular MQTT input

If have found the TTN integrations to work fine on a Raspberry Pi3 using Stretch lite image and NR 19.4.
Anything before that (like Jessie) will fail showing an error message in the node-red console with some outdated lib which is not easy installed by hand.

edit: found some notes:
The error message i got when using Jessie and RPi2:
node-red-contrib-ttn:ttn app : Error: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.21’ not found (required by /home/pi/.node-red/node_modules/grpc/src/node/extension_binary/node-v57-linux-arm-glibc/grpc_node.node)

GLIBXX was actually at 3.4.20 and getting it updated required building GCC on that Pi which ran for 12 hours and finally failed. That’s when i decided to move to a Pi3 with Stretch.

Hope it helps

Hi Arian,

Thanks for inspiration. I was not aware that you can directly connect to MQTT broker.
After one evening work I’ve got my node-red running on RPI receiving messages from lora device.
For those who wants to replicate setup, here are 2 key manuals:

2 Likes