UNPKG

@gapit/node-red-contrib-gapit-modbus

Version:

A Node-RED node witch reads Modbus registers based on gapit code JSON schema

131 lines (130 loc) 3.13 kB
[ { "id": "4baf4f334b779050", "type": "tab", "label": "gapit modbus", "disabled": false, "info": "" }, { "id": "738d78ca6f672b59", "type": "influxdb batch", "z": "4baf4f334b779050", "influxdb": "99e22e92c3be98de", "precision": "", "retentionPolicy": "", "name": "", "database": "modbus", "precisionV18FluxV20": "ms", "retentionPolicyV18Flux": "", "org": "organisation", "bucket": "bucket", "x": 1240, "y": 280, "wires": [] }, { "id": "f1a98ce54346cd03", "type": "gapit-modbus", "z": "4baf4f334b779050", "name": "", "host": "nodered", "port": "502", "deviceName": "123-123-123", "deviceNameDbTag": "uid", "unitId": "1", "gapitCode": "{\"objects\":[{\"group_name\":\"EB Current Bar\",\"read_priority\":0,\"address_type\":\"dec\",\"register_type\":\"holding\",\"group\":[{\"address\":8200,\"description\":\"Breaker 1\",\"scaling_factor\":1,\"unit\":\"A\",\"byte_type\":\"SINT16\"},{\"address\":8201,\"description\":\"Breaker 2\",\"scaling_factor\":0.1,\"unit\":\"A\",\"byte_type\":\"SINT32\"}]}]}", "customTags": "{\"foo\":\"test\",\"baar\":10}", "scalingType": "general", "x": 420, "y": 280, "wires": [["d32ef3b037c73222", "3438922f9c6b25ca"]] }, { "id": "c80bd9f665e8a5b9", "type": "debug", "z": "4baf4f334b779050", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1010, "y": 220, "wires": [] }, { "id": "d32ef3b037c73222", "type": "debug", "z": "4baf4f334b779050", "name": "", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 590, "y": 220, "wires": [] }, { "id": "3438922f9c6b25ca", "type": "gapit-results-to-influx-batch", "z": "4baf4f334b779050", "use_timestamp_from_msg": false, "timestamp_property": "ts", "name": "", "x": 760, "y": 280, "wires": [["738d78ca6f672b59", "c80bd9f665e8a5b9"]] }, { "id": "28060540b4b95271", "type": "inject", "z": "4baf4f334b779050", "name": "", "props": [], "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "x": 170, "y": 280, "wires": [["f1a98ce54346cd03"]] }, { "id": "99e22e92c3be98de", "type": "influxdb", "hostname": "127.0.0.1", "port": "8086", "protocol": "http", "database": "database", "name": "modbus-test", "usetls": false, "tls": "8b3094b6.5fc088", "influxdbVersion": "1.8-flux", "url": "http://influx:8086", "rejectUnauthorized": false }, { "id": "8b3094b6.5fc088", "type": "tls-config", "name": "", "cert": "", "key": "", "ca": "", "certname": "GapitBroker.crt", "keyname": "", "caname": "", "servername": "", "verifyservercert": false } ]