The following guide is meant to get you started using Node-Red and the ENHP boards. Connecting boards, to themselves, to other, and even to the wider internet using sockets.

Feel free to use my node-RED server “hardwaremovement.com:1880”, but I strongly recommend you run your own server, that way you others can’t accidentally change your connections. By default, all the boards are pre-programed to use the same mosquitto (mqtt) server, meaning we can all send messages to each other, even if they are coming from different node-red servers. Please be respectful and only send commands to boards you have mutual agreement to.

Installing Node-RED:

Running Node-RED locally : Node-RED

Install node-red

sudo npm install -g --unsafe-perm node-red

Running

To run it, simply type node-red on your terminal window.

$ node-red

Untitled

By default, it will run on port 1880 of your localhost. So head over there and check it out: http://127.0.0.1:1880/

Untitled

Congrats! you have your own node-red server!

At this point you can start building your own flows, make sure to deploy them every time you make changes.

Installing shared flows

I made a special node (a subflow), to make it more practical for us. It is preprogramed to route inputs and outputs from and onto the different boards. You can simply drag it into your workspace as any other node.