Last active
January 10, 2020 02:30
-
-
Save jimwhitfield/0a1b9d3fba369079d4755c6312115cfa to your computer and use it in GitHub Desktop.
Node-Red export of working dashboard for OPS24x on RasPi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "id": "38ae5584.60dc7a", | |
| "type": "tab", | |
| "label": "OPS24--A", | |
| "disabled": false, | |
| "info": "" | |
| }, | |
| { | |
| "id": "f22dee6b.be4d4", | |
| "type": "serial in", | |
| "z": "38ae5584.60dc7a", | |
| "name": "ttyACM0", | |
| "serial": "ad6574b7.601718", | |
| "x": 83, | |
| "y": 107, | |
| "wires": [ | |
| [ | |
| "89c9cc55.d4522" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "919bfeb8.22ee2", | |
| "type": "serial out", | |
| "z": "38ae5584.60dc7a", | |
| "name": "Send to OPS24--A", | |
| "serial": "ad6574b7.601718", | |
| "x": 407, | |
| "y": 54, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "32fd6ea3.63a192", | |
| "type": "inject", | |
| "z": "38ae5584.60dc7a", | |
| "name": "send OJ to switch to JSON", | |
| "topic": "", | |
| "payload": "OJ?P", | |
| "payloadType": "str", | |
| "repeat": "", | |
| "crontab": "", | |
| "once": true, | |
| "onceDelay": "", | |
| "x": 163, | |
| "y": 55, | |
| "wires": [ | |
| [ | |
| "919bfeb8.22ee2" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "89c9cc55.d4522", | |
| "type": "json", | |
| "z": "38ae5584.60dc7a", | |
| "name": "", | |
| "property": "payload", | |
| "action": "", | |
| "pretty": false, | |
| "x": 110, | |
| "y": 220, | |
| "wires": [ | |
| [ | |
| "1e0a574b.5f45a9", | |
| "eb0384c3.928718", | |
| "91767564.8d33a8" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "1e0a574b.5f45a9", | |
| "type": "switch", | |
| "z": "38ae5584.60dc7a", | |
| "name": "if message contains Product", | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "rules": [ | |
| { | |
| "t": "hask", | |
| "v": "Product", | |
| "vt": "str" | |
| } | |
| ], | |
| "checkall": "true", | |
| "repair": false, | |
| "outputs": 1, | |
| "x": 340, | |
| "y": 140, | |
| "wires": [ | |
| [ | |
| "a111147d.f2f518" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "4bf941b9.29294", | |
| "type": "serial out", | |
| "z": "38ae5584.60dc7a", | |
| "name": "Send to OPS24--A", | |
| "serial": "ad6574b7.601718", | |
| "x": 870, | |
| "y": 120, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "cd87eb31.1c2668", | |
| "type": "inject", | |
| "z": "38ae5584.60dc7a", | |
| "name": "send Product Query", | |
| "topic": "", | |
| "payload": "?P", | |
| "payloadType": "str", | |
| "repeat": "", | |
| "crontab": "", | |
| "once": false, | |
| "onceDelay": "", | |
| "x": 650, | |
| "y": 120, | |
| "wires": [ | |
| [ | |
| "4bf941b9.29294" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "525cb3a8.f2579c", | |
| "type": "comment", | |
| "z": "38ae5584.60dc7a", | |
| "name": "A trivial \"command\" to ask for the Product name", | |
| "info": "This is a trivial \"command\" to ask for the Product name\nNotice that there is a switch node that recognizes the \"Product\" message and logs it", | |
| "x": 713, | |
| "y": 74, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "a111147d.f2f518", | |
| "type": "ui_text", | |
| "z": "38ae5584.60dc7a", | |
| "group": "ff9980d4.a63cd", | |
| "order": 1, | |
| "width": 0, | |
| "height": 0, | |
| "name": "", | |
| "label": "Product:", | |
| "format": "{{msg.payload.Product}}", | |
| "layout": "row-spread", | |
| "x": 760, | |
| "y": 240, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "6e26733b.69344c", | |
| "type": "ui_gauge", | |
| "z": "38ae5584.60dc7a", | |
| "name": "speedgauge", | |
| "group": "ff9980d4.a63cd", | |
| "order": 6, | |
| "width": 0, | |
| "height": 0, | |
| "gtype": "gage", | |
| "title": "live", | |
| "label": "m/s", | |
| "format": "{{value}}", | |
| "min": 0, | |
| "max": "5", | |
| "colors": [ | |
| "#00b500", | |
| "#e6e600", | |
| "#ca3838" | |
| ], | |
| "seg1": "", | |
| "seg2": "", | |
| "x": 770, | |
| "y": 340, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "48afd10f.e8f3c", | |
| "type": "ui_chart", | |
| "z": "38ae5584.60dc7a", | |
| "name": "", | |
| "group": "ff9980d4.a63cd", | |
| "order": 8, | |
| "width": 8, | |
| "height": "6", | |
| "label": "speeds", | |
| "chartType": "line", | |
| "legend": "false", | |
| "xformat": "HH:mm", | |
| "interpolate": "linear", | |
| "nodata": "", | |
| "dot": false, | |
| "ymin": "", | |
| "ymax": "5", | |
| "removeOlder": "15", | |
| "removeOlderPoints": "", | |
| "removeOlderUnit": "60", | |
| "cutout": 0, | |
| "useOneColor": false, | |
| "colors": [ | |
| "#1f77b4", | |
| "#aec7e8", | |
| "#ff7f0e", | |
| "#2ca02c", | |
| "#98df8a", | |
| "#d62728", | |
| "#ff9896", | |
| "#9467bd", | |
| "#c5b0d5" | |
| ], | |
| "useOldStyle": false, | |
| "outputs": 1, | |
| "x": 760, | |
| "y": 300, | |
| "wires": [ | |
| [] | |
| ] | |
| }, | |
| { | |
| "id": "b1ac2f2e.99906", | |
| "type": "ui_button", | |
| "z": "38ae5584.60dc7a", | |
| "name": "", | |
| "group": "ff9980d4.a63cd", | |
| "order": 4, | |
| "width": 2, | |
| "height": 1, | |
| "passthru": false, | |
| "label": "Fetch clock", | |
| "tooltip": "", | |
| "color": "", | |
| "bgcolor": "", | |
| "icon": "", | |
| "payload": "C?", | |
| "payloadType": "str", | |
| "topic": "", | |
| "x": 770, | |
| "y": 200, | |
| "wires": [ | |
| [ | |
| "4bf941b9.29294" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "c87ab530.840048", | |
| "type": "ui_text", | |
| "z": "38ae5584.60dc7a", | |
| "group": "ff9980d4.a63cd", | |
| "order": 2, | |
| "width": 0, | |
| "height": 0, | |
| "name": "", | |
| "label": "clock", | |
| "format": "{{msg.payload.Clock}}", | |
| "layout": "row-spread", | |
| "x": 750, | |
| "y": 420, | |
| "wires": [] | |
| }, | |
| { | |
| "id": "eb0384c3.928718", | |
| "type": "switch", | |
| "z": "38ae5584.60dc7a", | |
| "name": "if reply contains Clock", | |
| "property": "payload", | |
| "propertyType": "msg", | |
| "rules": [ | |
| { | |
| "t": "hask", | |
| "v": "Clock", | |
| "vt": "str" | |
| } | |
| ], | |
| "checkall": "true", | |
| "repair": false, | |
| "outputs": 1, | |
| "x": 320, | |
| "y": 420, | |
| "wires": [ | |
| [ | |
| "c87ab530.840048" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "91767564.8d33a8", | |
| "type": "change", | |
| "z": "38ae5584.60dc7a", | |
| "name": "change payload.speed to abs(speed)", | |
| "rules": [ | |
| { | |
| "t": "set", | |
| "p": "payload", | |
| "pt": "msg", | |
| "to": "$abs($number(payload.speed))", | |
| "tot": "jsonata" | |
| } | |
| ], | |
| "action": "", | |
| "property": "", | |
| "from": "", | |
| "to": "", | |
| "reg": false, | |
| "x": 390, | |
| "y": 240, | |
| "wires": [ | |
| [ | |
| "48afd10f.e8f3c", | |
| "6e26733b.69344c" | |
| ] | |
| ] | |
| }, | |
| { | |
| "id": "ad6574b7.601718", | |
| "type": "serial-port", | |
| "z": "", | |
| "serialport": "/dev/ttyACM0", | |
| "serialbaud": "19200", | |
| "databits": "8", | |
| "parity": "none", | |
| "stopbits": "1", | |
| "waitfor": "", | |
| "newline": "\\n", | |
| "bin": "false", | |
| "out": "char", | |
| "addchar": "", | |
| "responsetimeout": "10000" | |
| }, | |
| { | |
| "id": "ff9980d4.a63cd", | |
| "type": "ui_group", | |
| "z": "", | |
| "name": "Dashboard", | |
| "tab": "386c30d5.e96fb", | |
| "disp": false, | |
| "width": 8, | |
| "collapse": false | |
| }, | |
| { | |
| "id": "386c30d5.e96fb", | |
| "type": "ui_tab", | |
| "z": "", | |
| "name": "OPS-24 A series", | |
| "icon": "dashboard", | |
| "disabled": false, | |
| "hidden": false | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment