Created
July 12, 2019 04:49
-
-
Save jadonk/76357eccd7decb3918cf3494a10e9090 to your computer and use it in GitHub Desktop.
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": "731e766b.e7bba8", | |
"type": "tab", | |
"label": "Flow 1", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "eb64db82.f8c848", | |
"type": "file in", | |
"z": "731e766b.e7bba8", | |
"name": "mag_x", | |
"filename": "/sys/bus/iio/devices/iio:device2/in_magn_x_raw", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 230, | |
"y": 40, | |
"wires": [ | |
[ | |
"75f041b2.73356", | |
"90564383.474e5" | |
] | |
], | |
"outputLabels": [ | |
"x" | |
] | |
}, | |
{ | |
"id": "f79788b3.62abc8", | |
"type": "inject", | |
"z": "731e766b.e7bba8", | |
"name": "x", | |
"topic": "x", | |
"payload": "", | |
"payloadType": "date", | |
"repeat": "0.2", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"x": 90, | |
"y": 40, | |
"wires": [ | |
[ | |
"eb64db82.f8c848", | |
"586ff129.6dd06", | |
"641b1f8d.080fc" | |
] | |
] | |
}, | |
{ | |
"id": "fe78dfab.7f3ef", | |
"type": "ui_gauge", | |
"z": "731e766b.e7bba8", | |
"name": "", | |
"group": "e7ad88ec.e37dd8", | |
"order": 1, | |
"width": 0, | |
"height": 0, | |
"gtype": "compass", | |
"title": "", | |
"label": "degrees", | |
"format": "{{value}}", | |
"min": "-180", | |
"max": "180", | |
"colors": [ | |
"#00b500", | |
"#e6e600", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 660, | |
"y": 60, | |
"wires": [] | |
}, | |
{ | |
"id": "b462c4f0.0aef68", | |
"type": "file in", | |
"z": "731e766b.e7bba8", | |
"name": "eqep_48300180", | |
"filename": "/sys/bus/platform/devices/48300180.eqep/position", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 260, | |
"y": 200, | |
"wires": [ | |
[ | |
"773f9d5c.d8c044", | |
"be12ca76.aa4c48" | |
] | |
] | |
}, | |
{ | |
"id": "773f9d5c.d8c044", | |
"type": "ui_gauge", | |
"z": "731e766b.e7bba8", | |
"name": "", | |
"group": "cd9d4a3.c810ab8", | |
"order": 1, | |
"width": 0, | |
"height": 0, | |
"gtype": "donut", | |
"title": "", | |
"label": "units", | |
"format": "{{value}}", | |
"min": 0, | |
"max": 10, | |
"colors": [ | |
"#00b500", | |
"#e6e600", | |
"#ca3838" | |
], | |
"seg1": "", | |
"seg2": "", | |
"x": 650, | |
"y": 180, | |
"wires": [] | |
}, | |
{ | |
"id": "88f83820.424588", | |
"type": "file in", | |
"z": "731e766b.e7bba8", | |
"name": "mag_y", | |
"filename": "/sys/bus/iio/devices/iio:device2/in_magn_y_raw", | |
"format": "utf8", | |
"chunk": false, | |
"sendError": false, | |
"x": 230, | |
"y": 100, | |
"wires": [ | |
[ | |
"75f041b2.73356", | |
"574e8e15.b0154" | |
] | |
], | |
"outputLabels": [ | |
"y" | |
] | |
}, | |
{ | |
"id": "75f041b2.73356", | |
"type": "join", | |
"z": "731e766b.e7bba8", | |
"name": "", | |
"mode": "custom", | |
"build": "object", | |
"property": "payload", | |
"propertyType": "msg", | |
"key": "topic", | |
"joiner": "\\n", | |
"joinerType": "str", | |
"accumulate": false, | |
"timeout": "", | |
"count": "2", | |
"reduceRight": false, | |
"reduceExp": "", | |
"reduceInit": "", | |
"reduceInitType": "num", | |
"reduceFixup": "", | |
"x": 370, | |
"y": 60, | |
"wires": [ | |
[ | |
"f1f0034a.e2909" | |
] | |
] | |
}, | |
{ | |
"id": "f1f0034a.e2909", | |
"type": "function", | |
"z": "731e766b.e7bba8", | |
"name": "atan2(x,y)", | |
"func": "var x = msg.payload['x'];\nvar y = msg.payload['y'];\nmsg.payload = Math.atan2(x,y);\nmsg.payload *= (180 / Math.PI);\nmsg.payload = parseInt(msg.payload);\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 500, | |
"y": 60, | |
"wires": [ | |
[ | |
"fe78dfab.7f3ef" | |
] | |
] | |
}, | |
{ | |
"id": "586ff129.6dd06", | |
"type": "change", | |
"z": "731e766b.e7bba8", | |
"name": "y", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "topic", | |
"pt": "msg", | |
"to": "y", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 90, | |
"y": 100, | |
"wires": [ | |
[ | |
"88f83820.424588" | |
] | |
] | |
}, | |
{ | |
"id": "641b1f8d.080fc", | |
"type": "change", | |
"z": "731e766b.e7bba8", | |
"name": "qep0", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "topic", | |
"pt": "msg", | |
"to": "qep0", | |
"tot": "str" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 90, | |
"y": 200, | |
"wires": [ | |
[ | |
"b462c4f0.0aef68" | |
] | |
] | |
}, | |
{ | |
"id": "90564383.474e5", | |
"type": "ui_text", | |
"z": "731e766b.e7bba8", | |
"group": "e7ad88ec.e37dd8", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "mag_x", | |
"format": "{{msg.payload}}", | |
"layout": "row-spread", | |
"x": 650, | |
"y": 100, | |
"wires": [] | |
}, | |
{ | |
"id": "574e8e15.b0154", | |
"type": "ui_text", | |
"z": "731e766b.e7bba8", | |
"group": "e7ad88ec.e37dd8", | |
"order": 3, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "mag_y", | |
"format": "{{msg.payload}}", | |
"layout": "row-spread", | |
"x": 650, | |
"y": 140, | |
"wires": [] | |
}, | |
{ | |
"id": "be12ca76.aa4c48", | |
"type": "ui_text", | |
"z": "731e766b.e7bba8", | |
"group": "cd9d4a3.c810ab8", | |
"order": 2, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "text", | |
"format": "{{msg.payload}}", | |
"layout": "row-spread", | |
"x": 650, | |
"y": 220, | |
"wires": [] | |
}, | |
{ | |
"id": "cc855e5b.50275", | |
"type": "ui_template", | |
"z": "731e766b.e7bba8", | |
"group": "d1ef6f0c.9bf6a", | |
"name": "", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"format": "<img src=\"https://hackster.imgix.net/uploads/attachments/464262/beagleboneblue_blink_LED.png?auto=compress%2Cformat&w=1280&h=960&fit=max\" />\n", | |
"storeOutMessages": true, | |
"fwdInMessages": true, | |
"templateScope": "local", | |
"x": 327.5, | |
"y": 303, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "bd1ff0e.f155d1", | |
"type": "inject", | |
"z": "731e766b.e7bba8", | |
"name": "", | |
"topic": "", | |
"payload": "", | |
"payloadType": "date", | |
"repeat": "", | |
"crontab": "", | |
"once": true, | |
"onceDelay": 0.1, | |
"x": 135.5, | |
"y": 300, | |
"wires": [ | |
[ | |
"cc855e5b.50275" | |
] | |
] | |
}, | |
{ | |
"id": "8f1c10ab.ce9f6", | |
"type": "ui_template", | |
"z": "731e766b.e7bba8", | |
"group": "6702d4a0.8bdfdc", | |
"name": "Camera Stream", | |
"order": 0, | |
"width": "8", | |
"height": "8", | |
"format": "<img ng-src=\"{{msg.payload}}\" width=\"640\" height=\"480\" alt=\"image\" />", | |
"storeOutMessages": true, | |
"fwdInMessages": true, | |
"templateScope": "local", | |
"x": 521, | |
"y": 386, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "fefa0136.4f83d", | |
"type": "inject", | |
"z": "731e766b.e7bba8", | |
"name": "Inject stream uri", | |
"topic": "", | |
"payload": "http://192.168.7.2:8090/?action=stream", | |
"payloadType": "str", | |
"repeat": "", | |
"crontab": "", | |
"once": true, | |
"onceDelay": "", | |
"x": 306, | |
"y": 387, | |
"wires": [ | |
[ | |
"8f1c10ab.ce9f6" | |
] | |
] | |
}, | |
{ | |
"id": "e7ad88ec.e37dd8", | |
"type": "ui_group", | |
"z": "", | |
"name": "Magnetometer", | |
"tab": "cd3a60f.2321fa", | |
"order": 2, | |
"disp": true, | |
"width": "6", | |
"collapse": false | |
}, | |
{ | |
"id": "cd9d4a3.c810ab8", | |
"type": "ui_group", | |
"z": "", | |
"name": "Encoders", | |
"tab": "cd3a60f.2321fa", | |
"order": 3, | |
"disp": true, | |
"width": "6", | |
"collapse": false | |
}, | |
{ | |
"id": "d1ef6f0c.9bf6a", | |
"type": "ui_group", | |
"z": "", | |
"name": "Board", | |
"tab": "cd3a60f.2321fa", | |
"order": 1, | |
"disp": true, | |
"width": "8", | |
"collapse": false | |
}, | |
{ | |
"id": "6702d4a0.8bdfdc", | |
"type": "ui_group", | |
"z": "", | |
"name": "Camera", | |
"tab": "cd3a60f.2321fa", | |
"order": 4, | |
"disp": true, | |
"width": "8", | |
"collapse": false | |
}, | |
{ | |
"id": "cd3a60f.2321fa", | |
"type": "ui_tab", | |
"z": "", | |
"name": "BeagleBone Blue", | |
"icon": "dashboard", | |
"order": 1, | |
"disabled": false, | |
"hidden": false | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment