diff --git a/flows.json b/flows.json index 16cdd0f..934264f 100644 --- a/flows.json +++ b/flows.json @@ -838,9 +838,7 @@ "37f1c11c59a6ce16" ], "x": 94, - "y": 339, - "w": 1872, - "h": 622 + "y": 339 }, { "id": "39a7ac02f2727f1d", @@ -874,9 +872,7 @@ "292cda64df0c1c10" ], "x": 14, - "y": 839, - "w": 1552, - "h": 402 + "y": 839 }, { "id": "e065b1ed4938b477", @@ -931,9 +927,7 @@ "f950918e12591224" ], "x": 14, - "y": 11.5, - "w": 1252, - "h": 809.5 + "y": 11.5 }, { "id": "5c50443a84910fb7", @@ -973,9 +967,7 @@ "51b11f9d5b8bfbb0" ], "x": 34, - "y": 179, - "w": 1292, - "h": 382 + "y": 179 }, { "id": "477e752fcd2e2a19", @@ -994,9 +986,7 @@ "f4bfbaca4d7fb1df" ], "x": 14, - "y": 39, - "w": 1192, - "h": 82 + "y": 39 }, { "id": "fbbe69a14cbe0236", @@ -1044,9 +1034,7 @@ "febc179b34c8cf71" ], "x": 34, - "y": 39, - "w": 692, - "h": 682 + "y": 39 }, { "id": "46275dd0f9461013", @@ -1064,9 +1052,7 @@ "ca88f85ba00a6744" ], "x": 34, - "y": 739, - "w": 472, - "h": 202 + "y": 739 }, { "id": "ff6d8150e8d5e606", @@ -1102,9 +1088,7 @@ "f111c40459e27629" ], "x": 34, - "y": 19, - "w": 1272, - "h": 502 + "y": 19 }, { "id": "208284848b13b85b", @@ -1129,9 +1113,7 @@ "c0933fcc8737bc0b" ], "x": 34, - "y": 239, - "w": 1032, - "h": 322 + "y": 239 }, { "id": "1ca205a84922c8c2", @@ -1181,9 +1163,7 @@ "f44427c5a493c428" ], "x": 14, - "y": 139, - "w": 1152, - "h": 242 + "y": 139 }, { "id": "eeafd13be593ae69", @@ -1217,9 +1197,7 @@ "f5fb96bf1a33b3cd" ], "x": 54, - "y": 19, - "w": 1492, - "h": 282 + "y": 19 }, { "id": "0c81dfaed25d225c", @@ -1253,9 +1231,7 @@ "37bdac2c9a4e2837" ], "x": 54, - "y": 39, - "w": 1652, - "h": 382 + "y": 39 }, { "id": "8aee4d340a136bac", @@ -1275,9 +1251,7 @@ "b281061a4b08d2eb" ], "x": 34, - "y": 759, - "w": 612, - "h": 202 + "y": 759 }, { "id": "550e5b2d99316b12", @@ -1302,9 +1276,7 @@ "2516c6e3146cc851" ], "x": 34, - "y": 619, - "w": 1112, - "h": 282 + "y": 619 }, { "id": "f519aff597ece351", @@ -1335,9 +1307,7 @@ "3463c4f2bf6388fe" ], "x": 54, - "y": 39, - "w": 852, - "h": 682 + "y": 39 }, { "id": "26f91eb2ef77450d", @@ -1361,9 +1331,7 @@ "0be3c318e9e6df0a" ], "x": 64, - "y": 759, - "w": 1022, - "h": 162 + "y": 759 }, { "id": "a46fc8e7e70ca893", @@ -1427,9 +1395,7 @@ "51d05298561cfddb" ], "x": 754, - "y": 39, - "w": 672, - "h": 262 + "y": 39 }, { "id": "265593f442864b6a", @@ -1446,9 +1412,7 @@ "a8d7f5e5d4f549b0" ], "x": 34, - "y": 579, - "w": 732, - "h": 162 + "y": 579 }, { "id": "4886967d0f8c0156", @@ -1489,9 +1453,7 @@ "5ba9cfc0194ef62a" ], "x": 754, - "y": 319, - "w": 672, - "h": 622 + "y": 319 }, { "id": "931cc27100c9317e", @@ -1510,9 +1472,7 @@ "f9bc4d36a0df7947" ], "x": 34, - "y": 759, - "w": 672, - "h": 222 + "y": 759 }, { "id": "6e83103b5c5311e9", @@ -1530,9 +1490,7 @@ "a75651492e779bfc" ], "x": 34, - "y": 19, - "w": 912, - "h": 142 + "y": 19 }, { "id": "88f099618e56926d", @@ -1555,9 +1513,7 @@ "99c141f21de4feda" ], "x": 74, - "y": 39, - "w": 1132, - "h": 262 + "y": 39 }, { "id": "a6de35af12739885", @@ -1579,9 +1535,7 @@ "724f186878227dad" ], "x": 74, - "y": 339, - "w": 1132, - "h": 202 + "y": 339 }, { "id": "0804d9edeca1c9fa", @@ -1602,9 +1556,7 @@ "4523045453de0a33" ], "x": 74, - "y": 579, - "w": 1092, - "h": 202 + "y": 579 }, { "id": "385f03591bc34bcc", @@ -1620,9 +1572,7 @@ "15f7382daddb4b3e" ], "x": 34, - "y": 999, - "w": 632, - "h": 82 + "y": 999 }, { "id": "31767ffd6a647579", @@ -1651,9 +1601,7 @@ "e23e7b080ee3773f" ], "x": 14, - "y": 399, - "w": 1532, - "h": 282 + "y": 399 }, { "id": "1cc8b382530c33d0", @@ -1687,9 +1635,7 @@ "8146f43fea5aec03" ], "x": 34, - "y": 539, - "w": 1192, - "h": 502 + "y": 539 }, { "id": "b9ffa3fa5af46ec3", @@ -1705,9 +1651,7 @@ "6b5d3e550ad76528" ], "x": 34, - "y": 39, - "w": 692, - "h": 82 + "y": 39 }, { "id": "4329e464360d0afa", @@ -1750,9 +1694,7 @@ "b497fe229c8f2eea" ], "x": 34, - "y": 139, - "w": 1592, - "h": 422 + "y": 139 }, { "id": "395da9d5d5f7e232", @@ -1840,9 +1782,7 @@ "0107164ee7ff63d6" ], "x": 34, - "y": 19, - "w": 1072, - "h": 142 + "y": 19 }, { "id": "fba69dfc80829db7", @@ -29729,7 +29669,7 @@ "y": 320, "wires": [ [ - "16d93fd5efd5fec3" + "97c9e179dbb5be30" ] ] }, @@ -29737,17 +29677,37 @@ "id": "16d93fd5efd5fec3", "type": "file", "z": "d49b385d8b582b20", - "name": "Write to adaptive_lighting.txt", - "filename": "/config/files/adaptive_lighting.txt", + "name": "Write to adaptive_lighting.json", + "filename": "/config/files/adaptive_lighting.json", "filenameType": "str", "appendNewline": true, "createDir": false, "overwriteFile": "false", "encoding": "none", - "x": 1240, + "x": 1430, "y": 320, "wires": [ [] ] + }, + { + "id": "97c9e179dbb5be30", + "type": "function", + "z": "d49b385d8b582b20", + "name": "Add Comma", + "func": "const payload = msg.payload\n\nlet payloadFixed = payload + \",\"\n\nmsg.payload = payloadFixed\n\nreturn msg", + "outputs": 1, + "timeout": 0, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 1190, + "y": 320, + "wires": [ + [ + "16d93fd5efd5fec3" + ] + ] } ] \ No newline at end of file