From b1a5acafda1c53376f47f3a00342524094f263d3 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Sun, 19 Mar 2023 22:49:28 -0400 Subject: [PATCH] Apply rounding to CPU Average Load sensors --- flows.json | 110 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 91 insertions(+), 19 deletions(-) diff --git a/flows.json b/flows.json index 7bedd2a..17ea361 100644 --- a/flows.json +++ b/flows.json @@ -907,10 +907,15 @@ "d681fa96683511c1", "e5cc046624cd5453", "7ffbdab6daa40cd9", - "d00db0647d1c4034" + "d00db0647d1c4034", + "7e733e83ceaef1f9", + "2d43bf0d5590f6bb", + "febc179b34c8cf71" ], "x": 34, - "y": 39 + "y": 39, + "w": 692, + "h": 682 }, { "id": "46275dd0f9461013", @@ -928,7 +933,9 @@ "ca88f85ba00a6744" ], "x": 34, - "y": 739 + "y": 739, + "w": 472, + "h": 202 }, { "id": "ff6d8150e8d5e606", @@ -1347,8 +1354,10 @@ "9833b2aff0f97ea9", "51d05298561cfddb" ], - "x": 714, - "y": 39 + "x": 754, + "y": 39, + "w": 672, + "h": 262 }, { "id": "b708cb6d93f40dee", @@ -26218,7 +26227,7 @@ "y": 440, "wires": [ [ - "c0813ccdec033370" + "7e733e83ceaef1f9" ] ] }, @@ -26240,7 +26249,7 @@ "y": 500, "wires": [ [ - "d681fa96683511c1" + "2d43bf0d5590f6bb" ] ] }, @@ -26262,7 +26271,7 @@ "y": 560, "wires": [ [ - "e5cc046624cd5453" + "febc179b34c8cf71" ] ] }, @@ -26574,7 +26583,7 @@ "attributes": [], "inputOverride": "allow", "outputProperties": [], - "x": 460, + "x": 520, "y": 440, "wires": [ [] @@ -26593,7 +26602,7 @@ "attributes": [], "inputOverride": "allow", "outputProperties": [], - "x": 460, + "x": 520, "y": 500, "wires": [ [] @@ -26612,7 +26621,7 @@ "attributes": [], "inputOverride": "allow", "outputProperties": [], - "x": 460, + "x": 520, "y": 560, "wires": [ [] @@ -26700,7 +26709,7 @@ "valueType": "entityState" } ], - "x": 830, + "x": 870, "y": 80, "wires": [ [ @@ -26723,7 +26732,7 @@ "correl": "", "expiry": "", "broker": "fd29421fc00140a8", - "x": 1150, + "x": 1190, "y": 80, "wires": [] }, @@ -26771,7 +26780,7 @@ "valueType": "entityState" } ], - "x": 840, + "x": 880, "y": 140, "wires": [ [ @@ -26794,7 +26803,7 @@ "correl": "", "expiry": "", "broker": "fd29421fc00140a8", - "x": 1150, + "x": 1190, "y": 140, "wires": [] }, @@ -26842,7 +26851,7 @@ "valueType": "entityState" } ], - "x": 850, + "x": 890, "y": 260, "wires": [ [ @@ -26865,7 +26874,7 @@ "correl": "", "expiry": "", "broker": "fd29421fc00140a8", - "x": 1160, + "x": 1200, "y": 260, "wires": [] }, @@ -26913,7 +26922,7 @@ "valueType": "entityState" } ], - "x": 830, + "x": 870, "y": 200, "wires": [ [ @@ -26936,7 +26945,7 @@ "correl": "", "expiry": "", "broker": "fd29421fc00140a8", - "x": 1180, + "x": 1220, "y": 200, "wires": [] }, @@ -26970,6 +26979,69 @@ ] ] }, + { + "id": "7e733e83ceaef1f9", + "type": "function", + "z": "ffa6a885ac41a5ed", + "g": "fbbe69a14cbe0236", + "name": "Rounding", + "func": "var readout = msg.payload\n\nmsg.payload = +readout.toFixed(2)\n\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 285, + "y": 440, + "wires": [ + [ + "c0813ccdec033370" + ] + ], + "l": false + }, + { + "id": "2d43bf0d5590f6bb", + "type": "function", + "z": "ffa6a885ac41a5ed", + "g": "fbbe69a14cbe0236", + "name": "Rounding", + "func": "var readout = msg.payload\n\nmsg.payload = +readout.toFixed(2)\n\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 285, + "y": 500, + "wires": [ + [ + "d681fa96683511c1" + ] + ], + "l": false + }, + { + "id": "febc179b34c8cf71", + "type": "function", + "z": "ffa6a885ac41a5ed", + "g": "fbbe69a14cbe0236", + "name": "Rounding", + "func": "var readout = msg.payload\n\nmsg.payload = +readout.toFixed(2)\n\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 285, + "y": 560, + "wires": [ + [ + "e5cc046624cd5453" + ] + ], + "l": false + }, { "id": "e8d2135bb5564a4a", "type": "server-state-changed",