I know the onion-gpio-sysfs library for Python utilizes calls to sysfs to control and monitor GPIO lines. I did a quick google for node red sysfs GPIO and came up with this: https://flows.nodered.org/node/node-red-contrib-opi-gpio
Might give it a shot, I haven't tried it but I'd say there's a decent shot at it working.
Unfortunately I don't have any genuine Onion Omega2 Pro,
I don't use the web based UI (Onion OS or OnionOS - whatever the 'OS' means here ;-)
and I haven't tried the Node-Red package (the Node-Red Graphical Programming interface) yet.
Node-RED is a software tool developed by IBM for wiring together hardware devices, APIs and online services as part of the Internet of Things.
@Landon-Lin Just for reference, Omega1 and Omega2 can't do Node-Red without booting from external storage. Omega2+ has an onboard microSD card. You can configure it to boot from the SD card as in here https://docs.onion.io/omega2-docs/boot-from-external-storage.html (though the instructions don't match up well with current products). But the App Manager will still say Node-Red is incompatible with Omega2+. End-run around that using:
opkg install oos-app-nodered
No more storage issues but SD card is inherently unreliable so eMMC recommended for production as in the Omega2+ Pro. At least it does start up, haven't actually run any flows yet.
Looks like your connection to Community was lost, please wait while we try to reconnect.