I would like to reward help on this:
Log booting NodeRED:
2 Jul 15:11:58 - [info] Loading palette nodes
/config/node-red/node_modules/node-red-node-pi-gpio/testgpio: line 8: python: command not found
2 Jul 15:12:06 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
Clean Install with Pi Imager on Pi3. NodeRed installed and palette “node-red-node-pi-gpio”
pip install RPi.GPIO
Any idea?
Thanks a lot
The custom integration may help, either via HACS or manually.
Got that installed already.
Would that help with the NodeRED error?
#!/bin/bash
python_cmd='python3'
# Fallback to Python 2, if Python 3 is not available
command -v python3 > /dev/null || python_cmd='python'
BASEDIR=$(dirname $0)
$python_cmd -u $BASEDIR/testgpio.py $@
Why is this error on line 8?
I added sudo in front oft it then it said command “sudo” not found.
I want to do PWM which would be easy with NodeRED so this would be my first way to go.
Any more input on this? Thanks!
There I can’t help, as I don’t use Node Red itself. It was just a suggestion given that GPIO is no longer included by default and has to be added back in again via the custom component if needed.
But I’m wondering why you’re still looking into Python2 given it’s depreciated, and Python3 is what HA uses iirc. Although if I try your command -v set-up in an SSH prompt I don’t get any response for either version, but that’s more I think where the SSH shell connects into than anything else.
This command was there by default but its just a fallback. Its using Python 3.11 as far as i know.