Page 1 of 1

Node-Red

Posted: 01 Nov 2018, 14:08
by duncanvsmith
Hi all, I was wondering how far the Revolution PI is working with Node-Red? I am no "coder" programmer, I have been using Node-Red for a long time now, I would love to use it with the Revolution PI. Are there any custom nodes supporting the I/O hardware of the PI. I stopped using Codesys because nod-red can just about connect with anything. I use it with KNX, ModBus and a whole lot of other things. I like the Revolution PI concept because it can be used for industry.

Duncan.

Re: Node-Red

Posted: 02 Nov 2018, 08:14
by Eduard
Hi Duncan,

Node-Red also works with our Revolution PI and is already installed.
Unfortunately we don't have our own Node-Red node to access the process image yet. But there are different solutions from other forum users, see for example here.

Eduard

Re: Node-Red

Posted: 02 Nov 2018, 08:18
by RevPiModIO
You can use Node-Red with MQTT Nodes to get and set IOs of the RevPi.

We developed the RevPiPyLoad Service, which supports sending IO Values via MQTT. So if you install revpipyload, activate MQTT and install mosquitto on the Revolution Pi, you are able to use NodeRed...

Code: Select all

pi@RevPi ~/ $ sudo apt-get update

# Install RevPiPyLoad and mosquitto broker
pi@RevPi ~/ $ sudo apt-get install revpipyload mosquitto mosquitto-clients
After that, you have a local mqtt broker "localhost" to which the RevPiPyLoad service publish the values and NodeRed subscribe them.

Expand the "MQTT" Section to find information about how to setup RevPiPyLoad to send IO-Values via MQTT (you can set IO values as well)
https://revpimodio.org/en/revpipyplc-2/ ... ad/#config

Then use the Input/Output "mqtt" nodes in Node-Red to get the Values.
Screenshot_20180903_144517.png
Screenshot_20180903_144517.png (44.8 KiB) Viewed 6110 times

We are writing a blog entry with a step by step manual for that... But it takes some more time and will be available in German first.

By the way: Replace the ".../io/..." part in the topic with ".../event/..." to get changed values immediately!!!

Regards, Sven