Node-RED nodes for WebIQ API integration (reconnect + bugfix version)
npm install node-red-contrib-webiq-apicmd, id, and data fields.
~/.node-red):
bash
npm install node-red-contrib-webiq
`
Usage
$3
1. Drag the WebIQ API Connect node into your Node-RED workspace.
2. Configure the node properties:
- Name: A name for the node instance.
- Host: The WebIQ server host.
- Port: The WebIQ server port.
- Project: The WebIQ project name.
- Username: Your WebIQ project username.
- Password: Your WebIQ project password.
3. Deploy the changes.
$3
1. Drag the API Request node into your Node-RED workspace.
2. Configure the node properties as needed.
3. Inject the required fields (cmd, id, data) to send commands to the WebIQ server.
4. Interval time is used to inject data, set 0 for deactivation.
5. Deploy the changes.
Example Flow to import in Node-Red
`json
[{"id":"cc66026e27238f8e","type":"inject","z":"2ff0686f23684c79","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":240,"wires":[["0"]]},{"id":"738399a874eef1da","type":"webiq-api-connect","z":"2ff0686f23684c79","name":"WebIQ Connection","host":"localhost","port":"10123","project":"my-project-name","username":"admin","password":"admin","x":610,"y":240,"wires":[["38074751dd3ff1a0"]]},{"id":"0","type":"api-request","z":"2ff0686f23684c79","name":"API Request","cmd":"io.read","data":"[\"DSin\", \"SInt\"]","interval":"0","x":370,"y":240,"wires":[["738399a874eef1da"]]},{"id":"38074751dd3ff1a0","type":"debug","z":"2ff0686f23684c79","name":"debug 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":800,"y":240,"wires":[]}]
``