Node-red-contrib-dht-sensor does not show under Raspberry categoryPi

#1

Dear members,
I'm trying to use the node-red-contrib-dht-sensor on an older Raspberry Pi A.

uname -r
4.14.98+

BTW: I am using a ssh terminal connection and the ip-address:1880 webpage.

Followed the script on:
https://nodered.org/docs/hardware/raspberrypi
All with the intention to use my DHT22 sensor in NR.
Then added the bcm2835 library and followed the rest of the pointers to install this node.
During this process I saw a lot of warnings - lots of deprecations, but no errors.

After starting NR the new node does not show up.

Please shed some light.

pablok

0 Likes

#2

What version of node-red and nodejs are you using?

0 Likes

#3

node -v --> v11.12.0
Node-RED version: v0.20.3

0 Likes

#4

You aren’t using the recommended version of nodejs.
Node-RED recommends the LTS version of nodejs which is currently v10

For anything that reads sensors it’s definitely recommended to be on the LTS version as some of the third party libraries they are likely to use only support the LTS version.

If you are on a pi the install script on the raspberry pi page in the docs will do most of the hard work for you. But I’m not sure if it will downgrade a v11 to a v10.

0 Likes

#5

O.K.
Performed a sudo n 10 and it is now starting
27 Mar 15:31:59 - [info] Node-RED version: v0.20.3
27 Mar 15:31:59 - [info] Node.js version: v10.15.3

Let's see....

0 Likes

#6

As you have changed the version of nodejs you will also have to "update" all the installed nodes. As per the docs... https://nodered.org/docs/getting-started/upgrading

0 Likes

#7

That took a while.
You were quite right. I see the node now.
Thank you so much for your comments and pointers.

0 Likes