Help display csv file to dashboard with new line

#1

hello, im new in this forum
i want to ask something
i have problem with display my csv file to dashboard, i use template node (dashboard)
i have succeeded logging it to csv

i have succeeded to display it but it cant make new line at dashboard. any idea how to solve it?

thank you before and sorry for bad english

#2

this my flow to display it

[{"id":"dd9767b0.6606b8","type":"ui_template","z":"c64dd393.5b149","group":"5ba2e189.2af84","name":"","order":0,"width":"12","height":"10","format":"<div ng-bind-html="msg.payload">","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":618.0000114440918,"y":695.0000095367432,"wires":[[]]},{"id":"7b60a60c.b30eb8","type":"inject","z":"c64dd393.5b149","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":216.00001525878906,"y":695.0000104904175,"wires":[["ea1ff75d.a54518"]]},{"id":"ea1ff75d.a54518","type":"file in","z":"c64dd393.5b149","name":"","filename":"/home/pi/log/log.csv","format":"utf8","chunk":false,"sendError":false,"x":415.0000305175781,"y":695.0000095367432,"wires":[["dd9767b0.6606b8"]]},{"id":"5ba2e189.2af84","type":"ui_group","z":"","name":"Txt","tab":"dd6e5815.a88718","order":1,"disp":true,"width":"12","collapse":false},{"id":"dd6e5815.a88718","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]

#3

The dashboard is expecting html so you will need to add tags like
at line ends etc...

#4

thanks for fast reply

where can i put tags? because i didnt change anything from template node, and i dont know where to put it

#5

you would need a preceding node, probably a function or change node, to change any \n characters into
before passing to the template,.