Rpi-gpio : Raspberry Pi specific node set inactive

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

[EDIT]
just for clarity:

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

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

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

when you start node-red?

Yess I'm still getting the message

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
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.

just done also this, but nothing best

What does this command show?
which python

/usr/bin/python

Alan

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.

After
sudo apt update
sudo apt full-upgrade

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

I have a beta version that may help...

can someone try

cd ~/.node-red
npm i node-red-node-pi-gpio@2.0.0-beta4
2 Likes

ok, thanks.... Now I try!

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

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

the result is:

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

1 Like

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

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 $

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

1 Like

Did you initiate a injection on the inject node?

Before Inject
image

After Inject
image
This is on a AWS EC2 instance, so after an inject I will go N/A as it's not a PI

[
    {
        "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"
            ]
        ]
    }
]

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

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