# Adding functions to the Raspberry Pi Dashboard

**URL:** https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146
**Category:** General
**Created:** [15 July 2020 20:11 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146 "2020-07-15T20:11:21Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![gbenham](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gbenham](https://discourse.nodered.org/u/gbenham)
#### Post date: [15 July 2020 20:11 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/1 "2020-07-15T20:11:22Z")

</div>

In my dashboard section of the node-RED editor, under Raspberry Pi, there are only 4 items listed including GPIO Output and GPIO Input. How do I add other functions like rpi-dht22 (temperature and humidity sensor) and the SenseHat sensor?

Thanks

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [15 July 2020 20:13 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/2 "2020-07-15T20:13:53Z")

</div>

Hi @gbenham

you can add nodes to the palette by installing additional modules. You can do that by opening up the Palette Manager from the main menu, click on the install tab and then you can search through the catalog of available modules.

You can also browse that catalog online here: [flows.nodered.org](http://flows.nodered.org)

---

<div class="post-metadata">

### Author: ![gbenham](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gbenham](https://discourse.nodered.org/u/gbenham)
#### Post date: [16 July 2020 05:03 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/3 "2020-07-16T05:03:42Z")

</div>

Thank for this. I did try to do that searching on "rpi-dht". I did find a node that included the dht22 sensor but when I tried to add it to my Raspberry Pi palette it failed. I opened the log while it was trying to download and saw many, many error messages. I think it said something needing or trying to run as root?

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [16 July 2020 08:43 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/4 "2020-07-16T08:43:17Z")

</div>

1 - Which node - full name please i.e. `node-red-contrib-????`)  
2 - did you look to see if there were prequsites for installing the node?

---

<div class="post-metadata">

### Author: ![gbenham](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gbenham](https://discourse.nodered.org/u/gbenham)
#### Post date: [16 July 2020 19:56 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/5 "2020-07-16T19:56:28Z")

</div>

Thanks for your reply.  
The node I'm trying to install is "node-red-contrib-dht-sensor".

There were some preliminary steps mentioned in the documentation. They were:

1. Install the bcm2835 library. I believe i did that successfully.
2. Install the node-dht-sensor dependency. Again, think I did that. There was one command line to enter and i did that and as far as I can tell, it went ok.
3. And finally, install this node: "sudo npm install --unsafe-perm -g node-red-contrib-dht-sensor".

Then I went back to the Install tab and selected the node I wanted and hit the Install button. It seemed to just cycle and cycle and I finally opened the log and saws tons of error messages...

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [17 July 2020 00:04 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/6 "2020-07-17T00:04:44Z")

</div>

When you ran step 3, did you see any errors? That step actually will install the node.

One thing the author should have said was the first make sure you are in the .node-red directory before running it.

Try this, in a terminal on the Pi, do:

```auto
cd /home/pi/.node-red
sudo npm install --unsafe-perm -g node-red-contrib-dht-sensor

```

and see if there are any error messages.

Please run the following:

```auto
cat /etc/os-release
cat /proc/device-tree/model

```

that will show the model Pi and the release of raspbian

Also are you running any other things on this Pi? I ask because if you go to the BCM2835 page, it does note some things that could effect it from working.

---

<div class="post-metadata">

### Author: ![gbenham](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gbenham](https://discourse.nodered.org/u/gbenham)
#### Post date: [17 July 2020 21:05 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/7 "2020-07-17T21:05:07Z")

</div>

I don't remember seeing any error when I did step 3 at the command line. However when I went into the editor to see what I had available, the dht sensor stuff isn't there under Raspberry Pi (or anywhere else).

I did the first step you mentioned (cd /home/pi/.node-red) and got a response back saying that no such directory or file exists. I did the two "cat" steps and got this back: I'm running Raspian GNU/Linux version 10 on a Raspberry Pi 3 Model B Plus.

I went back into the documentation for the node i was trying to add and went through the steps for loading the library files. The very first step came back with an error. That step was "sudo setcap cap\_sys\_rawio+ep _myprogname_". It didn't recognize myprogname. Maybe I needed to fill that in with something specific? Not sure. Anyway, I ran the rest of teh steps for laoding the library and none of them showed any errors.

I then ran the rest of the steps in the install documentation which matched those in my book. I will list them here. I didn't see any obvious errors when running them. After rebooting I went back and tried installing the node again and got what look like the same errors. It said something about not having permission to run as root or something like that. They kept scrolling by so I wasn't able to capture.

Here are all the steps I ran:  
tar zxvf bcm2835-1.67.tar.gz  
cd bdc2835-1.67  
./configure  
make  
sudo make check  
sudo make install  
cd  
sudo npm install --unsafe-perm -g node-dht-sensor  
sudo npm install --unsafe-perm -g node-red-contrib-dht-sensor  
sudo npm install --unsafe-perm -g node-red-dashboard  
sudo reboot  
sudo node-red start

Then like I said I went into the editor. I checked to make sure I didn't have any new Raspberry Pi nodes (I didn't) and then I tried to install the dht sensor node with the same results - hundreds of error messages.

Thanks for any help you can provide. I did try and just load another node (Sense Hat) to see if my issue was more generic and that loaded ok.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [18 July 2020 08:08 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/8 "2020-07-18T08:08:09Z")

</div>

> [@gbenham](#):
>
> I did the first step you mentioned (cd /home/pi/.node-red) and got a response back saying that no such directory or file exists.

Let me backup a bit.

1 - Did you install NR using the script described in [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)?

This is the script:

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

```

2 - are you using the user 'pi'?  
3 - in terminal, from the pi's home folder trun `ls -al` - do you see the `.node-red` folder?

---

<div class="post-metadata">

### Author: ![gbenham](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gbenham](https://discourse.nodered.org/u/gbenham)
#### Post date: [18 July 2020 19:21 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/9 "2020-07-18T19:21:09Z")

</div>

Thanks Paul. Running that command fixed it! I now have the dht node and my editor now looks like the version shown in the book I'm working off of. Excellent!

---

<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: [16 September 2020 19:21 UTC](https://discourse.nodered.org/t/adding-functions-to-the-raspberry-pi-dashboard/30146/10 "2020-09-16T19:21:34Z")

</div>

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