rwaldron / io-plugins

Documentation and discussion point for IO Plugins
117 stars 21 forks source link

Asking for info about use IO Plugins johnny5 and linux-io to create a new plugin for Olinuxino-A20 SBC to use on node-red GUI #25

Open gusantor opened 1 year ago

gusantor commented 1 year ago

Hello

I'd like to to use IO Plugins, johnny5 and linux-io to create a new plugin for Olinuxino-A20 SBC, to use on node-red GUI

So far I've just installed node-red@3.0.2, using the Raspberry Pi script, running OK

I've installed node-red-contrib-johnny-five, using "Manage palette" on node-red GUI

But when I try to install linux-io, it doesn't appear to be available to the palette, so I went through cli to ~/.node-red and use npm

npm install linux-io

It installed ok, but doesn't appear in the node list or anywhere.

Please, it would bu great if somebody can give a hint on how to start on the olimex a20 IO plugin

Thanks.

nebrius commented 1 year ago

Hi @gusantor.

First question: have you posted in the node-red GitHub repo about this? Sounds to me like this is more of a node-red issue than a Johnny-five issue.

Second question: have you tried installing raspi-io instead of linux-io?

gusantor commented 1 year ago

Thanks @nebrius

I just now open a topic at node-red , https://discourse.nodered.org/t/nodes-installed-using-npm-wont-show-up-in-palette/71146

Neither raspi-io nor linux-io are available through Node-red GUI palette install tool

This is why I went for npm install in the ~/.node-red folder

Nevertheless I've locally build the lower-case example, and upload it (through Node-red GUI palette install tool) as .tgz and this way it is available as a node.

But when try to do the same with a git clone of linux-io, Node-red installer complains and can't go forward.

I'm supposing that installing node-red-contrib-johnny-five and linux-io will enable an option on the gpio-in config node (johnny5 group), to select linux-io as ioplugin ...

Is this the right way ?

nebrius commented 1 year ago

Is this the right way ?

Unfortunately I don't know. I've never used node-red before and don't really understand how it works. Hopefully the node-red folks can help you out.