mit-in-red-nodes
v0.0.9
Published
Input nodes for Mitown platform
Readme
mit-in-red-nodes
Important Notice All the nodes whitin this project are ment to be used to communicate with the Mitown© platform only.
Install
Run the following command in the root directory of your Node-RED install
npm install mit-in-red-nodesRun the following command for global install
npm install -g mit-in-red-nodesNodes within the package
Here below a list of all the nodes that can be find in the package.
Send Message
The send message node, which can be find as message in the palette, is in charge to send data acquired from a device to the Mitown© platform. The data sent will be processed according to the flows defined for the specific source.
How to use
The node requires the definition of a connection to the target Mitown© platform, and the ID of the device which is sending the data.

Here below is shown an example of the payload that should be passed to the node.
msg.payload = [
...
{
"tag": "tag_code",
"value": "tag_value",
"valueType": "numeric|string"
},
...
];Note the value of value field should be expressed between quotes if and only if it is not a number.
The connection can be set up by clicking on the icon-pencil button, which opens the following mask.

