Created
October 8, 2019 12:40
-
-
Save dmalawey/12f6e471ef1d83ed05ae91693a4b2948 to your computer and use it in GitHub Desktop.
NodeRed code for telemetry.py plus extras
This file contains 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": "267bf868.5e6a88", | |
"type": "tab", | |
"label": "ScuttleFlowGeneral", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "84aaf1fd.4870b", | |
"type": "inject", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"topic": "Log_data", | |
"payload": "", | |
"payloadType": "date", | |
"repeat": "0.25", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"x": 160, | |
"y": 100, | |
"wires": [ | |
[ | |
"25e4c47e.de9aac", | |
"2a578177.1b77ae", | |
"f120e93.a366118", | |
"74d376c3.e23328", | |
"5e216698.9005e8", | |
"6cb9c8ba.4f34c8", | |
"dabd4d9a.e206e", | |
"befa815e.41c14", | |
"604ff33b.f93dec", | |
"4a333917.f27fc8", | |
"99bb4354.48f7a", | |
"578d4a29.648c44" | |
] | |
] | |
}, | |
{ | |
"id": "dc558ab6.a492a8", | |
"type": "ui_chart", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "f67699c2.7badc8", | |
"order": 4, | |
"width": 0, | |
"height": 0, | |
"label": "X-axis", | |
"chartType": "line", | |
"legend": "false", | |
"xformat": "HH:mm:ss", | |
"interpolate": "linear", | |
"nodata": "x data", | |
"dot": false, | |
"ymin": "-1.1", | |
"ymax": "1.1", | |
"removeOlder": "30", | |
"removeOlderPoints": "", | |
"removeOlderUnit": "1", | |
"cutout": 0, | |
"useOneColor": false, | |
"colors": [ | |
"#1f77b4", | |
"#aec7e8", | |
"#ff7f0e", | |
"#2ca02c", | |
"#98df8a", | |
"#d62728", | |
"#ff9896", | |
"#9467bd", | |
"#c5b0d5" | |
], | |
"useOldStyle": false, | |
"outputs": 1, | |
"x": 630, | |
"y": 100, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "c6b37c32.ecf7b", | |
"type": "ui_chart", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "f67699c2.7badc8", | |
"order": 6, | |
"width": 0, | |
"height": 0, | |
"label": "Y axis", | |
"chartType": "line", | |
"legend": "false", | |
"xformat": "HH:mm:ss", | |
"interpolate": "linear", | |
"nodata": "y data", | |
"dot": false, | |
"ymin": "-1.1", | |
"ymax": "1.1", | |
"removeOlder": "30", | |
"removeOlderPoints": "", | |
"removeOlderUnit": "1", | |
"cutout": 0, | |
"useOneColor": false, | |
"colors": [ | |
"#1f77b4", | |
"#aec7e8", | |
"#ff7f0e", | |
"#2ca02c", | |
"#98df8a", | |
"#d62728", | |
"#ff9896", | |
"#9467bd", | |
"#c5b0d5" | |
], | |
"useOldStyle": false, | |
"outputs": 1, | |
"x": 630, | |
"y": 140, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "25e4c47e.de9aac", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/a.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 430, | |
"y": 100, | |
"wires": [ | |
[ | |
"dc558ab6.a492a8", | |
"db7d617a.913c3" | |
] | |
] | |
}, | |
{ | |
"id": "2a578177.1b77ae", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/b.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 430, | |
"y": 140, | |
"wires": [ | |
[ | |
"c6b37c32.ecf7b", | |
"748caadb.c08504" | |
] | |
] | |
}, | |
{ | |
"id": "f120e93.a366118", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/c.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 430, | |
"y": 180, | |
"wires": [ | |
[ | |
"b3af08c7.7bd168", | |
"bbca66e3.d1fff8" | |
] | |
] | |
}, | |
{ | |
"id": "b3af08c7.7bd168", | |
"type": "ui_chart", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "f67699c2.7badc8", | |
"order": 1, | |
"width": 0, | |
"height": 0, | |
"label": "arctan2(X/Y)", | |
"chartType": "line", | |
"legend": "false", | |
"xformat": "HH:mm:ss", | |
"interpolate": "linear", | |
"nodata": "y data", | |
"dot": false, | |
"ymin": "-185", | |
"ymax": "185", | |
"removeOlder": "40", | |
"removeOlderPoints": "", | |
"removeOlderUnit": "1", | |
"cutout": 0, | |
"useOneColor": false, | |
"colors": [ | |
"#1f77b4", | |
"#aec7e8", | |
"#ff7f0e", | |
"#2ca02c", | |
"#98df8a", | |
"#d62728", | |
"#ff9896", | |
"#9467bd", | |
"#c5b0d5" | |
], | |
"useOldStyle": false, | |
"outputs": 1, | |
"x": 650, | |
"y": 180, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "db7d617a.913c3", | |
"type": "ui_text", | |
"z": "267bf868.5e6a88", | |
"group": "f67699c2.7badc8", | |
"order": 3, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "x (value)", | |
"format": "{{payload}}", | |
"layout": "row-spread", | |
"x": 780, | |
"y": 80, | |
"wires": [] | |
}, | |
{ | |
"id": "748caadb.c08504", | |
"type": "ui_text", | |
"z": "267bf868.5e6a88", | |
"group": "f67699c2.7badc8", | |
"order": 5, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "y (value)", | |
"format": "{{payload}}", | |
"layout": "row-spread", | |
"x": 780, | |
"y": 120, | |
"wires": [] | |
}, | |
{ | |
"id": "bbca66e3.d1fff8", | |
"type": "ui_text", | |
"z": "267bf868.5e6a88", | |
"group": "f67699c2.7badc8", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "arctan2(X/Y), degrees", | |
"format": "{{payload}}", | |
"layout": "row-spread", | |
"x": 840, | |
"y": 160, | |
"wires": [] | |
}, | |
{ | |
"id": "74d376c3.e23328", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/encL.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 440, | |
"y": 480, | |
"wires": [ | |
[ | |
"1d19f453.f4e81c" | |
] | |
] | |
}, | |
{ | |
"id": "5e216698.9005e8", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/encR.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 450, | |
"y": 520, | |
"wires": [ | |
[ | |
"5fa7da25.94e494" | |
] | |
] | |
}, | |
{ | |
"id": "1d19f453.f4e81c", | |
"type": "ui_chart", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "8106d799.2dab98", | |
"order": 1, | |
"width": 0, | |
"height": 0, | |
"label": "Left Encoder (deg)", | |
"chartType": "line", | |
"legend": "false", | |
"xformat": "HH:mm:ss", | |
"interpolate": "linear", | |
"nodata": "x data", | |
"dot": false, | |
"ymin": "0", | |
"ymax": "360", | |
"removeOlder": "30", | |
"removeOlderPoints": "", | |
"removeOlderUnit": "1", | |
"cutout": 0, | |
"useOneColor": false, | |
"colors": [ | |
"#1f77b4", | |
"#aec7e8", | |
"#ff7f0e", | |
"#2ca02c", | |
"#98df8a", | |
"#d62728", | |
"#ff9896", | |
"#9467bd", | |
"#c5b0d5" | |
], | |
"useOldStyle": false, | |
"outputs": 1, | |
"x": 710, | |
"y": 480, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "5fa7da25.94e494", | |
"type": "ui_chart", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "516c8530.40ad0c", | |
"order": 1, | |
"width": 0, | |
"height": 0, | |
"label": "Right Encoder (deg)", | |
"chartType": "line", | |
"legend": "false", | |
"xformat": "HH:mm:ss", | |
"interpolate": "linear", | |
"nodata": "x data", | |
"dot": false, | |
"ymin": "0", | |
"ymax": "360", | |
"removeOlder": "30", | |
"removeOlderPoints": "", | |
"removeOlderUnit": "1", | |
"cutout": 0, | |
"useOneColor": false, | |
"colors": [ | |
"#1f77b4", | |
"#aec7e8", | |
"#ff7f0e", | |
"#2ca02c", | |
"#98df8a", | |
"#d62728", | |
"#ff9896", | |
"#9467bd", | |
"#c5b0d5" | |
], | |
"useOldStyle": false, | |
"outputs": 1, | |
"x": 720, | |
"y": 520, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "6cb9c8ba.4f34c8", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/p.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 430, | |
"y": 240, | |
"wires": [ | |
[ | |
"51efe3f8.43f16c", | |
"e93e1ba5.213fe8" | |
] | |
] | |
}, | |
{ | |
"id": "51efe3f8.43f16c", | |
"type": "ui_text", | |
"z": "267bf868.5e6a88", | |
"group": "b9befc10.38e19", | |
"order": 1, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "Ambient Pressure (kPa)", | |
"format": "{{payload}}", | |
"layout": "row-spread", | |
"x": 690, | |
"y": 240, | |
"wires": [] | |
}, | |
{ | |
"id": "e93e1ba5.213fe8", | |
"type": "ui_gauge", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "b9befc10.38e19", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"gtype": "gage", | |
"title": "Ambient Pressure (kPa)", | |
"label": "units", | |
"format": "{{value}}", | |
"min": "100.5", | |
"max": "101", | |
"colors": [ | |
"#00b500", | |
"#e6e600", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 690, | |
"y": 280, | |
"wires": [] | |
}, | |
{ | |
"id": "dabd4d9a.e206e", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "xdot", | |
"filename": "/home/debian/basics/xdot.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 370, | |
"y": 580, | |
"wires": [ | |
[ | |
"25c3eb4d.20aee4" | |
] | |
] | |
}, | |
{ | |
"id": "25c3eb4d.20aee4", | |
"type": "ui_gauge", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "ad3dfbb.1de7b08", | |
"order": 3, | |
"width": 0, | |
"height": 0, | |
"gtype": "gage", | |
"title": "x-Dot (m/s)", | |
"label": "units", | |
"format": "{{value}}", | |
"min": "-0.5", | |
"max": "0.5", | |
"colors": [ | |
"#00b500", | |
"#e6e600", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 650, | |
"y": 580, | |
"wires": [] | |
}, | |
{ | |
"id": "befa815e.41c14", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "PDL", | |
"filename": "/home/debian/basics/pdl.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 370, | |
"y": 660, | |
"wires": [ | |
[ | |
"af86d9d9.e87788" | |
] | |
] | |
}, | |
{ | |
"id": "af86d9d9.e87788", | |
"type": "ui_gauge", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "8106d799.2dab98", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"gtype": "gage", | |
"title": "PDL (rad/s)", | |
"label": "units", | |
"format": "{{value}}", | |
"min": "-5", | |
"max": "5", | |
"colors": [ | |
"#00b500", | |
"#e6e600", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 650, | |
"y": 660, | |
"wires": [] | |
}, | |
{ | |
"id": "604ff33b.f93dec", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "PDR", | |
"filename": "/home/debian/basics/pdr.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 370, | |
"y": 700, | |
"wires": [ | |
[ | |
"3d1d541a.720ecc" | |
] | |
] | |
}, | |
{ | |
"id": "3d1d541a.720ecc", | |
"type": "ui_gauge", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "516c8530.40ad0c", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"gtype": "gage", | |
"title": "PDR (rad/s)", | |
"label": "units", | |
"format": "{{value}}", | |
"min": "-5", | |
"max": "5", | |
"colors": [ | |
"#00b500", | |
"#e6e600", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 650, | |
"y": 700, | |
"wires": [] | |
}, | |
{ | |
"id": "4a333917.f27fc8", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "ThetaDot", | |
"filename": "/home/debian/basics/tdot.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 380, | |
"y": 620, | |
"wires": [ | |
[ | |
"93d9915a.20603" | |
] | |
] | |
}, | |
{ | |
"id": "93d9915a.20603", | |
"type": "ui_gauge", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "ad3dfbb.1de7b08", | |
"order": 3, | |
"width": 0, | |
"height": 0, | |
"gtype": "gage", | |
"title": "T-Dot (rad/s)", | |
"label": "units", | |
"format": "{{value}}", | |
"min": "-1.5", | |
"max": "1.5", | |
"colors": [ | |
"#00b500", | |
"#e6e600", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 650, | |
"y": 620, | |
"wires": [] | |
}, | |
{ | |
"id": "3c096692.c0de3a", | |
"type": "ui_gauge", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "b9befc10.38e19", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"gtype": "gage", | |
"title": "Computer Temp (C)", | |
"label": "units", | |
"format": "{{value}}", | |
"min": "35", | |
"max": "55", | |
"colors": [ | |
"#0080ff", | |
"#ffff00", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 670, | |
"y": 320, | |
"wires": [] | |
}, | |
{ | |
"id": "99bb4354.48f7a", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/t.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 430, | |
"y": 320, | |
"wires": [ | |
[ | |
"3c096692.c0de3a" | |
] | |
] | |
}, | |
{ | |
"id": "578d4a29.648c44", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/gpup.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 440, | |
"y": 380, | |
"wires": [ | |
[ | |
"ea83bda2.73b7" | |
] | |
] | |
}, | |
{ | |
"id": "ea83bda2.73b7", | |
"type": "ui_gauge", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "b9befc10.38e19", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"gtype": "gage", | |
"title": "Up (%)", | |
"label": "units", | |
"format": "{{value}}", | |
"min": "-1", | |
"max": "1", | |
"colors": [ | |
"#0080ff", | |
"#ffff00", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 680, | |
"y": 380, | |
"wires": [] | |
}, | |
{ | |
"id": "bcd74bb8.85a958", | |
"type": "ui_slider", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"label": "Proportional Multiplier (kp)", | |
"tooltip": "", | |
"group": "d1425fff.e925", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"outs": "end", | |
"topic": "", | |
"min": "0.01", | |
"max": "0.09", | |
"step": "0.01", | |
"x": 390, | |
"y": 780, | |
"wires": [ | |
[ | |
"de197a19.f4b9b8", | |
"40ad58af.815aa8" | |
] | |
] | |
}, | |
{ | |
"id": "de197a19.f4b9b8", | |
"type": "file", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/kp.txt", | |
"appendNewline": true, | |
"createDir": false, | |
"overwriteFile": "true", | |
"x": 680, | |
"y": 780, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "40ad58af.815aa8", | |
"type": "ui_gauge", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "d1425fff.e925", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"gtype": "gage", | |
"title": "kp (control variable)", | |
"label": "(no unit)", | |
"format": "{{value}}", | |
"min": "0.1", | |
"max": "0.9", | |
"colors": [ | |
"#00b500", | |
"#e6e600", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 650, | |
"y": 820, | |
"wires": [] | |
}, | |
{ | |
"id": "ebba265b.135988", | |
"type": "ui_audio", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "d1425fff.e925", | |
"voice": "en-US", | |
"always": "", | |
"x": 660, | |
"y": 880, | |
"wires": [] | |
}, | |
{ | |
"id": "60519bc7.997384", | |
"type": "ui_button", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "d1425fff.e925", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"passthru": false, | |
"label": "talk", | |
"tooltip": "", | |
"color": "", | |
"bgcolor": "", | |
"icon": "", | |
"payload": "hello world", | |
"payloadType": "str", | |
"topic": "", | |
"x": 310, | |
"y": 880, | |
"wires": [ | |
[ | |
"5369707f.9475b" | |
] | |
] | |
}, | |
{ | |
"id": "5369707f.9475b", | |
"type": "ui_text_input", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"label": "", | |
"tooltip": "", | |
"group": "d1425fff.e925", | |
"order": 6, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"mode": "text", | |
"delay": 300, | |
"topic": "", | |
"x": 500, | |
"y": 880, | |
"wires": [ | |
[ | |
"ebba265b.135988" | |
] | |
] | |
}, | |
{ | |
"id": "3432005a.9d62c", | |
"type": "mqtt in", | |
"z": "267bf868.5e6a88", | |
"name": "test input", | |
"topic": "scuttle/fleet/10/pwm", | |
"qos": "2", | |
"broker": "dd1b8e2f.ff0ef", | |
"x": 320, | |
"y": 1320, | |
"wires": [ | |
[ | |
"35b9bd23.ca1c02", | |
"98a274e6.7c5978", | |
"a254aa2f.f71418", | |
"40c10e4e.91b0b" | |
] | |
] | |
}, | |
{ | |
"id": "35b9bd23.ca1c02", | |
"type": "ui_gauge", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "bee6bbbb.468388", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"gtype": "gage", | |
"title": "Topic: scuttle/fleet/10/pwm", | |
"label": "units", | |
"format": "{{value}}", | |
"min": "0", | |
"max": "1", | |
"colors": [ | |
"#00b500", | |
"#e6e600", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 660, | |
"y": 1320, | |
"wires": [] | |
}, | |
{ | |
"id": "1d55acec.636203", | |
"type": "mqtt out", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"topic": "scuttle/fleet/10/battV", | |
"qos": "", | |
"retain": "", | |
"broker": "dd1b8e2f.ff0ef", | |
"x": 660, | |
"y": 1080, | |
"wires": [] | |
}, | |
{ | |
"id": "373f39cc.270bf6", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/batt_v.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 390, | |
"y": 1080, | |
"wires": [ | |
[ | |
"1d55acec.636203", | |
"e899eaac.574518" | |
] | |
] | |
}, | |
{ | |
"id": "1bb94990.d5cee6", | |
"type": "inject", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"topic": "5 Sec", | |
"payload": "", | |
"payloadType": "date", | |
"repeat": "5", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"x": 130, | |
"y": 1080, | |
"wires": [ | |
[ | |
"373f39cc.270bf6", | |
"b4c60c8e.0e33f" | |
] | |
] | |
}, | |
{ | |
"id": "3e47e830.0ac028", | |
"type": "mqtt out", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"topic": "scuttle/fleet/10/battP", | |
"qos": "", | |
"retain": "", | |
"broker": "dd1b8e2f.ff0ef", | |
"x": 660, | |
"y": 1200, | |
"wires": [] | |
}, | |
{ | |
"id": "b4c60c8e.0e33f", | |
"type": "file in", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/batt_p.txt", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 390, | |
"y": 1200, | |
"wires": [ | |
[ | |
"3e47e830.0ac028", | |
"42a4718c.8d4d7" | |
] | |
] | |
}, | |
{ | |
"id": "e899eaac.574518", | |
"type": "ui_text", | |
"z": "267bf868.5e6a88", | |
"group": "2f0a15e8.697dda", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "[payload] battery voltage:", | |
"format": "{{msg.payload}}", | |
"layout": "row-spread", | |
"x": 680, | |
"y": 1140, | |
"wires": [] | |
}, | |
{ | |
"id": "42a4718c.8d4d7", | |
"type": "ui_text", | |
"z": "267bf868.5e6a88", | |
"group": "2f0a15e8.697dda", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "[payload] battery life:", | |
"format": "{{msg.payload}}", | |
"layout": "row-spread", | |
"x": 660, | |
"y": 1260, | |
"wires": [] | |
}, | |
{ | |
"id": "98a274e6.7c5978", | |
"type": "file", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"filename": "/home/debian/basics/led_pwm.txt", | |
"appendNewline": true, | |
"createDir": false, | |
"overwriteFile": "true", | |
"x": 680, | |
"y": 1360, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "a254aa2f.f71418", | |
"type": "ui_chart", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"group": "bee6bbbb.468388", | |
"order": 1, | |
"width": 0, | |
"height": 0, | |
"label": "pwm chart", | |
"chartType": "line", | |
"legend": "false", | |
"xformat": "HH:mm:ss", | |
"interpolate": "linear", | |
"nodata": "", | |
"dot": false, | |
"ymin": "0", | |
"ymax": "1", | |
"removeOlder": 1, | |
"removeOlderPoints": "", | |
"removeOlderUnit": "60", | |
"cutout": 0, | |
"useOneColor": false, | |
"colors": [ | |
"#1f77b4", | |
"#aec7e8", | |
"#ff7f0e", | |
"#2ca02c", | |
"#98df8a", | |
"#d62728", | |
"#ff9896", | |
"#9467bd", | |
"#c5b0d5" | |
], | |
"useOldStyle": false, | |
"outputs": 1, | |
"x": 610, | |
"y": 1400, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "40c10e4e.91b0b", | |
"type": "mqtt out", | |
"z": "267bf868.5e6a88", | |
"name": "", | |
"topic": "scuttle/fleet/10/pwm_status", | |
"qos": "2", | |
"retain": "", | |
"broker": "dd1b8e2f.ff0ef", | |
"x": 660, | |
"y": 1440, | |
"wires": [] | |
}, | |
{ | |
"id": "f67699c2.7badc8", | |
"type": "ui_group", | |
"z": "", | |
"name": "Compass", | |
"tab": "ebc9477f.44bc38", | |
"order": 1, | |
"disp": true, | |
"width": "8", | |
"collapse": false | |
}, | |
{ | |
"id": "8106d799.2dab98", | |
"type": "ui_group", | |
"z": "", | |
"name": "LeftHand", | |
"tab": "dc77837f.eb748", | |
"order": 1, | |
"disp": true, | |
"width": "6", | |
"collapse": false | |
}, | |
{ | |
"id": "516c8530.40ad0c", | |
"type": "ui_group", | |
"z": "", | |
"name": "RightHand", | |
"tab": "dc77837f.eb748", | |
"order": 2, | |
"disp": true, | |
"width": "6", | |
"collapse": false | |
}, | |
{ | |
"id": "b9befc10.38e19", | |
"type": "ui_group", | |
"z": "", | |
"name": "Ambient", | |
"tab": "ebc9477f.44bc38", | |
"order": 2, | |
"disp": true, | |
"width": "6", | |
"collapse": false | |
}, | |
{ | |
"id": "ad3dfbb.1de7b08", | |
"type": "ui_group", | |
"z": "", | |
"name": "Chassis", | |
"tab": "dc77837f.eb748", | |
"order": 3, | |
"disp": true, | |
"width": "6", | |
"collapse": false | |
}, | |
{ | |
"id": "d1425fff.e925", | |
"type": "ui_group", | |
"z": "", | |
"name": "PID", | |
"tab": "283b1534.3ceefa", | |
"disp": true, | |
"width": "6", | |
"collapse": false | |
}, | |
{ | |
"id": "dd1b8e2f.ff0ef", | |
"type": "mqtt-broker", | |
"z": "", | |
"name": "HiveMQ", | |
"broker": "broker.hivemq.com", | |
"port": "1883", | |
"clientid": "", | |
"usetls": false, | |
"compatmode": true, | |
"keepalive": "60", | |
"cleansession": true, | |
"birthTopic": "", | |
"birthQos": "0", | |
"birthPayload": "", | |
"closeTopic": "", | |
"closeQos": "0", | |
"closePayload": "", | |
"willTopic": "", | |
"willQos": "0", | |
"willPayload": "" | |
}, | |
{ | |
"id": "bee6bbbb.468388", | |
"type": "ui_group", | |
"z": "", | |
"name": "Subscribing", | |
"tab": "c51b265c.b99148", | |
"order": 1, | |
"disp": true, | |
"width": "6", | |
"collapse": false | |
}, | |
{ | |
"id": "2f0a15e8.697dda", | |
"type": "ui_group", | |
"z": "", | |
"name": "Publishing", | |
"tab": "c51b265c.b99148", | |
"disp": true, | |
"width": "6", | |
"collapse": false | |
}, | |
{ | |
"id": "ebc9477f.44bc38", | |
"type": "ui_tab", | |
"z": "", | |
"name": "Sensors", | |
"icon": "dashboard", | |
"disabled": false, | |
"hidden": false | |
}, | |
{ | |
"id": "dc77837f.eb748", | |
"type": "ui_tab", | |
"z": "", | |
"name": "Kinematics", | |
"icon": "dashboard", | |
"order": 2, | |
"disabled": false, | |
"hidden": false | |
}, | |
{ | |
"id": "283b1534.3ceefa", | |
"type": "ui_tab", | |
"z": "", | |
"name": "Controls", | |
"icon": "dashboard", | |
"disabled": false, | |
"hidden": false | |
}, | |
{ | |
"id": "c51b265c.b99148", | |
"type": "ui_tab", | |
"z": "", | |
"name": "MQTT", | |
"icon": "dashboard", | |
"order": 4, | |
"disabled": false, | |
"hidden": false | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment