Node-Red

Topics about the Software of Revolution Pi
Post Reply
User avatar
Truos
Posts: 28
Joined: 12 Jul 2018, 07:48
Answers: 0

Node-Red

Post by Truos »

Hi,

Trying to get Node Red to work

This is my running config export of IO names
https://pastebin.com/raw/8KnQpjy4

I can set the outputs via piTest -w but can't get the node red to work.
How do I adress the outputs and how to I read the inputs?
Nodes.png
Nodes.png (21.25 KiB) Viewed 3127 times
revpi-write.png
revpi-write.png (148.64 KiB) Viewed 3127 times
revpi-read.png
revpi-read.png (144.47 KiB) Viewed 3127 times
User avatar
Truos
Posts: 28
Joined: 12 Jul 2018, 07:48
Answers: 0

Re: Node-Red

Post by Truos »

Managed to get it to work.
Using piTest I managed to get a different offset that the export showed me.

Code: Select all

└──╼ $piTest -w O_1_1,1
Set bit 0 on byte at offset 183. Value 1
And using that in Node Red worked.
Same with reading inputs
kunby
Posts: 1
Joined: 04 Feb 2020, 08:14
Answers: 0

Re: Node-Red

Post by kunby »

Hi Truos,

I am trying to install node-red-contrib-revolution-pi-dio node 0.0.4 on my system but I can't.
I tried via Manage Palette of node-red dashboard and also using npm install node-red-contrib-revolution-pi-dio but it did not work. Before I have also installed the ffi-module.
Do you have suggestions or ideas how to solve that problem?

Thank you.
Post Reply