There is a pretty devoted following, not to the level of the Pi or anything like that, but the board has similar GPIO capabilities and supports a whole host of different OSs.
I've just started exploring Node Red on the RPi, and that got me wondering what I might be able to do with the Pine.
Full disclosure..I'm more a hobbyist/experimenter, so not a hardware or software guru to where I could look at the architecture and determine how complex it might be to create something similar to the nodes that are provided on the RPi version of Node Red..hence, my question.
Well there aren't any dedicated nodes yet... - but the ones we have actually call out to python - and there is some python love on Pine - eg https://forum.pine64.org/showthread.php?tid=723
so you may be able to fork the Pi GPIO nodes and make a Pine equivalent
Ok, that makes sense now that I dig into the RPi nodes and see how they are constructed.
I installed node-red on a Pine last night, and figured I'd test using the RPi nodes. As expected, with the different I/O (while the pin layout and labels are somewhat the same, architecture is significantly different) design of the Pine, nothing worked.
While I now see what you are referring to as far as the possibly forking the Pi nodes, using the Pine version of RPi.GPIO, don't think I have the skill level with either python of node.js to have half a chance of making it all work.
I know this bumps this old thread but for those with non-rpi hardware like any pine64 board you'll want to look at GitHub - fivdi/onoff: GPIO access and interrupt detection with Node.js which uses Linux sysfs. Thus using it to control/sense gpios is NOT dependent on hardware. I have used this library for node code on pine64 and rock64 board's gpios no issues, but not specifically within nodered. AFAIK no one has wrapped this module into node red nodes (easy enough to do)
The pigio library is written for and complied specifically for RPI hardware and does not use sysfs. The downside of sysfs is that you can't do hardware PWM but only software PWM (which may or may not work). But for just simple sensing a pin or turning it on and of (not high frequency) using this node module (i.e. sysfs) totally works.
Also I'll mention that later armbian kernels (for pine boards ) support one wire and i2c so you can use node and nodered code that may use those. Specifically the same dev had made an i2c module as well GitHub - fivdi/i2c-bus: I2C serial bus access with Node.js