NodeRED Protocol
- Make sure to have Glue as well as NodeRED installed.
- You need a beta version of our NodeRED Nodes. This can't be installed via the NodeRED UI, so you need to use the command line:
- Open a terminal (Command Prompt on Windows) and navigate (
cd yourPathHere
) to the NodeRED folder. The directory is here:- Windows:
C:\Users\yourUserName\.node-red
- MacOS:
~/.node-red
- Linux:
~/.node-red
- Windows:
- Run
npm i @makeproaudio/node-red-contrib-makehaus@beta
- Now our nodes are installed. Start NodeRED
- You find a
glue
node in theMakeHaus
section of the nodes. Add it to the workflow and set a port (for example14841
) as well as give names to the protocols (which names don't matter, just make sure to remember them) - Start Glue
- Create a new Solution
- Start the Solution by selecting it and then click on
Targets
in the top menu - Click the green plus button next to
My Targets
on the left hand side to create a new target. - Select the newly created target calles
Unnamed Target
and rename it according to your needs. - In the main sectiopn choose
NodeRED
where it saysProtocol
. - Then, create a few groups with parameters inside.
- Click the green pencil button to edit the parameters inside a group.
- Insert one of your protocol names from step 6 into each protocol field. This determines which output of the glue node will send out your message.
- In order to use the target, navigate to
Features
in the menu. - Create a new instance of the
Single Target Feature
by using the plus icon next toMy Features
. - Select the feature instance and choose your target.
- Insert the same port which you configured in the glue node in NodeRED. Then, press
Save & Apply
. - The NodeRED glue node should now say
GLUE connected
. If it does not, please redeploy the flow until it connects. - You should now be able to use the
Test Target
button to send messages to the node.
Troubleshooting
In case the connection does not work, you can check what glue is sending to NodeRED:
- Enable the logging scope
mpx:glue:nodered
by navigating toSettings
and thenDeveloper
. Select activate the checkbox next tompx:glue:nodered
and clickSave & Apply
. - Now click the
View logs
button to see all logs.