Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "2c4719ff.f67376",
- "type": "tab",
- "label": "Flow 1"
- },
- {
- "id": "67dc7642.62dc88",
- "type": "exec",
- "z": "2c4719ff.f67376",
- "command": "vcgencmd measure_temp",
- "addpay": false,
- "append": "",
- "useSpawn": false,
- "timer": "",
- "name": "Temp",
- "x": 309,
- "y": 171,
- "wires": [
- [
- "e73a6e0b.fbdd4"
- ],
- [],
- []
- ]
- },
- {
- "id": "50af9116.2454a",
- "type": "inject",
- "z": "2c4719ff.f67376",
- "name": "",
- "topic": "",
- "payload": "",
- "payloadType": "date",
- "repeat": "1",
- "crontab": "",
- "once": false,
- "x": 112,
- "y": 233,
- "wires": [
- [
- "6ed697dc.ca6af8",
- "67dc7642.62dc88",
- "36fdf7dc.81d5e8"
- ]
- ]
- },
- {
- "id": "e73a6e0b.fbdd4",
- "type": "function",
- "z": "2c4719ff.f67376",
- "name": "SubString",
- "func": "str = msg.payload \nmsg.payload = str.substring(5, 9);\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 447,
- "y": 158,
- "wires": [
- [
- "42634714.c65168"
- ]
- ]
- },
- {
- "id": "42634714.c65168",
- "type": "ui_gauge",
- "z": "2c4719ff.f67376",
- "name": "T CPU",
- "group": "ea1dfcaa.d5eeb",
- "order": 1,
- "width": "6",
- "height": "5",
- "gtype": "gage",
- "title": "CPU Temp.",
- "label": "°C",
- "format": "{{value}}",
- "min": 0,
- "max": "90",
- "colors": [
- "#00b500",
- "#b6e203",
- "#ca3838"
- ],
- "x": 590,
- "y": 158,
- "wires": []
- },
- {
- "id": "6ed697dc.ca6af8",
- "type": "exec",
- "z": "2c4719ff.f67376",
- "command": "top -d 0.5 -b -n2 | grep \"Cpu(s)\"|tail -n 1 | awk '{print $2 + $4}'",
- "addpay": false,
- "append": "",
- "useSpawn": "",
- "timer": "",
- "name": "LOAD",
- "x": 307,
- "y": 232.5,
- "wires": [
- [
- "98f6b2ed.33891"
- ],
- [],
- []
- ]
- },
- {
- "id": "98f6b2ed.33891",
- "type": "ui_gauge",
- "z": "2c4719ff.f67376",
- "name": "CPU LOAD",
- "group": "5d3dc874.cb2248",
- "order": 1,
- "width": "6",
- "height": "6",
- "gtype": "donut",
- "title": "CPU LOAD",
- "label": "%",
- "format": "{{value}}",
- "min": 0,
- "max": "90",
- "colors": [
- "#00b500",
- "#e6e600",
- "#ca3838"
- ],
- "x": 573,
- "y": 218,
- "wires": []
- },
- {
- "id": "36fdf7dc.81d5e8",
- "type": "exec",
- "z": "2c4719ff.f67376",
- "command": "free | grep Mem | awk '{print 100*($4+$6+$7)/$2}'",
- "addpay": false,
- "append": "",
- "useSpawn": "",
- "timer": "",
- "name": "MEM",
- "x": 310,
- "y": 301,
- "wires": [
- [
- "e438e659.375738"
- ],
- [],
- []
- ]
- },
- {
- "id": "e438e659.375738",
- "type": "ui_text",
- "z": "2c4719ff.f67376",
- "group": "ea1dfcaa.d5eeb",
- "order": 2,
- "width": "6",
- "height": "1",
- "name": "",
- "label": "Free Memory :",
- "format": "{{msg.payload}}%",
- "layout": "row-center",
- "x": 565,
- "y": 288,
- "wires": []
- },
- {
- "id": "ea1dfcaa.d5eeb",
- "type": "ui_group",
- "z": "",
- "name": "Temp",
- "tab": "a692bd60.1068c",
- "order": 1,
- "disp": false,
- "width": "6"
- },
- {
- "id": "5d3dc874.cb2248",
- "type": "ui_group",
- "z": "",
- "name": "Load",
- "tab": "a692bd60.1068c",
- "order": 2,
- "disp": false,
- "width": "6"
- },
- {
- "id": "a692bd60.1068c",
- "type": "ui_tab",
- "z": "",
- "name": "Home",
- "icon": "dashboard",
- "order": 1
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement