# Rpi-gpio : Raspberry Pi specific node set inactive

**URL:** <https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569>\
**Category:** General\
**Created:** [11 November 2021 10:59 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569 "2021-11-11T10:59:41Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 17:31 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/41 "2021-11-11T17:31:44Z")

</div>

@Colin Can we try to reinstall the node-red-node-pi-gpio package?

[EDIT]  
just for clarity:

```auto
pi@raspberrypi:~ $ cd .node-red
pi@raspberrypi:~/.node-red $ node-red-stop
Stop Node-RED

Use node-red-start to start Node-RED again

pi@raspberrypi:~/.node-red $ npm i node-red-node-pi-gpio

pi@raspberrypi:~/.node-red $ node-red-start

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 November 2021 17:33 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/42 "2021-11-11T17:33:28Z")

</div>

That won't help.  
After installing `python3-rpi.gpio` are you still getting the message

```auto
[warn] rpi-gpio : Raspberry Pi specific node set inactive

```

when you start node-red?

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 17:37 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/43 "2021-11-11T17:37:46Z")

</div>

> [@Colin](#):
>
> After installing `python3-rpi.gpio` are you still getting the message
> 
> ```auto
> [warn] rpi-gpio : Raspberry Pi specific node set inactive
> 
> ```
> 
> when you start node-red?

Yess I'm still getting the message

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 November 2021 17:43 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/44 "2021-11-11T17:43:05Z")

</div>

Ok, only other thing I can think of is to run the extra install commands on the node's page that it says shouldn't be necessary on a pi. [node-red-node-pi-gpio (node) - Node-RED](https://flows.nodered.org/node/node-red-node-pi-gpio)  
That's the ones starting  
`sudo apt-get install python-pip python-dev`  
Note that the command starting `echo 'KERNEL==...` has flowed onto a second line, but is all one line. Copy/paste out of there and it should be ok.

I have to go for the moment. Back later.

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 17:44 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/45 "2021-11-11T17:44:59Z")

</div>

> [@Colin](#):
>
> Ok, only other thing I can think of is to run the extra install commands on the node's page that it says shouldn't be necessary on a pi.

just done also this, but nothing best

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 November 2021 18:32 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/46 "2021-11-11T18:32:55Z")

</div>

What does this command show?  
`which python`

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 18:34 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/47 "2021-11-11T18:34:01Z")

</div>

> [@Colin](#):
>
> What does this command show?  
> `which python`

/usr/bin/python

Alan

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [11 November 2021 18:57 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/48 "2021-11-11T18:57:53Z")

</div>

I formatted the OS (before that I made a copy). Brand new Rasberrian OS without any modification: node-red GPIO is not available....... I did not even install the node-red-node-pi-gpio. It was there and it is not working.

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [11 November 2021 19:11 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/49 "2021-11-11T19:11:16Z")

</div>

After  
`sudo apt update`  
`sudo apt full-upgrade`

it still can not reach the GPIOs

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 19:15 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/50 "2021-11-11T19:15:13Z")

</div>

> [@tiby007](#):
>
> it still can not reach the GPIOs

By Node-RED... And whit shell?

If anyone can teach me, I'would like to try to move some GPIOs by Pyhton script, for test GPIOs in general environment and not only by N-R...

Alan

[EDIT]  
in my case by shell I can reach the GPIOs

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [11 November 2021 19:20 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/51 "2021-11-11T19:20:58Z")

</div>

I have a beta version that may help...

can someone try

```auto
cd ~/.node-red
npm i node-red-node-pi-gpio@2.0.0-beta4

```

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 19:22 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/52 "2021-11-11T19:22:20Z")

</div>

