Hello,
I m trying to Display some data on a html request with the http in-node. My Problem now is that i take the data from a csv file and can t sort them at the html request..
All i got is shown in the first Picture
in the csv file every string is in a own line.
can anyone help me?
[{"id":"c57a160e.f2b478","type":"http response","z":"d1d10813.9c6158","name":"","statusCode":"","headers":{},"x":710,"y":1060,"wires":[]},{"id":"f5f42089.75484","type":"function","z":"d1d10813.9c6158","name":"Set Content-Type header","func":"msg.headers = { \"Content-Type\":\"text/html\"};\nreturn msg;","outputs":1,"noerr":0,"x":635,"y":1175.150001525879,"wires":[["c57a160e.f2b478"]]},{"id":"38e46517.d80caa","type":"http in","z":"d1d10813.9c6158","name":"","url":"/test","method":"get","upload":false,"swaggerDoc":"","x":245,"y":1055.150001525879,"wires":[["fbaee8df.02a418"]]},{"id":"8915fd40.bbdc68","type":"function","z":"d1d10813.9c6158","name":"Adding File Name","func":"msg.payload=Number(msg.payload)\nif(msg.payload===0){\n msg.filename=\"/home/pi/gesamtcount.csv\";\n return msg;\n}\nreturn msg.filename;","outputs":1,"noerr":0,"x":515,"y":1115.150001525879,"wires":[[]]},{"id":"daa9cc38.bf06","type":"file in","z":"d1d10813.9c6158","name":"Picture Selector","filename":"/home/pi/gesamtcount.csv","format":"","sendError":true,"x":405,"y":1175.150001525879,"wires":[["f5f42089.75484"]]},{"id":"31f4bede.a8b7ba","type":"inject","z":"d1d10813.9c6158","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"x":235,"y":1115.150001525879,"wires":[["8915fd40.bbdc68","fbaee8df.02a418"]]},{"id":"fbaee8df.02a418","type":"function","z":"d1d10813.9c6158","name":"","func":"msg.filename=\"/home/pi/gesamtcount.csv\";\nreturn msg;","outputs":1,"noerr":0,"x":255,"y":1175.150001525879,"wires":[["daa9cc38.bf06"]]},{"id":"5d3b7fdc.a32e8","type":"comment","z":"d1d10813.9c6158","name":"Bild upload","info":"Flow stellt bild als HTML bereit, ist intern erreichbar unter:\n192.168.1.44:1880/metz-connect_image\n\nVon dort aus kann dann das Image in das Dashboard geladen werden.\nDas passiert mit dem template \"Metz-Connect\"","x":475,"y":1015.1500015258789,"wires":[]}]