Install via the palette manage in the Node-RED admin ui (no restart needed).
Alternatively run the following command in your Node-RED user directory (typically ~/.node-red
):
npm install node-red-contrib-mikrotik
then restart Node-RED and add an instance of the mikrotik node.
Available actions:
- log
- resources
- wifi
- connections
- reboot
- raw
Add the node to a flow, add an inject and a debug node, configure your connection and you are ready to go.
If you can override every property with the message object. The names are:
msg. -> username, password, host, port, payload/command, ssl
If you like to have a ssl connection between the node and the mikrotik router see the documentation
TBD
For the usage of the RAW/Command mode there are here some examples.