Node Red GPIO use

Good morning,

I am trying to use the GPIO pins in Node-red but it does not detect them with the PI-Gpio node. any ideas?

Greetings!

did you find any solution ?

  1. sudo mcedit /root/pio.sh
    sudo echo 60 > /sys/class/gpio/export
    sudo echo out > /sys/class/gpio/gpio60/direction
    sudo chmod 666 /sys/class/gpio/export
    sudo chmod 666 /sys/class/gpio/gpio60/value

  2. sudo chmod +x /root/pio.sh

  3. In /etc/sudousers add line
    rock ALL=(ALL) NOPASSWD:ALL // Disable sudo password

  4. sudo /root/pio.sh
    echo 1 > /sys/class/gpio/gpio60/value // Testing

  5. In /etc/rc.local add string: sudo /root/pio.sh
    before exit 0

  6. sudo apt-get install build-essential

  7. Add nodes node-red-contrib-opi-gpio

  8. In Node-RED, in node opi-gpio, set “output pin=60”