#NR7V1 : Node-RED & mbCONNECT24

Application-Note: #NR7V1: Node-RED & mbCONNECT24

Related Documents:

  • Application-Note: #NR0V1 : Get Node-RED ready on my router
  • Application-Note: #NR1V1 : Hello World
  • https://nodered.org/docs/user-guide

This application describes how to create an mbCONNECT24 Tag and exchange the variable between Node-RED and mbCONNECT24. So you can use mbCONNECT24 Dashboards to display variables feeded by Node-RED.

For this application-note we provide an Example Flow for Node-RED which displays a value from and to mbCONNECT24. Please consider that this application is running on the router and can be accessed via http or https://router-ip:1880/ui. You can access it also from outside through an Web2Go link from your mbCONNECT24 account.

Description 1 – Dashboard

To exchange values between mbCONNECT24 and Node-RED we need to create tags where both application can communicate to.

1. First we create an Tag in the mbCONNECT24 account where the router is present:

Description 2 - Settings for Tags in mbCONNECT24

Select as type the "IoT - Flow Variable".

Description 3 - create your mbCONNECT24 Tag

Synchronize your mbCONNECT24 configuration with your router.

 

2. We edit our flow:

Description 4 - Flow

This flow shows a Tag coming from mbCONNECT24 called "Oeltemperatur" which will go thru the filter function to extract only this Tag from the payload message and set the slider on the dashboard. So this means when the value is changed from the mbCONNECT24 site it will update the slider on the Node-RED dashboard. The slider itself messages his value back to mbCONNECT24.

In our cloud node you can click the "update" button on the right bottom to update the variable list in Node-RED and your Tag from mbCONNECT24 will appear.

Description 5 - Cloud node

  The filter makes sure, that only the message from the Tag is going through.

Description 6 - filter node

See below the Flow as a file to Import in your application.