> [@dceejay](#):
>
> can someone try
> 
> ```auto
> cd ~/.node-red
> npm i node-red-node-pi-gpio@2.0.0-beta4
> 
> ```

ok, thanks.... Now I try!

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [11 November 2021 19:22 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/53 "2021-11-11T19:22:48Z")

</div>

After taking the latest update with this script, it still not available:

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

```

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 19:24 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/54 "2021-11-11T19:24:59Z")

</div>

> [@dceejay](#):
>
> I have a beta version that may help...
> 
> can someone try
> 
> ```auto
> cd ~/.node-red
> npm i node-red-node-pi-gpio@2.0.0-beta4
> 
> ```

the result is:

```auto
pi@raspberrypi:~/.node-red $ npm i node-red-node-pi-gpio@2.0.0-beta4

changed 1 package, and audited 514 packages in 17s

37 packages are looking for funding
  run `npm fund` for details

21 vulnerabilities (3 low, 2 moderate, 15 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

```

so I don't konw how to do!

Alan

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [11 November 2021 19:25 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/55 "2021-11-11T19:25:02Z")

</div>

It's working for me !!!!!!!!!!!  
Super cool 😃 😃 😃 I will try not with the original settings.

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [11 November 2021 19:25 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/56 "2021-11-11T19:25:44Z")

</div>

For me it was different:

> pi@zeus:~ $ cd ~/.node-red  
> pi@zeus:~/.node-red $ npm i node-red-node-pi-gpio@2.0.0-beta4
> 
> changed 1 package, and audited 81 packages in 4s
> 
> 17 packages are looking for funding  
> run `npm fund` for details
> 
> found 0 vulnerabilities  
> pi@zeus:~/.node-red $

---

<div class="post-metadata">

**Author:** ![alanmasu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alanmasu/32/32206_2.png) [@alanmasu](https://discourse.nodered.org/u/alanmasu)\
**Post date:** [11 November 2021 19:30 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/57 "2021-11-11T19:30:26Z")

</div>

OK GUYS, it's working also for me!!!

Another question, the result of this command `npm i node-red-node-pi-gpio@2.0.0-beta4` is problematic?

Now the question is: reasons for this issue? Why a beta version work and the original not?

Thanks for your time and your help

Alan

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [11 November 2021 19:42 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/58 "2021-11-11T19:42:14Z")

</div>

Did you initiate a injection on the inject node?

Before Inject  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/a/da5cf64183b521980ea5d4df073b77d1495f5c96.png)

After Inject  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/b/bb6da06bd1cd92f9a9174cc6a8747d0e9ff1d0fd.png)  
This is on a AWS EC2 instance, so after an inject I will go N/A as it's not a PI

```auto
[
    {
        "id": "2e9035f469bc6dcf",
        "type": "inject",
        "z": "be9dbca190ca4687",
        "name": "az - 1",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "str",
        "x": 290,
        "y": 460,
        "wires": [
            [
                "dec6e848eae9089f"
            ]
        ]
    },
    {
        "id": "dec6e848eae9089f",
        "type": "rpi-gpio out",
        "z": "be9dbca190ca4687",
        "name": "",
        "pin": "33",
        "set": "",
        "level": "0",
        "freq": "",
        "out": "out",
        "x": 480,
        "y": 480,
        "wires": []
    },
    {
        "id": "467a15a56d3f08d3",
        "type": "inject",
        "z": "be9dbca190ca4687",
        "name": "0-9 - 1",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "1",
        "payloadType": "num",
        "x": 290,
        "y": 500,
        "wires": [
            [
                "dec6e848eae9089f"
            ]
        ]
    },
    {
        "id": "08ac18c6595b09d9",
        "type": "inject",
        "z": "be9dbca190ca4687",
        "name": "0-9 -0",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "num",
        "x": 290,
        "y": 540,
        "wires": [
            [
                "dec6e848eae9089f"
            ]
        ]
    },
    {
        "id": "d8673c67f613977e",
        "type": "inject",
        "z": "be9dbca190ca4687",
        "name": "az - 0",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "0",
        "payloadType": "str",
        "x": 290,
        "y": 420,
        "wires": [
            [
                "dec6e848eae9089f"
            ]
        ]
    }
]

```

---

<div class="post-metadata">

**Author:** ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)\
**Post date:** [11 November 2021 19:55 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/59 "2021-11-11T19:55:33Z")

</div>

I don't understand the question here. I think I did injection. As your picture shows.

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [11 November 2021 20:02 UTC](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569/60 "2021-11-11T20:02:13Z")

</div>

When you deploy the flow the GPIO shows "not available", as soon as you inject a value (0 or 1) the state changes.

[Previous page](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569.md?page=2)

[Next page](https://discourse.nodered.org/t/rpi-gpio-raspberry-pi-specific-node-set-inactive/53569.md?page=4)
