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
What version of node-red and nodejs are you using?
node -v --> v11.12.0
Node-RED version: v0.20.3
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.
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....
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
That took a while.
You were quite right. I see the node now.
Thank you so much for your comments and pointers.