Greetings. New to the node-red paltform ( and most else ) but was wanting to read a text file from a file and seemed to be getting only a part of it as output. Other text files read completely.
This text file is a result of a hardware device string throwing out data. The idea is to then map it with known header tags and get a sensible output.
Any ideas guys?
here is the code.
[{"id":"cd014bcf.450f38","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"b772ca63.471af","type":"debug","z":"cd014bcf.450f38","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":648,"y":143,"wires":[]},{"id":"3fae45ac.b8a56a","type":"inject","z":"cd014bcf.450f38","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":107,"y":111,"wires":[["e7f50c8b.da80e"]]},{"id":"e7f50c8b.da80e","type":"file in","z":"cd014bcf.450f38","name":"","filename":"/Users/Vaishakh/Desktop/data.txt","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":373,"y":124,"wires":[["b772ca63.471af"]]}]
Here is the text file:
20191025104608,D, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, RUN , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, STOP, , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM,A HIGH, NORM, NORM, NORM, NORM,A LOW ,I NORM, NORM, NORM, NORM, NORM, NORM, NORM, RUN , , RUN , , RUN , S/B , S/B , RUN , RUN , S/B , S/B , RUN , S/B , , STOP, , , STOP, RUN , STOP, STOP, NORM, STOP, NORM, NORM, NORM, NORM, NORM, NORM, NORM, STOP,R LOW ,R LOW ,R NORM, NORM,R LOW ,R NORM,R LOW ,R NORM, NORM, NORM, NORM,R NORM, NORM, NORM, NORM, NORM, NORM, NORM, STOP,R LOW ,R LOW ,R NORM, NORM,R LOW ,R NORM,R LOW ,R NORM, NORM, NORM, NORM,R NORM, NORM, NORM, NORM, NORM, NORM, NORM, STOP, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, RUN , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, S/B , NORM, NORM,I NORM, NORM, STOP, NORM, NORM, RUN , NORM, NORM, RUN , NORM, NORM, STOP, NORM, NORM, STOP, STOP, STOP, NORM, NORM, NORM, NORM, RUN , NORM, NORM, NORM, NORM, STOP, NORM, NORM, NORM, NORM, NORM, NORM, RUN , NORM, NORM, NORM, SUP , RUN , RUN , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM,A ALAM, STOP, NORM,A TRBL, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, OFF , ON , ON , OFF , OFF , OFF , OFF , OFF , OFF , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, OFF , OFF , OFF , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM,A ABNR, NORM5120191025104613,P,58865526,13142.58, 729.33, 728.01, 3896, 8373, 6658, 2181, 8140.18,13044.26,10083.21,12178.39, 9468.50,12882.50,11841.47,11117.47,11695.39, 9295.15, 8716.16,12155.37, 700.14, 1809.35, 848.21, 1499.05, 1911.39, 2439.32,18942.39, 8102.11, 319.58, 217.01,10127.12, 9581.17, 8700.19, 8151.08, 11.22,11388.33, 4488.19,16560.56, 8123.37, 1909.47, 1267.31,18015.57,20120.29,20201.52, 9347.12, 9453.48, 4422.43,12280.14, 0.37,23070.49,23070.49*5C20191025104613,A, 80.7, 80.6, 13033, 74.2, 2.253, 56.0, 56.1, 56.5, 58.1, 59.0, 59.1, 0.529, 0.531, 84.2, 91.2, 90.4, 92.0, 91.8, 90.6, 91.3, 0.163, 0.249, 0.246, 52.1, 65.3, 38.3, 38.6, 51.6, 60.1, 56.2, 56.8, 56.8, 57.0, 56.8, 56.9, 0.697, 133.2, 99.8, 69.2, 0.312, 2.156, 3.692, 0.204, 0.100, 0.121, 2.357, 4.389, 357.6, 350.1, 332.9, 339.7, 335.2, 343.6, 14.4, 6.9, -10.3, -3.5, -8.0, 0.4, 343.2, 395.2, 254.2, 0.182, 48.4, 0.621,R 57.9,R 65.5, 43.5, 48.7, 0,R 59.1,R 64.4, 52.1, 47.6, 0, 57.0, 72.9, 421.5, 422.7, 298, 2.252, 2.125, 0.703*5C20191025104613,D, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, RUN , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, STOP, , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM,A HIGH, NORM, NORM, NORM, NORM,A LOW ,I NORM, NORM, NORM, NORM, NORM, NORM, NORM, RUN , , RUN , , RUN , S/B , S/B , RUN , RUN , S/B , S/B , RUN , S/B , , STOP, , , STOP, RUN , STOP, STOP, NORM, STOP, NORM, NORM, NORM, NORM, NORM, NORM, NORM, STOP,R LOW ,R LOW ,R NORM, NORM,R LOW ,R NORM,R LOW ,R NORM, NORM, NORM, NORM,R NORM, NORM, NORM, NORM, NORM, NORM, NORM, STOP,R LOW ,R LOW ,R NORM, NORM,R LOW ,R NORM,R LOW ,R NORM, NORM, NORM, NORM,R NORM, NORM, NORM, NORM, NORM, NORM, NORM, STOP, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, RUN , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, S/B , NORM, NORM,I NORM, NORM, STOP, NORM, NORM, RUN , NORM, NORM, RUN , NORM, NORM, STOP, NORM, NORM, STOP, STOP, STOP, NORM, NORM, NORM, NORM, RUN , NORM, NORM, NORM, NORM, STOP, NORM, NORM, NORM, NORM, NORM, NORM, RUN , NORM, NORM, NORM, SUP , RUN , RUN , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM,A ALAM, STOP, NORM,A TRBL, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, OFF , ON , ON , OFF , OFF , OFF , OFF , OFF , OFF , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, OFF , OFF , OFF , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM,A ABNR, NORM*5B20191025104618,P,58865532,13142.58, 729.33, 728.01, 3896, 8373, 6658, 2181, 8140.18,13044.26,10083.21,12178.39, 9468.50,12882.50,11841.47,11117.47,11695.39, 9295.15, 8716.16,12155.37, 700.14, 1809.35, 848.21, 1499.05, 1911.39, 2439.32,18942.39, 8102.11, 319.58, 217.01,10127.12, 9581.17, 8700.19, 8151.08, 11.22,11388.33, 4488.19,16560.56, 8123.37, 1909.47, 1267.31,18015.57,20120.29,20201.52, 9347.12, 9453.48, 4422.43,12280.14, 0.37,23070.49,23070.49*5220191025104618,A, 80.5, 80.5, 13031, 74.9, 2.253, 56.0, 56.1, 56.5, 58.1, 59.0, 59.1, 0.529, 0.529, 84.2, 91.2, 90.4, 92.0, 91.8, 90.6, 91.3, 0.163, 0.243, 0.248, 52.1, 65.3, 38.3, 38.6, 51.6, 60.1, 56.2, 56.8, 56.7, 57.0, 56.7, 56.8, 0.696, 133.2, 99.8, 69.2, 0.312, 2.156, 3.696, 0.204, 0.100, 0.121, 2.357, 4.389, 357.6, 350.0, 332.9, 339.7, 335.1, 343.6, 14.4, 6.9, -10.3, -3.5, -8.0, 0.4, 343.2, 395.1, 254.2, 0.182, 48.4, 0.622,R 57.9,R 65.5, 43.5, 48.7, 0,R 59.1,R 64.4, 52.1, 47.6, 0, 57.0, 72.9, 421.5, 422.7, 297, 2.251, 2.125, 0.703*5820191025104618,D, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, RUN , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, STOP, , NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM, NORM,