GPIO Node Status change from "OK" to "1" or "0"

Hello. May someone can help me :slight_smile: First of all , i want to say "hi" . Im new here in the NodeRed Forum. Im wuddy from Germany an i startet recently my first IoBroker Projekt and using NodeRed to read the GPIOs from my Raspberry Pi.
I dont know why, but the State of the GPIO is always defined as "OK" in Node RED. I already checkt the input with a Simple Code and the Raspberry gets the Signal 1 or 0. So it works. But in NodeRED it is only shown as"OK". Has someone an idea how i can change this? i use the version 3.1.14. best regards and thank you in advance

Welcome to the forum @wuddy.

Can you give us a bit more information:

  1. What Raspberry Pi do you have?
  2. What operating system does it run?
  3. What version of Node-red?
  4. Are you using Docker?
  5. Which GPIO pin are you using?
  6. How is it wired up?
  7. Can you show us a screen capture of the GPIO node setup?
  8. What is this simple code which shows the GPIO status 1 or 0?

Hi. I use a raspberry Pi4B , 4GB Ram with Raspberry Pi OS 32bit. Node Red is 3.1.14.
I found a solution : with this library it works: iiot2k/node-red-gpiox.

Anyway Thanks for your help

Hi,
I recommend switching to 64bit OS, as I plan to only support 64bit in the next version.

1 Like

Hmm.

Current version of Raspberry Pi OS for a Pi 4 is 64 bits, released 19 November 2024
Current version of Node-red is 4.0.8.
For some reason the flows.nodered.org page for that node does not have a link to a github repository (where one would expect issues and new releases to be recorded).

Just saying :slightly_smiling_face:

Not all Node-Red nodes have a GitHub repository.
The location is generally npm.
There is a CHANGELOG.md file where the changes are recorded.
In the next version a Github repository will also be set up.

i´m new in the world of Raspberry and NodeRed and i dont have a glue of how everything works. so please forgive me if i dont understand everything right :-) . I installed the 32Bit version because the 64bit was not very fast. in my opinion the 32 Bit version runs better. But may im wrong? I dont know the difference. may my Pi ist not fast enough? i have the 4 GB version

@iiot2K is the library in node red from you? as i mentioned before im new in the world of raspberry. actually I´m a mechanic :slight_smile:

My main Node-red server is a Raspberry Pi 4 with 4GB memory. It runs the 64 bit OS. After all, it has a 64 bit processor.

Note though that performance depends on quite a few factors.

I do not run a browser on the Pi, in fact I don't have the OS version with the desktop, nor a monitor.
Instead I access the Linux command line with ssh and Node-red with a browser on my PC.

I don't use an SD card, instead the Pi boots from an SSD.
And not all SD cards are created equal.
You can get a rough idea of yours' performance with these two comands, for write speed and read speed respectively.

dd if=/dev/zero of=./TestingFile bs=100M count=10 oflag=direct
dd if=./TestingFile of=/dev/zero bs=100M count=10 oflag=dsync

On my Pi 4 with SSD this shows write speed of 286MB/s and read speed of 362MB/s
By comparison, a not very good SD card gives me 13.2 and 23.3 MB/s