Wer mal sehen will, wie lange sein Raspberry Pi läuft, hier mal dazu ein kleiner Flow:
Hier die Gui dazu. …
Wie arbeitet der Flow? Er fragt einfach per uptime das System mit dem Exc.-Node ab, und gibt das Ergebnis aus:
Die Aktualisierung findet jede Minute statt. Hier der Code des Flows …
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
[ { "id": "8f1b84eb.2c82e", "type": "tab", "label": "Uptime", "disabled": false, "info": "" }, { "id": "ba501f92.7d2bd", "type": "group", "z": "8f1b84eb.2c82e", "name": "Laufzeit", "style": { "fill": "#ffefbf", "label": true }, "nodes": [ "ddbed8fd.dbcda8", "d3f9cf52.28fd38", "477509ff.a135a8" ], "x": 84, "y": 111.5, "w": 522, "h": 97 }, { "id": "ddbed8fd.dbcda8", "type": "ui_text", "z": "8f1b84eb.2c82e", "g": "ba501f92.7d2bd", "group": "bd1b7ac2.5deb78", "order": 0, "width": "0", "height": "0", "name": "", "label": "", "format": "{{msg.payload}}", "layout": "col-center", "x": 530, "y": 160, "wires": [] }, { "id": "d3f9cf52.28fd38", "type": "exec", "z": "8f1b84eb.2c82e", "g": "ba501f92.7d2bd", "command": "uptime", "addpay": true, "append": "", "useSpawn": "false", "timer": "", "oldrc": false, "name": "uptime", "x": 370, "y": 160, "wires": [ [ "ddbed8fd.dbcda8" ], [], [] ] }, { "id": "477509ff.a135a8", "type": "inject", "z": "8f1b84eb.2c82e", "g": "ba501f92.7d2bd", "name": "", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "60", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 200, "y": 160, "wires": [ [ "d3f9cf52.28fd38" ] ] }, { "id": "b5cd3093.b36578", "type": "comment", "z": "8f1b84eb.2c82e", "name": "(c) 2021 Thomas Wenzlaff www.wenzlaff.info", "info": "", "x": 430, "y": 80, "wires": [] }, { "id": "ad04c70c.b27378", "type": "comment", "z": "8f1b84eb.2c82e", "name": "Uptime Counter", "info": "", "x": 160, "y": 80, "wires": [] }, { "id": "bd1b7ac2.5deb78", "type": "ui_group", "name": "Standard", "tab": "c5e3daab.75c128", "order": 1, "disp": true, "width": "6", "collapse": true }, { "id": "c5e3daab.75c128", "type": "ui_tab", "name": "System Timer", "icon": "dashboard", "disabled": false, "hidden": false } ] |